Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk committed Jan 28, 2024
1 parent ace80b8 commit 0afe64e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ You can use [`@telegram-auth/server`](../server) server-side to validate the dat

<!-- prettier-ignore -->
```ts title=validate.ts
import { urlStrToAuthDataMap, AuthDataValidator } from '@telegram-auth/server';
import { AuthDataValidator } from '@telegram-auth/server';
import { urlStrToAuthDataMap } from '@telegram-auth/server/utils';

const validator = new AuthDataValidator({ botToken: process.env.BOT_TOKEN });

Expand Down
3 changes: 2 additions & 1 deletion packages/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ pnpm add @telegram-auth/server

<!-- prettier-ignore -->
```ts title=validate.ts
import { urlStrToAuthDataMap, AuthDataValidator } from '@telegram-auth/server';
import { AuthDataValidator } from '@telegram-auth/server';
import { urlStrToAuthDataMap } from '@telegram-auth/server/utils';

// initialize the validator with your bot token
const validator = new AuthDataValidator({ botToken: process.env.BOT_TOKEN });
Expand Down

0 comments on commit 0afe64e

Please sign in to comment.