Skip to content

Commit

Permalink
fix: parse json from telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilym committed Jul 4, 2024
1 parent a664418 commit a4a774a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/auth/providers/telegram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export const TelegramProvider = ({ botToken }: TelegramProviderOptions) =>

const user = await validator.validate(data);

return JSON.parse(JSON.stringify(user));

if (user.id && user.first_name) {
return {
id: user.id.toString(),
Expand Down

0 comments on commit a4a774a

Please sign in to comment.