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?

thegnuu
posta 9 mesi fa61 visualizzazioni
Nessuna risposta

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande