[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.

已提问 2 年前107 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则