How to get Current Provider of User in Session object with database strategy? #5042
Unanswered
rockerrishabh
asked this question in
Help
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.
-
Question 💬
I am using Prisma Adapter. I want to know user provider name they used to sign-in so that I can manage proper error handling in Account Linking in user profile.
I already tried setting a callback for that in session object with and without async signIn object but "provider" returns undefined ( cannot read the properties of undefined( reading 'provider' ) ).
How to reproduce ☕️
Is there any hook to get current Provider detail in session like getProviders().
Another Method:- I used Prisma to fetch Provider from backend.
Contributing 🙌🏽
Beta Was this translation helpful? Give feedback.
All reactions