supabase

Supabase REST: how to refresh token?


I'm using the supabase api (REST) with SWR. I have almost all endpoints to login, logout, invite, update an user, etc, but I can't find the endpoint to refresh the token.

Anyone knows about this endpoint?

I tried:

Without result (404)


Solution

  • Combining this base URL and this path is the endpoint that Supabase is calling to refresh the token, so it would be

    /auth/v1/token?grant_type=refresh_token

    You should be able to take a look at what other parameters are required to call this endpoint by looking at the code inside here!