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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南