Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resend new One Time Passcode after 5 minutes. #158

Open
mdeveracoding opened this issue Apr 18, 2022 · 3 comments
Open

Resend new One Time Passcode after 5 minutes. #158

mdeveracoding opened this issue Apr 18, 2022 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@mdeveracoding
Copy link

Describe the bug?

We are implementing a custom MFA UI and are using resend code or one time passcode. We are successful in using resend code. However we are running into issues when invoking resend code/OTP....especially when the code has expired after 5 minutes.

What is expected to happen?

Receive a new one time passcode even if the original has expired after 5 minutes.

What is the actual behavior?

Using the snippet of code below, we get an exception message of "errorCode":"E0000011","errorSummary":"Invalid token provided","errorLink":"E0000011","errorId":"oae1Gut7BKiRr-6rb5kOhN1Kw","errorCauses":[]. Especially when trying to get a new one time passcode after the original has expired over 5 minutes. Please keep in mind ....using the same code below we can get a new one time passcode if we request a new OTP code within 5 minutes.

let mfaRecovery = currentStatus as! OktaAuthStatusFactorChallenge

mfaRecovery.resendFactor(onStatusChange: { status in
    self.handleStatus(status: status, result: result)}, onError: { error in
        Error(ErrorCodes.e805, result, error)
    })

Reproduction Steps?

Login with an account that has MFA policies. Request a new OTP after 5 minutes. Especially after the first OTP has been received via email or sms.

If the current behavior is a bug, please provide the steps to reproduce and a minimal demo if possible.

Additional Information?

No response

SDK Version(s)

'OktaAuthSdk', '2.4.3'
'OktaOidc', '3.5.2'

Build Information

No response

@mdeveracoding mdeveracoding added the bug Something isn't working label Apr 18, 2022
@arvindkrishnakumar-okta

@mdeveracoding Thanks for posting!

This seems similar to okta/okta-auth-java#175.

cc: @mikenachbaur-okta

@arvindkrishnakumar-okta arvindkrishnakumar-okta added help wanted Extra attention is needed and removed bug Something isn't working labels Apr 19, 2022
@mikenachbaur-okta
Copy link
Collaborator

Thanks for mentioning me @arvindkrishnakumar-okta. I'll keep an eye on the other issue to see what the response is, to help narrow then problem down.

@mdeveracoding
Copy link
Author

mdeveracoding commented May 2, 2022

@arvindkrishnakumar-okta @mikenachbaur-okta , hi all, I have responded in okta/okta-auth-java#175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants