Just for my clarity, are you saying you’re avoiding refreshing the Supabase token by simply expiring the Auth0 session before it or at the same time?
I ended up writing custom logic on the server side to:
- check for a valid token with each request to the supabase client
- if it’s invalid, await an asynchronous function that signs a new token to the user session and try again
^ Open to suggestions on that. Obviously it’s not a normal pattern like also generating a refresh token, but it seems to work as intended.