-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User is not authenticated on page refresh. #60
Comments
It sounds like you're using the developer keys to test logging in with social identity providers. These developer keys have some limitations - in your case they prevent silent auth from working, which is why your login is not persisted between page refreshes. If you change the keys of your Google social connection in the Auth0 dashboard, this should resolve the issue https://manage.auth0.com/#/connections/social More info here: https://auth0.com/docs/connections/social/devkeys Closing for now, feel free to reopen if you have any other questions |
Hi @adamjmcgrath. I have added the google keys. Even then on page refresh I have added the fetch requests below. This one gets called when I refresh.
This one gets called when
|
Hi @a-c-sreedhar-reddy - can you let me know which browser are you using? |
Hi @adamjmcgrath I am using Brave browser. I am sorry for not mentioning it in the issue. |
Hey @adamjmcgrath. Just now checked in chrome. In chrome it is working fine. |
Hey @a-c-sreedhar-reddy - you're running into the Intelligent Tracking Prevention (ITP) browser restrictions of Safari and Brave (and soon Chrome) Your 2 options are to either use Rotating Refresh Tokens (see https://auth0.com/docs/libraries/auth0-spa-js#use-rotating-refresh-tokens) or a Custom Domain (See https://auth0.com/docs/custom-domains) Closing for now, feel free to reopen if you have any more questions |
I am having the same issue. I tried #49 (comment) but no success. I also tried enabling Rotating Refresh Tokens as mentioned in a previous comment, but still no avail. I have documented my issue here before I came across this issue. |
If this is an expected behavior, then I suppose my auth is "working as expected". However, I'm still getting this error for Samesite cookies. That's what made me look deeper into this issue. |
Description
User logs in with
loginWithRedirect
function. But on refreshing the pageuseAuth0
returns isAuthenticated as false.But on calling
longinWithRedirect
user gets authenticated without any credentials.Reproduction
I am using google oauth.
Environment
The text was updated successfully, but these errors were encountered: