Ask Your Question
2

What is the process for refreshing a token in Supabase REST?

asked 2023-06-12 00:23:25 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-12 00:45:02 +0000

pufferfish gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-12 00:23:25 +0000

Seen: 18 times

Last updated: Jun 12 '23