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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠