1
Send provider name back when using Providers
Source: supabase/supabase#10572 · opened by @nicolas-besnard
Hi π ! Right now, when I use OAuth providers (Google, Github, Discord etc...) on the callback, it's hard to know from which provider you just came back. Using NextJS, when looking at the getSession(), I got back a provider_token and provider_refresh_token, but there's no information about the provider that information is coming from. For my use case, I need to save those tokens (token + refresh token) in the database to be able to query those providers for additional information later. I can think of multiple solutions: β’ In the getSession returns the provider tokens with a provider key to identify the specific payload β’ Have a way to automatically save the tokens in a table (like we have for the "profile" tutorial β’ Provide a new hook. As Gotrue [is already extracting those data]( it would be a matter of changing the callback on Supabase to provide this information, then changing the format of the save Sessions in localStorage β¦
No pledges yet. Be the first to back this.
Comments
Similar requests
Email & SMS providers, and the status of webhook-triggered custom providers
3 votes · 0 comments
Support Custom Phone Authentication Providers
1 vote · 0 comments
Cannot add "email" provider to an existing user
1 vote · 0 comments
OAuth authentication : custom provider
5 votes · 0 comments
Does gotrue/supabase support recovery emails?
3 votes · 0 comments
No comments yet.