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

Token refresh not working #54

Closed
guido4000 opened this issue Feb 7, 2021 · 3 comments
Closed

Token refresh not working #54

guido4000 opened this issue Feb 7, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@guido4000
Copy link

When using the following app templates with SWR to fetch data on an interval the token refresh does not work. After one hour I get 401 Unauthorized responses from the API route. Only after reloading the app the token gets refreshed.

https://github.com/supabase/gotrue-js/tree/master/example/next
https://github.com/supabase/gotrue-js/blob/master/example/next/pages/index.js

https://github.com/supabase/supabase/tree/master/examples/nextjs-with-supabase-auth

@guido4000 guido4000 added the bug Something isn't working label Feb 7, 2021
@kiwicopple
Copy link
Member

Hi @guido4000 - I think this is a dupe of #32 (comment)

If not, feel free to reopen 👍

@guido4000
Copy link
Author

@kiwicopple I am not so sure that this is a dupe. In the other ticket a domain issue is mentioned. My problem is not related to the use of multiple domains.

Besides that I wonder if you plan to fix the token refresh issues as this should be a prerequisite for any production use of Supabase auth.

@kiwicopple
Copy link
Member

I'll drop a comment in the other issue to investigate this one simultaneously. I suspect the root-cause is the same. If it is different, I'll reopen this issue.

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