# Auth0 Angular Sdk registration: pass an extra parameter dynamically

**URL:** <https://community.auth0.com/t/auth0-angular-sdk-registration-pass-an-extra-parameter-dynamically/82806>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [May 3, 2022, 3:02pm UTC](https://community.auth0.com/t/auth0-angular-sdk-registration-pass-an-extra-parameter-dynamically/82806 "2022-05-03T15:02:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aymen.boumaisa.exter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/aymen.boumaisa.exter/32/34801_2.png) [@aymen.boumaisa.exter](https://community.auth0.com/u/aymen.boumaisa.exter)\
**Post date:** [May 3, 2022, 3:02pm UTC](https://community.auth0.com/t/auth0-angular-sdk-registration-pass-an-extra-parameter-dynamically/82806/1 "2022-05-03T15:02:22Z")

</div>

Please include the following information in your post:

- Which SDK this is regarding:Auth0 Angular SDK
- SDK Version: Latest
- Platform Version: Ionic Angular (Capacitor)
- Code Snippets/Error Messages/Supporting Details/Screenshots:

We want to pass an extra parameter to AuhService registration,  
we succeeded to do it on the service registration module  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/5/0/50465cb967030613caa60e68e975d5afdfcd56af.png)  
but like this it’s static, we want to do it dynamically from the login page here  
this.auth  
.buildAuthorizeUrl()  
.pipe(mergeMap((url) =\> Browser.open({ url, windowName: ‘\_self’ })))  
.subscribe();

Thanks for your help

**Is this a feature request or bug report?** If so, please create an issue directly in the corresponding GitHub repo. The Community SDK category is for general discussion and support.

---

<div class="post-metadata">

**Author:** ![k.imiasalamo9881](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/k.imiasalamo9881/32/36832_2.png) [@k.imiasalamo9881](https://community.auth0.com/u/k.imiasalamo9881)\
**Post date:** [May 4, 2022, 10:59am UTC](https://community.auth0.com/t/auth0-angular-sdk-registration-pass-an-extra-parameter-dynamically/82806/2 "2022-05-04T10:59:07Z")

</div>

As you are using auth0-js sdk, it is possible to pass extra parameter in the hosted login page when calling **authoirze()** method.

Then, you can capture the extra parameter in the hosted login page and pass the parameter as lock configuration.

(Note that auth0 hosted login page uses lock as default login template). To achieve your goal, enable the customization in the hosted login page. [My Insite](https://www.myinsite.org/)

**Login:**

When the user clicks on the Login button in your application, pass a parameter to disable signup.

```auto
 var auth0 = new auth0.WebAuth({
    clientID: environment.auth0.client_id,
    domain: environment.auth0.domain,
    responseType: environment.auth0.responseType,
    audience: environment.auth0.audience,
    redirectUri: environment.auth0.callbackurl,
    scope: environment.auth0.scope,
  });

  const params = {
      allow_signup:false,

    };
    this.auth0.authorize(params);

```

Then, in the hosted page, capture the extra parameter and pass to lock configuration option.

```auto
   //Access the addtional parameters in the hosted login page like below
    console.log(config.extraParams.allow_signup);

allowSignUp: config.extraParams.allow_signup

```

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 4, 2022, 3:03pm UTC](https://community.auth0.com/t/auth0-angular-sdk-registration-pass-an-extra-parameter-dynamically/82806/3 "2022-05-04T15:03:05Z")

</div>

Teamwork makes the dreamwork!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 28, 2022, 1:14pm UTC](https://community.auth0.com/t/auth0-angular-sdk-registration-pass-an-extra-parameter-dynamically/82806/4 "2022-07-28T13:14:49Z")

</div>


