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:
/auth/v1/refresh
/auth/v1/refreshToken
/auth/v1/refresh/token
/auth/v1/token/refresh
Without result (404)
CodePudding user response:
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 gotrue-js!