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.

Login required error

See original GitHub issue

Describe the problem

I keep seeing a Login required error. It’s super linked to this issue but only seems to happen on an incognito session (when I don’t already have a token or cookie), because of this I’m worried this happens for all new users.

I can’t figure out how to comment on the auth0 community (as it’s pants) so hope it’s ok here.

When this error shows it seems the cookie has been added ok (screenshot attached). I’ve realized too sometimes when I see this error, navigate to the homepage, and then to the dashboard, I am actually logged in.

What was the expected behavior?

It should log me in. Or it should actually be an error and not set the token.

Reproduction

  1. When you log in to EcoPing in incognito
  2. Hit confirm and see the Login Required Error.
  3. getAccessTokenSilently seems to fail immediately
Screenshot 2021-12-02 at 17 39 21 Screenshot 2021-12-02 at 16 36 42

NOTE: Once I redirect to the homepage I seem to have another cookie that is set which makes me logged in, which is super strange.

Screenshot 2021-12-02 at 17 44 23 ### Environment

Please provide the following:

  • Version of auth0-react used: “^1.8.0”
  • Which browsers have you tested in? Chrome - Version 96.0.4664.55
  • Which framework are you using, if applicable (Angular, React, etc): React

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
drydenwilliamscommented, Dec 14, 2021

Thanks @adamjmcgrath that’s super interesting! Will have a look ASAP

1reaction
stevehobbsdevcommented, Dec 6, 2021

Worth noting here that Brave blocks third-party cookies by default (through it’s “Shield” feature) whether you’re in incognito mode or not, so I believe @adamjmcgrath’s recommendation here is still relevant.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Login required" error while trying to get authToken for ...
This error is often caused by an issue with third party cookies being blocked, causing silent authentication to be blocked. A few things...
Read more >
Login Required Message not bubbling up · Issue #163 - GitHub
If the user navigates back or clicks a link that takes them back before the logout has occurred, they see the 'Login Required'...
Read more >
Login required error from shell script - Ubiquiti Community
It looks like the result from unifi_login state isn't being saved, so that when the next command is executed, the system returns a...
Read more >
'Login Required' error. How to login after getting oauth2 token ...
However, when trying to call the Google Analytics management API I have the following error Error: Login Required .
Read more >
Google Login Required Error: Reasons, What Should I Do?
What to do if it says “You must be logged in to your Google Account” · Reboot device · Delete your Google Account...
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