Inconsistent return values using `getUserData` and `getUserAttributes` in amazon-cognito-identity-js

0

I just started implementing a new SignUp/SignIn page for our software using AWS Cognito with amazon-cognito-identity-js. I am now working on the finishing touches like allowing users to change their email.

While implementing this I realized that when changing the email and verifying it with getAttributeVerificationCode and verifyAttribute I receive inconsistent values when checking if the email is verified. getUserData will always return { Name: 'email_verified', Value: 'false' } in the provided UserAttributes array, while getUserAttributes returns the correct value of { Name: 'email_verified', Value: 'true' } after changing and verifying the new email.

Am I missing something here or is this some kind of bug in the library?

답변 없음

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

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

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