Auth0 Home Blog Docs

Auth0-spa-js additionalSignUpFields

is it possible to additionalSignUpFields while creating a auth0Client instance?

1 Like

Welcome to our community @nfnlabs!

Let me confirm it with our DX-SDK team and get back to you with the news!

Hello, I’m in a bit of a mess here, could you please help me out. I just need to add few fields during signup.

I asked my colleagues responsible for auth0-spa-js. I will get back to you as soon as I have info from them!

Thanks a lot for helping

No worries! We’re here for you!

1 Like

hello, any update on this?

Hey there!

Not yet. Let me reping the team!

I deleted the reply from the previous user as it was SPAM.

So is that a “No” on additionalSignUpFields in Auth0 SPA?

1 Like

Hey, Paying user here… can we get an answer?

Hi @nfnlabs,

When you use auth0-spa-js from your app, the Auth0 SPA SDK handles grant and protocol details, token expiration and renewal, as well as token storage and caching. Under the hood, it implements Universal Login and the Authorization Code Grant Flow with PKCE.

(for more on which fields you can control from auth0-spa-js , please refer to https://auth0.github.io/auth0-spa-js/)

To add additional signup field you have to go to auth0 dashboard > Universal Login > Loing tab In the code below use using the Lock.js, you can add the additionalSignUpFields .

example :

 var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
...
additionalSignUpFields: [
      {
    		name: "full_name",
    		placeholder: "Enter your full name"
  		}
      ],
...

for more on this please have a look at https://auth0.com/docs/libraries/lock/v11/configuration#database-options

I hope this helps.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.