To refresh a token in Supabase REST, you need to follow these steps:
Make a POST request to the /auth/token
endpoint with the refresh token in the body.
Supabase will return a new access token and a new refresh token in the response.
Update the existing access token with the new access token.
Store the new refresh token in a secure location for future use.
Use the new access token for subsequent authenticated requests to the Supabase API.
Asked: 2023-06-12 00:23:25 +0000
Seen: 18 times
Last updated: Jun 12 '23