Hi, how would one create a flow with the following...
# ask-a-descoper
c
Hi, how would one create a flow with the following screens: 1. Social buttons OR email address + button 2. If Social button clicked a. Continue to OAuth (this is easy) 3. If Email form submitted, check if user exists a. If user exists, show screen with password to login b. Otherwise, show screen with user info (first name, last name, etc) i. Create user with info
s
Have your tried the wizard ?
And choosing those options ?
c
Sorry, pressed submit too soon, it's not the question 😆
s
Ohh ok :)
c
Now bring it on 🙂
I searched for an "Action" that checks if user exists, but didn't find one (did I miss it?)
s
in 3.b path, his doesn't enter password ?
we have first seen condition, but not exactly covers your use case
because this assumes you used before that some sign-in-or-up auth method
c
in 3.b path, his doesn't enter password ?
yeah password too
Yeah first-seen is not exactly it (cookies cleared, etc)
Is there a way to perhaps offload the user-detection part to the app, and then just launch the appropriate flow?
s
that is possible
have 2 flows, one for sign-in one for sign-up
you can use backend SDK, to check if user exist with certain email
and show the right flow in client based on that
another (diff) option, is using magic link instead of password in that case, you use "sign up or in magic link" actions (Email) after that, use the "first seen" condition, and collect that other info only if firstSeen==
true
c
Got it - thanks!
s
in general , magic link might provide better experience and more secure auth method than passwords, but up to you
💯 1