question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: The user is not authenticated

See original GitHub issue

Before opening, please confirm:

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 page
  • auth.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:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
reeslabreecommented, Dec 13, 2022

I think this issue resolved itself with Amplify support added for Next 12. I’ll close.

0reactions
reesscotcommented, Dec 13, 2022

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found