# How to access additional parameters in the Universal Login page template

**URL:** <https://community.auth0.com/t/how-to-access-additional-parameters-in-the-universal-login-page-template/160393>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [December 10, 2024, 1:21pm UTC](https://community.auth0.com/t/how-to-access-additional-parameters-in-the-universal-login-page-template/160393 "2024-12-10T13:21:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexp1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexp1/32/60184_2.png) [@alexp1](https://community.auth0.com/u/alexp1)\
**Post date:** [December 10, 2024, 1:21pm UTC](https://community.auth0.com/t/how-to-access-additional-parameters-in-the-universal-login-page-template/160393/1 "2024-12-10T13:21:27Z")

</div>

I am using auth0-js and want to pass custom parameters via the authorize method. Some documentation e.g. [custom parameters](https://auth0.com/docs/customize/login-pages/universal-login/customize-templates#custom-query-parameters) indicates you can add parameters and access them in the Universal Login page template. However, if I add these parameters when I get to the page I get an exception saying “Following parameters are not allowed on the `/authorize` endpoint: [ext-custom]”. Elsewhere it implies you can use the state to pass parameters but that those parameters are then not accessible in the page template. I am using the latest version of auth0-js (9.28.0)

---

<div class="post-metadata">

**Author:** ![marybeth.hunter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marybeth.hunter/32/61955_2.png) [@marybeth.hunter](https://community.auth0.com/u/marybeth.hunter)\
**Post date:** [December 10, 2024, 4:34pm UTC](https://community.auth0.com/t/how-to-access-additional-parameters-in-the-universal-login-page-template/160393/3 "2024-12-10T16:34:59Z")

</div>

Hi @alexp1,

The link you shared discusses custom parameters within New Universal Login Page Templates. Page Templates are only supported when using the New Universal Login Experience. You mention you are using `auth0-js`, which indicates that you are using the Classic Login Experience in your application. Can you confirm?

Related docs on passing custom parameters:

- [Passing Custom Parameters to Auth0 Actions from Applications](https://community.auth0.com/t/passing-custom-parameters-to-auth0-actions-from-applications/134319)
- [Passing custom parameters with auth0.js authorize](https://community.auth0.com/t/passing-custom-parameters-with-auth0-js-authorize/101139)

Thanks,

Mary Beth

---

<div class="post-metadata">

**Author:** ![alexp1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexp1/32/60184_2.png) [@alexp1](https://community.auth0.com/u/alexp1)\
**Post date:** [December 10, 2024, 5:03pm UTC](https://community.auth0.com/t/how-to-access-additional-parameters-in-the-universal-login-page-template/160393/4 "2024-12-10T17:03:40Z")

</div>

Hi Mary Beth - we are using the Universal Login.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/b/abeacbe27474d47b54df716729a4142ac843fad2.png)  
We upgraded several months ago and it all works fine with auth0-js.

Auth0.js is a client-side library for Auth0. It is recommended for use in conjunction with [Universal Login](https://auth0.com/docs/universal-login), which should be used whenever possible. Using auth0.js in your SPA makes it easier to do authentication and authorization with Auth0.

---

<div class="post-metadata">

**Author:** ![alexp1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexp1/32/60184_2.png) [@alexp1](https://community.auth0.com/u/alexp1)\
**Post date:** [December 10, 2024, 6:01pm UTC](https://community.auth0.com/t/how-to-access-additional-parameters-in-the-universal-login-page-template/160393/5 "2024-12-10T18:01:47Z")

</div>

Is this not the correct package?

---

<div class="post-metadata">

**Author:** ![marybeth.hunter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marybeth.hunter/32/61955_2.png) [@marybeth.hunter](https://community.auth0.com/u/marybeth.hunter)\
**Post date:** [December 17, 2024, 6:55pm UTC](https://community.auth0.com/t/how-to-access-additional-parameters-in-the-universal-login-page-template/160393/6 "2024-12-17T18:55:01Z")

</div>

Hi @alexp1,

Can you provide me with the tenant name so I can take a closer look at the page template and try to reproduce this? You can send it to me in a private message.

Thanks,

Mary Beth

---

<div class="post-metadata">

**Author:** ![alexp1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexp1/32/60184_2.png) [@alexp1](https://community.auth0.com/u/alexp1)\
**Post date:** [December 18, 2024, 10:24am UTC](https://community.auth0.com/t/how-to-access-additional-parameters-in-the-universal-login-page-template/160393/7 "2024-12-18T10:24:21Z")

</div>

Hi @marybeth.hunter . We have upgraded our sdk - we are now using the auth0-spa package - and we can now pass parameters to the authorize endpoint.  
Thanks for your help. You pointed us in the right direction. Never saw this upgrade when we moved to the New Universal Login.

---

<div class="post-metadata">

**Author:** ![marybeth.hunter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marybeth.hunter/32/61955_2.png) [@marybeth.hunter](https://community.auth0.com/u/marybeth.hunter)\
**Post date:** [December 18, 2024, 3:10pm UTC](https://community.auth0.com/t/how-to-access-additional-parameters-in-the-universal-login-page-template/160393/8 "2024-12-18T15:10:26Z")

</div>

@alexp1,

Great!! Happy to hear it! Let us know if you have any additional questions 🙂

Best,

Mary Beth

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 1, 2025, 3:11pm UTC](https://community.auth0.com/t/how-to-access-additional-parameters-in-the-universal-login-page-template/160393/9 "2025-01-01T15:11:09Z")

</div>

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