https://supertokens.com/ logo
Third party email password vs email password
v

Volks

04/01/2023, 12:37 PM
Whats the difference between having
thirdpartyemailpassword
recipe compared to having both
emailpassword
+
thirdparty
recipes? I dont quite understand the
thirdparty
email part, isn't the email/ password auth handled by me?
r

rp

04/01/2023, 2:15 PM
hey @Volks Having the thirdpartyemailpassword recipe means that users can log in using both third-party providers (such as Google or Facebook) and email/password. The email/password authentication is still handled by SuperTokens, but it is integrated with the third-party authentication flow. On the other hand, having both emailpassword and thirdparty recipes means that users can only log in using either email/password or third-party providers, but not both at the same time (from a UI point of view that is)
so the UI for thirdpartyemailpassword will have both the options, unlike just emailpassword or just thirdparty recipe
v

Volks

04/01/2023, 2:18 PM
Hmm, so basically since I am using React Native and am creating my own UI, it doesnt really matter which one I use?
r

rp

04/01/2023, 2:26 PM
yea. then it doesn't matter
i mean.. it kind of does in a way
for example, if you call getUserById in emailpassword recipe, it will only search for emailPassword users. Whereas if you do thirdpartyemailpassword.GetUserById, it will search across both the sub recipes. So it makes it easier to use thirdpartyemailpassword
v

Volks

04/01/2023, 3:35 PM
Makes sense!