© 2026 Hedgehog Software, LLC

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

getClaims and token refresh

I was wondering if getClaims refresh the access token if it is about to expire?

I've read that in the doc but was not so sure, should I use getUser in the backend to make sure the user does exist in my database at the place of getClaims?

The middleware for next js does getUser, which is not that great since it makes thing slow, i should just verify getSession, but how will the refresh token but updated, 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

getClaims and typescript
SupabaseSSupabase / help-and-questions
7mo ago
Invalid Refresh Token: Refresh Token Not found
SupabaseSSupabase / help-and-questions
2y ago
Spotify token refresh
SupabaseSSupabase / help-and-questions
4y ago
Invalid Refresh Token
SupabaseSSupabase / help-and-questions
4y ago