S
Supabase•2mo ago
'M7ilan

discord provider token expire very quickly

Hello, so I have a nextjs project with discord provider implemented and most of the app is done, but I have this annoying problem where the discord token/session expires very quickly (probably 1 hour), is there any already implemented way in supabase that handles this problem or I have to handle the refreshing manually?
5 Replies
garyaustin
garyaustin•2mo ago
Supabase only stores the discord token in the session until the first JWT refresh. It is up to you to store and handle it after that.
'M7ilan
'M7ilanOP•2mo ago
that explains a lot
Supabase Auth does not manage refreshing the provider token for the user.
why? is there any plans on implementing this?
garyaustin
garyaustin•2mo ago
I've seen them say it is because there is unknown security implications based on what your requesting for scopes and the like. So they don't want to be responsible for it in the DB. You can choose to store in the DB if not super sensitive or in local storage or similar. I doubt it will be changing.
'M7ilan
'M7ilanOP•2mo ago
thanks man for your help, you've been carrying supabase community for a long time 🫡

Did you find this page helpful?