diff --git a/packages/react/README.md b/packages/react/README.md index 5c8cec7..a2f6fc0 100644 --- a/packages/react/README.md +++ b/packages/react/README.md @@ -72,7 +72,8 @@ You can use [`@telegram-auth/server`](../server) server-side to validate the dat ```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 }); diff --git a/packages/server/README.md b/packages/server/README.md index 935d655..66891cb 100644 --- a/packages/server/README.md +++ b/packages/server/README.md @@ -26,7 +26,8 @@ pnpm add @telegram-auth/server ```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 });