# Using okta-auth-js in Okta-hosted login page

**URL:** <https://devforum.okta.com/t/using-okta-auth-js-in-okta-hosted-login-page/19760>\
**Category:** Questions\
**Created:** [March 10, 2022, 1:53pm UTC](https://devforum.okta.com/t/using-okta-auth-js-in-okta-hosted-login-page/19760 "2022-03-10T13:53:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![green-ob](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@green-ob](https://devforum.okta.com/u/green-ob)\
**Post date:** [March 10, 2022, 1:53pm UTC](https://devforum.okta.com/t/using-okta-auth-js-in-okta-hosted-login-page/19760/1 "2022-03-10T13:53:51Z")

</div>

Hi,

I’m a frontend dev building an Okta login page for my company. Okta widget is great, but I need to a) add another field to the login form and b) design it by the product requirements.

I found how to [add a field to the widget](https://devforum.okta.com/t/2-input-fields-for-username-on-hosted-login-widget/5357) and how to customize the CSS; although it’s still challenging, given the required design.

Nevertheless, I’d still like to keep So my question is - can I use okta-auth-js and write my own custom HTML for the page, while hosting the page at Okta? Won’t there be some unexpected behaviours?

Thanks!

---

<div class="post-metadata">

**Author:** ![mraible](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/mraible/32/37_2.png) [@mraible](https://devforum.okta.com/u/mraible)\
**Post date:** [March 10, 2022, 3:03pm UTC](https://devforum.okta.com/t/using-okta-auth-js-in-okta-hosted-login-page/19760/2 "2022-03-10T15:03:36Z")

</div>

You can customize the hosted Sign-In Widget on Okta, but you can’t change all the code in the template to just use Auth JS. You’ll have to host your own login page in your app for that.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [March 11, 2022, 3:04pm UTC](https://devforum.okta.com/t/using-okta-auth-js-in-okta-hosted-login-page/19760/3 "2022-03-11T15:04:06Z")

</div>

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