Closed lwang-79 closed 2 months ago
Hey @lwang-79, thank you for reaching out to the team, and sharing us the details! I can see your app is currently using 6.0.23
based on the environment information you've provided us, have you considered using the latest v6 version which is 6.6.2
and see if the issue persists?
Hi @joon-won, thank you for looking into this. I encountered the issue after updating to the latest version. I tested different versions and found that the problem started with v6.0.23.
@lwang-79, got it. We'll take a look into the issue. Appreciate your patience
@lwang-79, is your app a multi-page app? If so, it's possible that you'd need to utilize our OAuth Listener and implement it on the client side to complete the social sign-in when an end user is redirected back to your app.
Testing this and using the latest version of Amplify can help us rule this out and further root cause the issue.
Thank you @cwomack , OAuth Listener fixed the issue.
@lwang-79, thanks for confirming and glad you're unblocked. We'll close the issue then, but let us know if you hit any more blockers.
Before opening, please confirm:
JavaScript Framework
Next.js
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
Amplify CLI
Environment information
Describe the bug
I recently updated the aws-amplify library version in an existing project and encountered the issue.
When the app redirects from sign in with Google, it gets stuck in an inflight status. The app does not continue to get the token from Cognito as usual, and the
inflightAuth
value in local storage istrue
.When I revert to the previous version, everything works fine. After some tests, I found that the last working version for me was v6.0.21. The issue appears to be related to the PR #13162
Could you please check it? Should I change anything from my app? Thank you!
Expected behavior
The app can get token after redirect.
Reproduction steps
signInWithRedirect
to start Google sign in I can not replicate the issue on my another project. It's probably specific to my project, but I don't know how to debug. Any suggestion would be highly appreciated.Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response