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

回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ