Whats the difference between having `thirdpartyema...
# general
v
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? Specifically asking because Golang backend has both
emailpassword
and
thirdpartyemailpassword
recipes
r
hey @volks_123 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
Hmm, so basically since I am using React Native and am creating my own UI, it doesnt really matter which one I use?
r
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
Makes sense!
17 Views