What's the best place to put "welcome email for ne...
# support-questions
c
What's the best place to put "welcome email for new users" logic? I had it in verifyEmailPOST but now I'm not sure if it would be better in consumeCodePOST 🤔
r
consumeCodePOST is the right location
You should check if createdNewUser is true or not
c
And what is the role of "contactMethod" in the ThirdPartyPasswordless recipe? I'd like to only send auth codes to phone numbers if the user chooses it to sign in, other comms should go through email
okay cool! I moved it.
Ideally I would prompt new users for email after a successful phone signin
r
ContactMethod allows you to specify how the passwordless login code is sent to the user. If you want only phone, then set it to “PHONE”
c
hmm okay so if I set it to EMAIL only, passwordless users can only use email to sign in?
r
Yes.
And there is the third option in which users can give either a phone or email
c
yes that's what I'd like to use
r
You can check the types that are available fo r that option
c
It would be great with an option to prompt the user for an email if they sign in with phone and don't have an email added
Yes I am using EMAIL_OR_PHONE currently, just wondering about the other options
r
Ah right.
To prompt users to also enter their email post phone login, you would have to make your own component.
c
yeah, I'll do that 😄
2 Views