You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use cognito-local MFA challenge (SMS) with Amplify SDK v2 but got an error when I send the code to cognito:
SignInException:
An error occurred during the sign in process.
This most likely occurred due to:
1. signIn was not called before confirmSignIn.
2. signIn threw an exception.
3. page was refreshed during the sign in flow.
I tried to find the cause of this issue and it seems that the initiateAuth function does not return the sign in session ID for MFA case. If I put Session variable in verifyMfaChallenge() (like in newPasswordChallenge()) it works:
Hi,
I'm trying to use cognito-local MFA challenge (SMS) with Amplify SDK v2 but got an error when I send the code to cognito:
https://github.com/aws-amplify/amplify-js/blob/main/packages/auth/src/providers/cognito/apis/confirmSignIn.ts#L69-L84 (
signInSession
is undefined at this point)I tried to find the cause of this issue and it seems that the
initiateAuth
function does not return the sign in session ID for MFA case. If I putSession
variable inverifyMfaChallenge()
(like innewPasswordChallenge()
) it works:https://github.com/jagregory/cognito-local/blob/master/src/targets/initiateAuth.ts#L83-L90
I don't know if this is intentional or an omission ?
Thank you!
The text was updated successfully, but these errors were encountered: