Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To refresh a token in Supabase REST, you need to follow these steps:

  1. Make a POST request to the /auth/token endpoint with the refresh token in the body.

  2. Supabase will return a new access token and a new refresh token in the response.

  3. Update the existing access token with the new access token.

  4. Store the new refresh token in a secure location for future use.

  5. Use the new access token for subsequent authenticated requests to the Supabase API.