Closed oleggrishechkin closed 4 months ago
Supabase does not track the provider tokens. After the initial user login, you need to store these on your own.
Supabase does not track the provider tokens. After the initial user login, you need to store these on your own.
Thank you for reply. I think you can close this issue.
Will be good to have possibility to refresh token by supabase api since client_secret is required to refresh.
Supabase does not track the provider tokens. After the initial user login, you need to store these on your own.
Thank you for reply. I think you can close this issue.
Will be good to have possibility to refresh token by supabase api since client_secret is required to refresh.
I'm not able to close, but I think you can.
Bug report
Describe the bug
I'm trying to setup Google OAuth in my application. When token is expired, session make a refresh. But after refresh
provder_token
andprovider_refresh_token
are missed.To sign in I'm using this code:
Also if I call
signInWithOAuth
withoutprompt: 'consent',
I getprovider_refresh_token: undefined
in session object (which is also incorrect behaviour).To Reproduce
onAuthStateChange
. See noprovider_token
andprovider_refresh_token
in session object.Expected behavior
Session should be refreshed correctly,
provider_token
andprovider_refresh_token
should be in session object after refresh.System information
Additional context
It can be some Google OAuth limitation, so if it is I think it can be good to notice about it at Login with Google.
Also I run code at
localhost
.