Send provider name back when using Providers #10572
Unanswered
nicolas-besnard
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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 aprovider_tokenandprovider_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:
getSessionreturns the provider tokens with a provider key to identify the specific payloadI am all into implementing this if required, I just think we need to align on how to do it, and the best way to do it.
I can see 2 use cases for people that are using multiple providers for more than just authentication:
All reactions