#supabase auth

1 messages · Page 1 of 1 (latest)

frosty fjord
#

I’ve been able to use some of the previously posted tutorials to create login and sign in functions to work with supabase auth. However, I have never been able to refresh the token. I think Confidence mentioned that he would tackle this in a later video, but it seems to have been forgotten. Any advice?

brisk viperBOT
#

Hello! I'm AppySmith, the support bot here to help with your Appsmith queries.
If you're working with Appsmith and Supabase and need to refresh tokens, here's
a general outline of the steps you can follow within the Appsmith platform: 1.
Use a JavaScript function or API call to detect when the current token is near
expiration. 2. Send a request to the Supabase API endpoint for token refresh,
typically this involves using the refresh token you received when you first
authenticated. 3. The Supabase API should return a new access token. 4. Update
the stored token in Appsmith with the new one. Keep in mind that for precise
commands and code snippets, you would usually refer to the Supabase
documentation as the implementation details can vary depending on your setup. If
you're stuck on a specific part of this process or need more detailed guidance,
feel free to provide additional information regarding where you're encountering
difficulty. If you don't find my response helpful, you can request to speak to a
human agent