[Cognito] Bug? After updating phone number, Cognito sends an expired sms verification code

0

Hello All,

Due to internal reasons, we developed a registration process which is splitted in 3 phases.

We save the email and we use it as username, the password, phone_number, full name and email.

In the first phase, we register the user with his email, a random password and a empty string as phone number & full name.

The second phase just update the phone_number and name of Cognito, using the method adminUpdateUserAttributes which successfully updates it.

The Third phase just receives the verification code to confirm the account and phone number. And if the confirmation is successfull, the password is updated.

If we use the code we get after the update of the phone number, we receive an error "ExpiredCodeException". But If we get a new one with the resendConfirmationCode method, the new code works without problems.

We were unable to find another similar issue. Its weird because these codes has a lifetime of 24 hours and that cannot be adjusted.

Thanks in advance! Regards.

asked 2 years ago103 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions