Error: The user is not authenticated
See original GitHub issueBefore opening, please confirm:
- I have checked to see if my question is addressed in the FAQ.
- I have searched for duplicate or closed issues.
- I have read the guide for submitting bug reports.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
App Id
arn:aws:amplify:eu-central-1:528185474776:apps/d213o5o0w1nmqu
Region
eu-central-1
Amplify Hosting feature
Access control
Describe the bug
Can’t use SSR on any pages - getting slammed with the “Error: The user is not authenticated” message.
This used to work locally - and after attempting to host on AWS works no more. I’ve walked back my commits to several points that I know it was working at- and to no avail is this working again.
Expected behavior
Normal application behavior.
Reproduction steps
I wish I could provider reproduction steps -it seems as though the AWS mine tunnel has collapsed over the weekend and trapped my app in it.
Build Settings
No response
Additional information
I’ve tried:
amplify.configure
on each pageauth.configure
on each page- checking for cookie storage (a common issue, but apparently my amplify backend environment doesn’t use this anyways)
- in the _app.tsx:
export default withAuthenticator(myApp)
- in every page.tsx:
export default withAuthenticator(page)
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Error: User is not authenticated amazon cognito in nodejs
First i signup using userpool.signUp(..) method according to docs. Then i confirmed the verification code using cognitoUser.confirmRegistration( ...
Read more >ESPN User Not Authenticated? - (Fix in Minutes!) - Xtrium
The “ESPN User Is Not Authenticated” message can be solved by reinstalling the app and restarting your source device. For browser users, the ......
Read more >cognitoUser.getUserAttributes error: User is not authenticated
Hi, I've completed the authentication flow and I can successfully login, get the tokens, set AWS credentials via Cognito Identity etc.
Read more >User has not been authenticated error when you access a ...
Describes an issue that triggers an error on a Windows-based computer when you try to access a mapped web share. Provides a resolution....
Read more >Troubleshooting: Error - User not authenticated - LendingPad
Problem: User not authenticate error when running AUS. Solution. Make sure your AUS (Fannie/Freddie) credentials are entered correctly in LendingPad.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think this issue resolved itself with Amplify support added for Next 12. I’ll close.
@reeslabree Can you provide details of the
aws-amplify
version you are using? Also, are you using Next.js and React? If so, what versions of@aws-amplify/ui-react
and Next.js are you using?