Skip to content
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

The token is never refreshed #61

Closed
Etheonor opened this issue Feb 20, 2021 · 0 comments
Closed

The token is never refreshed #61

Etheonor opened this issue Feb 20, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Etheonor
Copy link

Hello,

I had an issue on my app and I thought I did something wrong, but I just tried the nextjs/ssr/auth example in the supabase repo, and I also have a problem.

Repro step:

  1. Sign-up
  2. Wait 1hour
  3. Try to go on the profile page (SSR)

It will redirect you to the index page because the token is expired. And if you click on the static example, you'll have an error :

https://ibb.co/3c29dyQ

SSR -> I can't even manually use the refresh token since it's not in the cookie.
Client side -> Weird behavior, it seems that the Auth HOC never use the refresh token, and I have to logout/login.

@Etheonor Etheonor added the bug Something isn't working label Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants