https://supertokens.com/ logo
Title
v

Vlad

10/22/2022, 3:01 AM
Is it possible to support multiple recipes? Wondering if it's possible to do email+password and passwordless? That way someone can have a password, but can just use an email if they wanted to
r

rp

10/22/2022, 3:51 AM
Hey @Vlad
Yes that is possible.
It uses thirdpartyemailpassword and passwordless
That being said, If a user creates an emailpassword account, the user id generated is different that if they sign up with passwordless.
To make them the user based on email, you would need the account linking feature which we are working on at the moment.
But until then, you can hack around it by storing a user id mapping yourself and just substituting the user id when a new session is created. And you can do this if the user already has an email password account which is verified and they login with passwordless. Not the other way around (security issue)
v

Vlad

10/22/2022, 4:02 AM
gothca, and i saw you can override thedelivery mechanism of the link, where is that done?
is that the
ContactMethodEmailOrPhone
?
v

Vlad

10/22/2022, 4:05 AM
could I use this for a completely different delivery method, not just an email? I was thinking of creating a QR code on a device, that can be scanned by another device where someone could login
r

rp

10/22/2022, 4:06 AM
Hmmmm. Yea. Technically you could
v

Vlad

10/22/2022, 4:07 AM
Cool, the idea was to have a Kiosk operator by a manager, and they can jsut select who's giong to login, the employee just scans the generated QR code, which really jsut contains the actual link, and that logs them in
r

rp

10/22/2022, 4:08 AM
Yea. Possible indeed!
v

Vlad

10/22/2022, 4:08 AM
cool
r

rp

10/22/2022, 4:08 AM
You could send some notif to the employees app in the above function containing thr link
The employee’s app would read that and generate a qr code
v

Vlad

10/22/2022, 4:09 AM
Good idea
Thank you