[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 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南