# Where to put the template file If I want to customize New Universal Login Pages

**URL:** <https://community.auth0.com/t/where-to-put-the-template-file-if-i-want-to-customize-new-universal-login-pages/80574>\
**Category:** Get Help\
**Tags:** liquid-syntax, new-universal-login, auth0, mfa\
**Created:** [March 25, 2022, 8:39pm UTC](https://community.auth0.com/t/where-to-put-the-template-file-if-i-want-to-customize-new-universal-login-pages/80574 "2022-03-25T20:39:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dddan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dddan/32/33259_2.png) [@dddan](https://community.auth0.com/u/dddan)\
**Post date:** [March 25, 2022, 8:39pm UTC](https://community.auth0.com/t/where-to-put-the-template-file-if-i-want-to-customize-new-universal-login-pages/80574/1 "2022-03-25T20:39:14Z")

</div>

Hey,

- base on this link [https://auth0.com/docs/authenticate/login/auth0-universal-login/new-universal-login-vs-classic-universal-login](https://auth0.com/docs/authenticate/login/auth0-universal-login/new-universal-login-vs-classic-universal-login) it mentions universal login pages can be customized by using page templates
- and from this link [https://auth0.com/docs/customize/universal-login-pages/universal-login-page-templates](https://auth0.com/docs/customize/universal-login-pages/universal-login-page-templates) it also mentions I could this add something like below to customize the page

```auto
<!DOCTYPE html><html>
  <head>
    {%- auth0:head -%}
  </head>
  <body>
    {%- auth0:widget -%}
  </body></html>

```

So, Im wondering where can I put this html template in my project (I use auth0.js in react)?

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [March 28, 2022, 2:17pm UTC](https://community.auth0.com/t/where-to-put-the-template-file-if-i-want-to-customize-new-universal-login-pages/80574/2 "2022-03-28T14:17:03Z")

</div>

Hi @dddan

This isn’t necessarily part of your project, you need to set this via the management API:

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

John

---

<div class="post-metadata">

**Author:** ![dddan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dddan/32/33259_2.png) [@dddan](https://community.auth0.com/u/dddan)\
**Post date:** [March 29, 2022, 3:54pm UTC](https://community.auth0.com/t/where-to-put-the-template-file-if-i-want-to-customize-new-universal-login-pages/80574/3 "2022-03-29T15:54:29Z")

</div>

Thank you john, I’ll try it

---

<div class="post-metadata">

**Author:** ![dddan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dddan/32/33259_2.png) [@dddan](https://community.auth0.com/u/dddan)\
**Post date:** [March 29, 2022, 4:06pm UTC](https://community.auth0.com/t/where-to-put-the-template-file-if-i-want-to-customize-new-universal-login-pages/80574/4 "2022-03-29T16:06:48Z")

</div>

@john.gateley Hey, I am curios how management api work or set up in my project(single-page-application, auth0.js)? I haven’t gone deep into this part yet, but please give me a hint how can I do that, it will save my time, thank you.

---

<div class="post-metadata">

**Author:** ![dddan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dddan/32/33259_2.png) [@dddan](https://community.auth0.com/u/dddan)\
**Post date:** [March 29, 2022, 4:46pm UTC](https://community.auth0.com/t/where-to-put-the-template-file-if-i-want-to-customize-new-universal-login-pages/80574/5 "2022-03-29T16:46:26Z")

</div>

The reason why I need to use management api because I need to customize mfa page under new experience, but can management api + spa can do that? Base on what I know, there is limitation (spa + management api) since public security reason.

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [March 30, 2022, 1:05pm UTC](https://community.auth0.com/t/where-to-put-the-template-file-if-i-want-to-customize-new-universal-login-pages/80574/6 "2022-03-30T13:05:08Z")

</div>

Hi @dddan

You only need to set up the MFA page (or any ULP page) once. This is not part of your SPA. You can do it via the link I sent above, setting the access token and using that page to upload. Or via your CI/CD stack.

But it shouldn’t be part of the SPA, as you note, because you shouldn’t have a client secret in a SPA.

John

---

<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:41pm UTC](https://community.auth0.com/t/where-to-put-the-template-file-if-i-want-to-customize-new-universal-login-pages/80574/7 "2022-07-28T13:41:49Z")

</div>


