Hello, so I followed this article from developer auth0 labs: add-additional-signup-steps in order to get extra data from my users.
I added a form and a flow to my universal login. I want the flow to add a given name and family name to the user data from the fields.
{
“given_name”: “{{fields.first_name}}”,
“family_name”: “{{fields.last_name}}”
}
I went over the post-login actions and added a new action
exports.onExecutePostLogin = async (event, api) => {
const FORM_ID = ‘my-form-id’;
if (!event.user.family_name || !event.user.given_name) {
api.prompt.render(FORM_ID)
}
};
exports.onContinuePostLogin = async (event, api) => {
};
My Post login now looks as follow:
Begin → Ask for Name and Last name → Add email to JWT → End
All is well, everything is working fine. However, when I get prompt that form and fill it out, I observe two things:
- Auth0 never adds the new fields to my user data.
- I see the log: Failed Silent Auth + Custom prompt interaction required (my angular app apparently fails)
I don’t observe this behavior when user family name and given name is already filled by the user for instance when using google connection. Please help!