© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3mo ago•
18 replies
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. 😇
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Exchanging provider token for Supabase token
SupabaseSSupabase / help-and-questions
4y ago
How to secure provider_token, provider_refresh_token when using google oauth?
SupabaseSSupabase / help-and-questions
13mo ago
google oauth issue /#access_token=
SupabaseSSupabase / help-and-questions
6mo ago
discord provider token expire very quickly
SupabaseSSupabase / help-and-questions
4mo ago