SupabaseS
Supabase•2mo ago
Fizzy

Supabase Discord Oauth Provider token issue

Hey There!
I am creating a web dashboard for a Discord Bot. So I use "provider_token" from supabase.auth.getSession() to use Discord's Api. But after an hour the provider_token and the provider_refresh_token gets deleted from the getSession() json.

Is this normal?
If so, what are the best practices to store this provider_token and provider_refresh_token?
I tried the supabase.auth.refreshSession(), but that doesn't refresh the provider_token.

I would really appreciate the help. 😇
Was this page helpful?