© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
38 replies
Karbust

[Auth-helpers] Issues with refresh token when extending JWT expiration

Hello,

Disclaimer: I'm self-hosting Supabase.

When I leave
GOTRUE_JWT_EXP
GOTRUE_JWT_EXP
on the default value of 3600 I don't get any error, but if I extend it to like a month (2592000) I get the error in the screenshot while loading the session on the website.

Do I need to change something else?

Doing something like this also returns the same error every single time:
setInterval(async () => {
    await supabase.auth.refreshSession()
}, 1000)
setInterval(async () => {
    await supabase.auth.refreshSession()
}, 1000)
image.png
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

jwt token expiration
SupabaseSSupabase / help-and-questions
4mo ago
JWT Expiration
SupabaseSSupabase / help-and-questions
4w ago
JWT Refresh Token Expiry Settings
SupabaseSSupabase / help-and-questions
7mo ago
Iframe refresh token (auth)
SupabaseSSupabase / help-and-questions
7mo ago