-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
The autoSignIn flow has not started, or has been cancelled/completed #13838
Comments
btw, "Auth" is my own convention, where I export a custom Auth object to expose the APIs from 'aws-amplify/auth' not to be confused with amplify versions below v6. This was to localize options needed.
|
Hello, @al-mcnichol 👋. Are you able to provide additional code tied to your auth flow that precedes your Any additional code related to your custom Auth setup may be helpful to share as well as possibly a minimal sample repo for easier reproduction. Thanks! |
@cwomack - Here is our custom UI, which ultimately calls Amplify signUp API SignUp API:
ConfirmSignUp & autoSignIn APIs:
|
@al-mcnichol, thank you for the additional code and context. It looks like the issue here could be tied to the fact that you're wrapping the Also, is there a reason why you're creating the wrapper for the Auth API's? Not only will it break the intended behavior of the |
@cwomack Thanks so much for pointing that out. I used the API directly and it worked like a charm. The wrapper was to minimize repeat code for additional options needed but obviously not the right way to go. |
Before opening, please confirm:
JavaScript Framework
Web Components
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
None
Environment information
Describe the bug
Calling autoSignIn() after confirmSignUp() when signUpStep is "COMPLETE_AUTO_SIGN_IN" is throwing error "The autoSignIn flow has not started, or has been cancelled/completed".
Expected behavior
I expected this to set local storage with the current signed in user tokens, etc
Reproduction steps
This is being done in a single session where a modal is presented to user to sign-up (autoSignIn: true), email sent with the code, then code validated.
console.log output:
confirmSignUp::isSignUpComplete | true
confirmSignUp::userId | undefined
confirmSignUp::nextStep | {signUpStep: 'COMPLETE_AUTO_SIGN_IN'}
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
Manual configuration
The text was updated successfully, but these errors were encountered: