# How to pass custom params from universal login page to callback page

**URL:** <https://community.auth0.com/t/how-to-pass-custom-params-from-universal-login-page-to-callback-page/96404>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [December 14, 2022, 4:06am UTC](https://community.auth0.com/t/how-to-pass-custom-params-from-universal-login-page-to-callback-page/96404 "2022-12-14T04:06:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dizhang\_rba](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dizhang_rba/32/41927_2.png) [@dizhang\_rba](https://community.auth0.com/u/dizhang_rba)\
**Post date:** [December 14, 2022, 4:06am UTC](https://community.auth0.com/t/how-to-pass-custom-params-from-universal-login-page-to-callback-page/96404/1 "2022-12-14T04:06:40Z")

</div>

Hi,  
I am using the universal login page and auth0.js webAuth.login method to do login. Our user can choose language in universal login page, so we want to pass the language info which user choosed back to our web app. but we can not found a good way to do so, is there any way we can pass some information back to our web app after login in the universal login page ?  
Really thanks for giving me any ideas!

---

<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:** [December 14, 2022, 1:17pm UTC](https://community.auth0.com/t/how-to-pass-custom-params-from-universal-login-page-to-callback-page/96404/2 "2022-12-14T13:17:48Z")

</div>

Hey there!

I feel that it’s only achievable through some hacky workarounds I mean it’s definitely not an official way we recommend to take. In terms on universal login internationalisation here’s how we encourage our customer to do it:

> **[Universal Login Internationalization](https://auth0.com/docs/customize/internationalization-and-localization/universal-login-internationalization)**
>
> Describes the languages you can choose to localize your login pages.

however also there were a lot of customers asking about similiar things in the past and you can make use of user metadata in chasing your solution:

> **[Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Users/get_users_by_id)**

---

<div class="post-metadata">

**Author:** ![dizhang\_rba](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dizhang_rba/32/41927_2.png) [@dizhang\_rba](https://community.auth0.com/u/dizhang_rba)\
**Post date:** [December 15, 2022, 6:26am UTC](https://community.auth0.com/t/how-to-pass-custom-params-from-universal-login-page-to-callback-page/96404/3 "2022-12-15T06:26:31Z")

</div>

Thanks a lot! And we found a tricky way witch is not in document, we pass a param when called webAuth.login like below:

```auto
webAuth.login(
            {
              ... otherparams,
              **locale: "en", // user checked value**
            },
            function (err) {
              if (err) displayError(err);
              button.disabled = false;
            }
          );

```

and we add a **auth pipeline rule** function where we can get this **locale** param from **context.request.query** and add this info into **idToken** claims so our web app can get this info from session.

---

<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:** [December 15, 2022, 11:22am UTC](https://community.auth0.com/t/how-to-pass-custom-params-from-universal-login-page-to-callback-page/96404/4 "2022-12-15T11:22:31Z")

</div>

Perfect! Thanks for sharing it with the rest of community!

---

<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:** [December 29, 2022, 11:23am UTC](https://community.auth0.com/t/how-to-pass-custom-params-from-universal-login-page-to-callback-page/96404/5 "2022-12-29T11:23:16Z")

</div>

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