SupabaseS
Supabase2mo ago
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?
Was this page helpful?