© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
4 replies
lp

getClaims in supabase ssr

Hi, I am trying to make it so my middleware in NextJs does not make a database call every time to provide better UX, I tried using getClaims but seems like it does not refresh the access token with supabase ssr?

Anyone has a solution, should I refresh token with my own logic when trying to access data I check the token is fresh, etc?
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

Supabase ssr + Sveltekit + GetClaims() sliding session implementation
SupabaseSSupabase / help-and-questions
6mo ago
Missing 'getClaims' method in Supabase Flutter SDK
SupabaseSSupabase / help-and-questions
7mo ago
gotrue locally + @supabase/ssr
SupabaseSSupabase / help-and-questions
3y ago
session with @supabase/ssr
SupabaseSSupabase / help-and-questions
3y ago