[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회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠