Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #23

Merged
merged 1 commit into from
Jan 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .changeset/fifty-radios-count.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @telegram-auth/react Change Log

## 1.0.3

### Patch Changes

- [#22](https://github.com/manzoorwanijk/telegram-auth/pull/22) [`0444dc6`](https://github.com/manzoorwanijk/telegram-auth/commit/0444dc663acae11117a44cc4284a9f773a758328) Thanks [@manzoorwanijk](https://github.com/manzoorwanijk)! - Updated docs

## 1.0.2

### Patch Changes
Expand Down
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/5d7eb0c/packages/react/src/LoginButton.tsx#L23)
[LoginButton.tsx:23](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/createScript.ts#L11)
[createScript.ts:11](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L25)
[types.ts:25](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L20)
[types.ts:20](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L32)
[types.ts:32](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L37)
[types.ts:37](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L44)
[types.ts:44](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L49)
[types.ts:49](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L56)
[types.ts:56](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L63)
[types.ts:63](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L68)
[types.ts:68](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L25)
[types.ts:25](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L20)
[types.ts:20](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L32)
[types.ts:32](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L37)
[types.ts:37](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L44)
[types.ts:44](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L49)
[types.ts:49](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L56)
[types.ts:56](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L63)
[types.ts:63](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L68)
[types.ts:68](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/react/src/types.ts#L7)
[types.ts:7](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L7)

___

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

#### Defined in

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

___

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

#### Defined in

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

___

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

#### Defined in

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

___

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

#### Defined in

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

___

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

#### Defined in

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

___

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

#### Defined in

[types.ts:13](https://github.com/manzoorwanijk/telegram-auth/blob/5d7eb0c/packages/react/src/types.ts#L13)
[types.ts:13](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/react/src/types.ts#L13)
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@telegram-auth/react",
"version": "1.0.2",
"version": "1.0.3",
"description": "React component to display Telegram Login Widget",
"keywords": [
"telegram",
Expand Down
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.3

### Patch Changes

- [#22](https://github.com/manzoorwanijk/telegram-auth/pull/22) [`0444dc6`](https://github.com/manzoorwanijk/telegram-auth/commit/0444dc663acae11117a44cc4284a9f773a758328) Thanks [@manzoorwanijk](https://github.com/manzoorwanijk)! - Updated docs

## 1.0.2

### 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/5d7eb0c/packages/server/src/utils/types.ts#L4)
[utils/types.ts:4](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/server/src/utils/hexStringToArrayBuffer.ts#L7)
[utils/hexStringToArrayBuffer.ts:7](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/server/src/utils/searchParamsToAuthDataMap.ts#L10)
[utils/searchParamsToAuthDataMap.ts:10](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/server/src/utils/objectToAuthDataMap.ts#L9)
[utils/objectToAuthDataMap.ts:9](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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/5d7eb0c/packages/server/src/utils/urlStrToAuthDataMap.ts#L8)
[utils/urlStrToAuthDataMap.ts:8](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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:56](https://github.com/manzoorwanijk/telegram-auth/blob/5d7eb0c/packages/server/src/AuthDataValidator.ts#L56)
[AuthDataValidator.ts:55](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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:97](https://github.com/manzoorwanijk/telegram-auth/blob/5d7eb0c/packages/server/src/AuthDataValidator.ts#L97)
[AuthDataValidator.ts:96](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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:108](https://github.com/manzoorwanijk/telegram-auth/blob/5d7eb0c/packages/server/src/AuthDataValidator.ts#L108)
[AuthDataValidator.ts:107](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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:119](https://github.com/manzoorwanijk/telegram-auth/blob/5d7eb0c/packages/server/src/AuthDataValidator.ts#L119)
[AuthDataValidator.ts:118](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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:132](https://github.com/manzoorwanijk/telegram-auth/blob/5d7eb0c/packages/server/src/AuthDataValidator.ts#L132)
[AuthDataValidator.ts:131](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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:143](https://github.com/manzoorwanijk/telegram-auth/blob/5d7eb0c/packages/server/src/AuthDataValidator.ts#L143)
[AuthDataValidator.ts:142](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/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:157](https://github.com/manzoorwanijk/telegram-auth/blob/5d7eb0c/packages/server/src/AuthDataValidator.ts#L157)
[AuthDataValidator.ts:156](https://github.com/manzoorwanijk/telegram-auth/blob/0444dc6/packages/server/src/AuthDataValidator.ts#L156)
Loading
Loading