I have a usecase where I need to build pre user registration form and it has to accept firstname, lastname, email then we have pre build api’s for to get token and then with that email and token I need to hit another api to check user exists or not same I need to display in the UI .
Can anyone guide me how to achieve this I am trying from weeks but nothing I got…, any help in this much appreciated.
If you need to configure additional signup fields, I suggest either configuring them on the sign up page itself, or prompting your users to fill it in during their first sign up/login flow.
Using Forms will prompt the user to fill out the additional fields after they have signed up but before the login process has complete. This would take place during their initial signup and login attempt to capture these details.
Or alternatively, you can configure the sign up page itself to ask the user for these additional fields.
Ultimately, you get to decide when and where the user has to provide these additional fields.
Thanks for the quick reply I am tried all steps mentioned by you I have created forms , flows and pre user registration trigger also but nothing is working I am attaching pics for your reference.
I am attaching login and signup form I need signup form needs to accept 3 fields like firstname, lastname, email.
Can you please help how can I achieve this .
When you use a post-login Action, you can add a check for the user’s first login attempt to prompt them for the additional fields with Forms. Note that a user automatically logs in immediately after signing up by default, which is what makes this work.
// Example using the post-login trigger
exports.onExecutePostLogin = async (event, api) => {
if(event.stats.logins_count === 1){
api.prompt.render(':form_id');
}
}
exports.onContinuePostLogin = async (event, api) => {
// Add your logic after completing the form
}
Thanks for your responce actually we don’t have custom domain currently as we are showing auth0 to some of the prospective clients and we have received one request from client like initial signup customer will provide firstname, lastname, email then we will go and check in our custom API for user with those details will exists or not in case with those details we didn’t find anyone we will ask customer to provide more details like address and pincode this time we will go and check in other custom API for user exists or not .
For above use case our clint wants to see demo so this is where we need your inputs how to achieve , if you help how can we achieve above use case it will a great help .