We have used thirdpartyemailpassword and email ver...
# support-questions-legacy
p
We have used thirdpartyemailpassword and email verification recipes together, the users can either login with email password or third party probiders such as Google, Azure, okta, etc. Is there any way to find which login method the user logged in with?
n
Hi @phoenix1413. You can try to fetch the user from the getUserById function exposed by the individual recipes, the recipe will return nothing if the user id does not belong to that recipe We are also releasing a new breaking version of the SDK which will make this easier, but in the meantime thats the best way
p
Oh ok, I'll try that. Thank you so much @nkshah2 😊
r
@nkshah2 that is wrong. They are using thirdpartyemailpassword recipe so it will return the user.
The user object will have a `thirdParty`prop if it's a social login user, else it won't
n
Ah right, my mistake I missed that part
p
ohh Thank you @rp_st . Will check it.
7 Views