Skip to content

Commit

Permalink
Version Packages (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
manzoorwanijk and github-actions[bot] authored Aug 3, 2024
1 parent e5e86d3 commit 5016b0f
Show file tree
Hide file tree
Showing 11 changed files with 59 additions and 58 deletions.
5 changes: 0 additions & 5 deletions .changeset/fair-carrots-begin.md

This file was deleted.

4 changes: 2 additions & 2 deletions packages/react/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ https://core.telegram.org/widgets/login

#### Defined in

[LoginButton.tsx:23](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/LoginButton.tsx#L23)
[LoginButton.tsx:23](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/LoginButton.tsx#L23)

___

Expand Down Expand Up @@ -69,4 +69,4 @@ https://core.telegram.org/widgets/login

#### Defined in

[createScript.ts:11](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/createScript.ts#L11)
[createScript.ts:11](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/createScript.ts#L11)
18 changes: 9 additions & 9 deletions packages/react/docs/interfaces/CreateScriptOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The username of the bot that will be used to authenticate the user.

#### Defined in

[types.ts:25](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L25)
[types.ts:25](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L25)

___

Expand All @@ -54,7 +54,7 @@ The URL where the auth data from Telegram will be sent.

#### Defined in

[types.ts:20](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L20)
[types.ts:20](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L20)

___

Expand All @@ -76,7 +76,7 @@ The size of the button.

#### Defined in

[types.ts:32](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L32)
[types.ts:32](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L32)

___

Expand All @@ -92,7 +92,7 @@ The radius of the button corners.

#### Defined in

[types.ts:37](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L37)
[types.ts:37](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L37)

___

Expand All @@ -114,7 +114,7 @@ The language of the button.

#### Defined in

[types.ts:44](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L44)
[types.ts:44](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L44)

___

Expand Down Expand Up @@ -144,7 +144,7 @@ The callback function that will be called when the user is authenticated.

#### Defined in

[types.ts:49](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L49)
[types.ts:49](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L49)

___

Expand All @@ -166,7 +166,7 @@ The access level that the bot will request.

#### Defined in

[types.ts:56](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L56)
[types.ts:56](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L56)

___

Expand All @@ -188,7 +188,7 @@ true

#### Defined in

[types.ts:63](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L63)
[types.ts:63](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L63)

___

Expand All @@ -204,4 +204,4 @@ The version of the Telegram widget to deal with browser caching.

#### Defined in

[types.ts:68](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L68)
[types.ts:68](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L68)
18 changes: 9 additions & 9 deletions packages/react/docs/interfaces/LoginButtonProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The username of the bot that will be used to authenticate the user.

#### Defined in

[types.ts:25](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L25)
[types.ts:25](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L25)

___

Expand All @@ -44,7 +44,7 @@ The URL where the auth data from Telegram will be sent.

#### Defined in

[types.ts:20](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L20)
[types.ts:20](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L20)

___

Expand All @@ -62,7 +62,7 @@ The size of the button.

#### Defined in

[types.ts:32](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L32)
[types.ts:32](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L32)

___

Expand All @@ -74,7 +74,7 @@ The radius of the button corners.

#### Defined in

[types.ts:37](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L37)
[types.ts:37](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L37)

___

Expand All @@ -92,7 +92,7 @@ The language of the button.

#### Defined in

[types.ts:44](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L44)
[types.ts:44](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L44)

___

Expand All @@ -118,7 +118,7 @@ The callback function that will be called when the user is authenticated.

#### Defined in

[types.ts:49](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L49)
[types.ts:49](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L49)

___

Expand All @@ -136,7 +136,7 @@ The access level that the bot will request.

#### Defined in

[types.ts:56](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L56)
[types.ts:56](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L56)

___

Expand All @@ -154,7 +154,7 @@ true

#### Defined in

[types.ts:63](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L63)
[types.ts:63](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L63)

___

Expand All @@ -166,4 +166,4 @@ The version of the Telegram widget to deal with browser caching.

#### Defined in

[types.ts:68](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L68)
[types.ts:68](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L68)
14 changes: 7 additions & 7 deletions packages/react/docs/interfaces/TelegramAuthData.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ https://core.telegram.org/widgets/login#receiving-authorization-data

#### Defined in

[types.ts:7](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L7)
[types.ts:7](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L7)

___

Expand All @@ -38,7 +38,7 @@ ___

#### Defined in

[types.ts:8](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L8)
[types.ts:8](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L8)

___

Expand All @@ -48,7 +48,7 @@ ___

#### Defined in

[types.ts:9](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L9)
[types.ts:9](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L9)

___

Expand All @@ -58,7 +58,7 @@ ___

#### Defined in

[types.ts:10](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L10)
[types.ts:10](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L10)

___

Expand All @@ -68,7 +68,7 @@ ___

#### Defined in

[types.ts:11](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L11)
[types.ts:11](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L11)

___

Expand All @@ -78,7 +78,7 @@ ___

#### Defined in

[types.ts:12](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L12)
[types.ts:12](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L12)

___

Expand All @@ -88,4 +88,4 @@ ___

#### Defined in

[types.ts:13](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L13)
[types.ts:13](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/react/src/types.ts#L13)
6 changes: 6 additions & 0 deletions packages/server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @telegram-auth/server Change Log

## 1.0.4

### Patch Changes

- [#25](https://github.com/manzoorwanijk/telegram-auth/pull/25) [`e5e86d3`](https://github.com/manzoorwanijk/telegram-auth/commit/e5e86d356e15c3a7d74939889c5228ea2c330b04) Thanks [@manzoorwanijk](https://github.com/manzoorwanijk)! - Fixed web app detection

## 1.0.3

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/server/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Shape of the data to be passed AuthDataValidator.validate().

#### Defined in

[utils/types.ts:4](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/utils/types.ts#L4)
[utils/types.ts:4](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/utils/types.ts#L4)

## Functions

Expand All @@ -58,7 +58,7 @@ A Uint8Array of the hexString.

#### Defined in

[utils/hexStringToArrayBuffer.ts:7](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/utils/hexStringToArrayBuffer.ts#L7)
[utils/hexStringToArrayBuffer.ts:7](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/utils/hexStringToArrayBuffer.ts#L7)

___

Expand All @@ -83,7 +83,7 @@ A new Map object with the entries from the searchParams object.

#### Defined in

[utils/searchParamsToAuthDataMap.ts:10](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/utils/searchParamsToAuthDataMap.ts#L10)
[utils/searchParamsToAuthDataMap.ts:10](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/utils/searchParamsToAuthDataMap.ts#L10)

___

Expand All @@ -107,7 +107,7 @@ A new Map object with the entries of the object passed in.

#### Defined in

[utils/objectToAuthDataMap.ts:9](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/utils/objectToAuthDataMap.ts#L9)
[utils/objectToAuthDataMap.ts:9](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/utils/objectToAuthDataMap.ts#L9)

___

Expand All @@ -132,4 +132,4 @@ A Map object with the key/value pairs from the URL's query string.

#### Defined in

[utils/urlStrToAuthDataMap.ts:8](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/utils/urlStrToAuthDataMap.ts#L8)
[utils/urlStrToAuthDataMap.ts:8](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/utils/urlStrToAuthDataMap.ts#L8)
14 changes: 7 additions & 7 deletions packages/server/docs/classes/AuthDataValidator.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ https://core.telegram.org/widgets/login#checking-authorization

#### Defined in

[AuthDataValidator.ts:55](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/AuthDataValidator.ts#L55)
[AuthDataValidator.ts:55](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/AuthDataValidator.ts#L55)

## Methods

Expand All @@ -59,7 +59,7 @@ Sets the bot token to be used for validating the data

#### Defined in

[AuthDataValidator.ts:96](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/AuthDataValidator.ts#L96)
[AuthDataValidator.ts:96](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/AuthDataValidator.ts#L96)

___

Expand All @@ -81,7 +81,7 @@ Sets the crypto to be used for validating the data

#### Defined in

[AuthDataValidator.ts:107](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/AuthDataValidator.ts#L107)
[AuthDataValidator.ts:107](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/AuthDataValidator.ts#L107)

___

Expand All @@ -103,7 +103,7 @@ Sets the encoder to be used for encoding the data

#### Defined in

[AuthDataValidator.ts:118](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/AuthDataValidator.ts#L118)
[AuthDataValidator.ts:118](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/AuthDataValidator.ts#L118)

___

Expand All @@ -126,7 +126,7 @@ which is the number of seconds after which the data is considered invalid.

#### Defined in

[AuthDataValidator.ts:131](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/AuthDataValidator.ts#L131)
[AuthDataValidator.ts:131](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/AuthDataValidator.ts#L131)

___

Expand All @@ -148,7 +148,7 @@ This function sets the throwIfEmptyData property of the class.

#### Defined in

[AuthDataValidator.ts:142](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/AuthDataValidator.ts#L142)
[AuthDataValidator.ts:142](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/AuthDataValidator.ts#L142)

___

Expand Down Expand Up @@ -182,4 +182,4 @@ https://core.telegram.org/widgets/login#checking-authorization

#### Defined in

[AuthDataValidator.ts:156](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/AuthDataValidator.ts#L156)
[AuthDataValidator.ts:156](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/AuthDataValidator.ts#L156)
10 changes: 5 additions & 5 deletions packages/server/docs/interfaces/AuthDataValidatorOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If you don't pass this here, you'll need to set it later using `setBotToken()`.

#### Defined in

[AuthDataValidator.ts:10](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/AuthDataValidator.ts#L10)
[AuthDataValidator.ts:10](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/AuthDataValidator.ts#L10)

___

Expand All @@ -40,7 +40,7 @@ https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto

#### Defined in

[AuthDataValidator.ts:17](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/AuthDataValidator.ts#L17)
[AuthDataValidator.ts:17](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/AuthDataValidator.ts#L17)

___

Expand All @@ -52,7 +52,7 @@ The encoder to be used for encoding the data

#### Defined in

[AuthDataValidator.ts:22](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/AuthDataValidator.ts#L22)
[AuthDataValidator.ts:22](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/AuthDataValidator.ts#L22)

___

Expand All @@ -70,7 +70,7 @@ The time in seconds after which the data should be considered invalid

#### Defined in

[AuthDataValidator.ts:29](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/AuthDataValidator.ts#L29)
[AuthDataValidator.ts:29](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/AuthDataValidator.ts#L29)

___

Expand All @@ -88,4 +88,4 @@ true

#### Defined in

[AuthDataValidator.ts:36](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/AuthDataValidator.ts#L36)
[AuthDataValidator.ts:36](https://github.com/manzoorwanijk/telegram-auth/blob/e5e86d3/packages/server/src/AuthDataValidator.ts#L36)
Loading

0 comments on commit 5016b0f

Please sign in to comment.