You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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.
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.
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
The text was updated successfully, but these errors were encountered: