Hello, I would like to be able to save additional ...
# general
a
Hello, I would like to be able to save additional user information during account creation using passwordless recipe. Can you tell me how I can get to this behavior?
r
Hey @Alankazam
So when is the info collected? When the user is typing in their email?
a
After receiving the OTP by SMS, I think the user creation happens when the code is confirmed and the account doesn't exist, that's when I would like to add additional user information before generating the new user.
r
right. So the user would enter some additional info along with the OTP?
We do have docs on how you can do something after a user is created in supertokens: https://supertokens.com/docs/passwordless/common-customizations/handling-signinup-success#2-on-the-backend
a
Yes, for example his name. If I send these additional fields in the OTP confirmation request, can I get these fields in this overwrite?
r
yes. You have access to the request object using
input.options.req
using which you can read the body containing the extra info
a
Excellent! Thank you very much