auth-lock.js v11
React 16 / Node.js 8.11
I am trying to create a passwordless login/signup form with additional fields however the fields are not showing. Here is my setup: I am able to enter my phone and verify it, which creates a user in auth0 but does not show any additional fields. Any help would be appreciated.
code:
const passwordlessOptions = {
allowedConnections: ['sms'],
allowSignUp: true,
passwordlessMethod: 'code',
defaultDatabaseConnection: 'Username-Password-Authentication',
additionalSignUpFields: [
{
name: 'first_name',
placeholder: 'Enter your first name',
},
{
name: 'last_name',
placeholder: 'Enter your last name',
},
{
name: 'company',
placeholder: 'Enter your company name',
},
],
languageDictionary: {
title: '',
passwordlessSMSInstructions: 'Our instructions',
},
auth: {
redirectUrl: REDIRECT,
responseType: 'token id_token',
params: {
scope: 'openid profile email user_metadata app_metadata',
},
},
};
const lock = new Auth0LockPasswordless(
CLIENT_ID,
CLIENT_DOMAIN,
passwordlessOptions,
);
lock.show();