Open k1350 opened 2 days ago
@k1350, thanks for opening this issue and sorry to hearing your users are experiencing this.
CookieStorage
a subdomain or something different? @cwomack Thank you for your reply.
Can you share any detailed logs or network requests for when this happens.
The logs and network requests have not been captured.
Do you know any details around the version of Chrome these users are on?
OS: Windows 10
Browser: Chrome 129 (129.0.0.0)
Full User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Is your domain value within the CookieStorage a subdomain or something different?
If we set the domain of our application as example.com
, the domain for CookieStorage is also example.com
.
We are sharing cookies with another application running under the domain sub.example.com
.
For the users you interviewed... do you know if they are disabling cookie storage in Chrome specifically?
I have been informed that cookies are enabled.
This is additional information regarding the issue.
In our application, we added a process that signout and redirects them to the top page when a NotAuthorizedException
or UserNotFoundException
occurs during the execution of fetchAuthSession
yesterday.
As a result, the user encountering this issue have reported that the top page reloads repeatedly.
So I guess it comes down to this.
Sign-in is failing with the error: UnexpectedSignInInterruptionException: Unable to get user session following successful sign-in.
However, on the other hand, a NotAuthorizedException
or UserNotFoundException
is occurring during the execution of fetchAuthSession
, and it seems that the sign-out process is not working correctly in this case.
The NotAuthorizedException
or UserNotFoundException
errors we have observed is:
We know that NotAuthorizedException: Token is inactive
occurs when a user is deactivated.
However, we have not been able to reproduce the othe errors, and it is unclear under what circumstances they occur.
@cwomack Additional information: A user who encountered the problem reported that sign-in worked properly in Chrome's Incognito Mode. However, the issue still persists when not using Incognito Mode.
Before opening, please confirm:
JavaScript Framework
Next.js
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
CDK
Environment information
Describe the bug
Most users are able to log in without any issues, but some users have reported that they are encountering the following error when attempting to log in:
UnexpectedSignInInterruptionException: Unable to get user session following successful sign-in.
After interviewing an affected user, we found that he can log in using Firefox, but he is unable to log in with Google Chrome, no matter how many times he trys. Clearing caches and cookies did not resolve the issue.
We have investigated this thoroughly but have been unable to reproduce the error, and the cause remains unclear. We also reviewed previously raised issues but did not find any information that could help resolve the problem.
What kind of situations can trigger this error? We would like to know how to resolve it for users who are encountering this error consistently.
Thank you.
Expected behavior
The authentication process should successfully complete without any errors.
Reproduction steps
As the issue has not been reproducible, we're unable to provide specific steps that consistently trigger the error. Below are the general steps a user would follow.
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
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