Hi SuperTokens team.
I have 2 (hopefully simple 😉) short questions:
I didn't find helpful documentation for the two parameters regarding the AccountLinking feature:
doUnionOfAccountInfo in SuperTokens.listUsersByAccountInfo
and
attemptAccountLinking in EmailVerification.verifyEmailUsingToken
Please help what exactly these parameters are for.
Thanks a lot and best, Daniel
r
rp_st
11/06/2023, 5:02 PM
hey @DanielAtStruggly
rp_st
11/06/2023, 5:05 PM
if providing muliple values to listUsersByAccountInfo, like email and phone, or email and social provider info, and if doUnionOfAccountInfo is true, then it will list users that have all the provided info, whereas if doUnionOfAccountInfo is false, it will list users that have at least one of the provided info.
For verifyEmailUsingToken, if attemptAccountLinking is true, it will attempt to link the account associated with the token to anu primary user with the same email. If there is no primary user with the same email, it will make the account itself a primary user (so future accounts can be linked to it). Else if attemptAccountLinking is false, it will not attempt any sort of account linking with the account associated with the token.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).