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
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.
Social Login | Supabase Docs
Logging in with social accounts
that explains a lot
Supabase Auth does not manage refreshing the provider token for the user.why? is there any plans on implementing this?
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.
thanks man for your help, you've been carrying supabase community for a long time 🫡