Using Next.js and Auth0 with Supabase

It seems like a good alternative. I’d definitely love to see an example of how to handle this in the official docs. Can you explain a little bit about the async function that you are using to sign a new token when it’s invalid? I imagine we can use some sort of middleware to check if we get 401 when we call an endpoint instead of checking it in every call.