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
nkshah2
09/22/2023, 11:16 AM
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
phoenix1413.
09/22/2023, 12:03 PM
Oh ok, I'll try that. Thank you so much @nkshah2 😊
r
rp_st
09/22/2023, 12:15 PM
@nkshah2 that is wrong. They are using thirdpartyemailpassword recipe so it will return the user.
rp_st
09/22/2023, 12:15 PM
The user object will have a `thirdParty`prop if it's a social login user, else it won't