https://supabase.com/ logo
#help
Title
# help
x

xa

01/19/2022, 8:30 AM
Hi, im getting invalid refresh token even though the time of request is less than the expires_at time?
k

ktosiek

01/19/2022, 8:32 AM
invalid token
how are you sending the token? Have you used it earlier? refresh_tokens are single use.
x

xa

01/19/2022, 8:35 AM
oh. after a user signs in, i save the session on the client, then send the refresh_token to the server and refresh it
k

ktosiek

01/19/2022, 8:49 AM
I don't think you need to do that, after login you should get a perfectly valid access_token
x

xa

01/19/2022, 9:01 AM
Yea
I guess i was trying to do it so that the user wont have to login again if the session expires