Hello, I'm trying to use Supabase as a service to login my users, I created a basic email / password form and a rest-api resource with my supabase url and apikey. I'm able to login the user successfully and the response returns all the informations including an access_token. Ideally, the user is not redirected from the login app to the dashboard app.
Now, in the dashboard app, I would like to check if the user is authorised by using the access_token returned in the login app. If so, show the dashboard app, otherwise route back to the login app.
In a server-side application I would store the access_token in a SESSION variable and reuse it when needed, is it possible to achieve something like that in Retool? How can I store the access_token for further checks?
If this is not possible, what should be the correct workflow using Retool and a custom login?
Thanks!