© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
5 replies
j0suetm

Different refresh outcomes on different environments

I'm using clojurescript with supabase, and, when running on local (watch), supabase automatically refreshes the token whenever it expires. This is consistent, even if I exit the page and enter long after the token expires.

The problem is that this doesn't happen when I bundle the project in a static file. Login and other auth operations work flawlessly, of course, just the refresh flow jusn't happen, right after the first expiration.

What I think is happening: Since in local I'm running a constant watch, supabase might keep a state, even if the page isn't running on a browser. So it knows that a token needs refresh just based on the server state. Which doesn't happen when deployed, since Supabase just exists as long as a page is open.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Error fetching data on page refresh
SupabaseSSupabase / help-and-questions
4y ago
Branching and Vercel environments
SupabaseSSupabase / help-and-questions
4mo ago
Prod and Dev Environments
SupabaseSSupabase / help-and-questions
6mo ago
Supabase + Vercel (2 environments)
SupabaseSSupabase / help-and-questions
6mo ago