how can i get the `USER_TOKEN`?
# help
s
how can i get the
USER_TOKEN
?
s
I'm not sure what you are referring to here, can you give a bit more context please?
s
well in the auto generated authapi it says
Copy code
GET USER
curl -X GET 'https://ogkklizgscwqlkrfndpv.supabase.co/auth/v1/user' \
-H "apikey: SUPABASE_KEY" \
-H "Authorization: Bearer USER_TOKEN"
but for the 2nd header, i dont know how to get the user_token
this is to get json info on the currently logged in user btw
s
So that is the
access_token
you get back after the user is logged in
s
oh, it returns the token?
s
Yes when you log in using the
https://[your_project_id_here].supabase.co/auth/v1/token?grant_type=password
endpoint, you get a
access_token
returned as part of the json body
s
oh alright
thanks
oh yea i see it now
cant believe i havent tried printing the return
thanks
s
no worries