Hey everyone - I just implemented the passwordless login system in our Flask app, but would also like a way to capture the user's first and last name in the db on signup. Is this possible with passwordless? We're using a custom UI
r
rp_st
02/02/2023, 5:27 AM
hey @ethanmc1548
rp_st
02/02/2023, 5:28 AM
so for the passwordless login, you don't really know if the user is signing in or signing up before they enter their email.
rp_st
02/02/2023, 5:29 AM
This means that you will have to show them to enter their name after their enter their email and dynamically show the field to enter their name after. In this case, you can send the name info in the create code API (via the pre API hook option) and then store that against the generated preAuthSessionId.
Then in the consume code API, you get the preAuthSessionId and fetch the stored name.
rp_st
02/02/2023, 5:30 AM
Alternatively, you can first complete the whole login process, and you get a createdNewUser boolean after code consumption. If that boolean is true, you can redirect the user to a screen asking them their name.