FeatureFuel
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.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests