Best way to retrieve user data from a cognito access token

0

Hi, I am curious to know about the cognito endpoint quota and the best practices when designing a robust login authentication system. Is it wise to call the getuser() method with access token to get the user data like username or is there any other better way? Looking forward to an answer.

1回答
0

Hi

I think the information you need is included in either the ID or Access token, both should be returned when the user login. You could fetch the information by decoding the JWT based tokens.

See: Using the ID token and Using tokens with user pools

profile picture
エキスパート
回答済み 10ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ