How to register multiple OAuth logins to the same user? #895
-
I want the user to be able to register using one of the third-party providers and then have them connect other providers to the existing account instead of registering a new one. What would be the unique identity that tells who the user is in this case? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Did you figure this out? I guess if the email IDs match you can assume they are indeed the same user. |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
The
passReqToCallback
option can be used to pass the Request object to the verifier function, and then you can handle the connecting account logic by checking if thereq.user
object exists or not.