Hi guys! In the doc, we have this: ``` 1. A user s...
# help
m
Hi guys! In the doc, we have this:
Copy code
1. A user signs up. Supabase creates a new user in the auth.users table.
2. Supabase returns a new JWT, which contains the user's UUID.
3. Every request to your database also sends the JWT.
I was wondering if the process is automatic, or is it the dev responsability to store the jwt and send it to. each request? Thanks!
n
Hello ! This thread has been automatically created from your message in a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
o
Hi Sorry if it isn't clear. You need to have the JWT with each request when you want to interact, but Supabase already manage that for you anyway @User
n
manuelcoffin (2022-03-24)
o
I'm not sure if Supabase returns you a JWT token each request, need to try!
m
Ok that's what I thought, thanks! There is something I'm not sure about though, right now when I send a request to update a file in the storage for example, the authorization token is my environment variable SUPABASE_ANON_KEY. I guess this is not the jwt, because it doesn't contain the infos about my logged in user
My problem is that when I login, the supabase session is not set, which is probably the reason why my jwt is not sent with each requests