# Hosted pages - link to signup or login as intial screen?

**URL:** <https://community.auth0.com/t/hosted-pages-link-to-signup-or-login-as-intial-screen/7845>\
**Category:** Get Help\
**Tags:** hosted-login-page, signup\
**Created:** [August 15, 2017, 4:05am UTC](https://community.auth0.com/t/hosted-pages-link-to-signup-or-login-as-intial-screen/7845 "2017-08-15T04:05:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris.whatley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/chris.whatley/32/7875_2.png) [@chris.whatley](https://community.auth0.com/u/chris.whatley)\
**Post date:** [August 15, 2017, 4:05am UTC](https://community.auth0.com/t/hosted-pages-link-to-signup-or-login-as-intial-screen/7845/1 "2017-08-15T04:05:28Z")

</div>

I see the initialScreen option to lock can be used to control what UI is presented at first to the user and I would like to drive this off some hint in the config on the hosted login/signup page.

Server-side, I’m using node/express and passport-auth0. Is there any way to pass something in here that I can use in the hosted page’s lock code?

---

<div class="post-metadata">

**Author:** ![ashish](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ashish/32/7056_2.png) [@ashish](https://community.auth0.com/u/ashish)\
**Post date:** [August 15, 2017, 9:56am UTC](https://community.auth0.com/t/hosted-pages-link-to-signup-or-login-as-intial-screen/7845/2 "2017-08-15T09:56:29Z")

</div>

@chris.whatley you can pass in custom parameters to hosted login page to handle this. Please refer to [Auth0 Universal Login](https://auth0.com/docs/hosted-pages/login#pass-in-custom-parameters)

---

<div class="post-metadata">

**Author:** ![chris.whatley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/chris.whatley/32/7875_2.png) [@chris.whatley](https://community.auth0.com/u/chris.whatley)\
**Post date:** [August 16, 2017, 12:42am UTC](https://community.auth0.com/t/hosted-pages-link-to-signup-or-login-as-intial-screen/7845/3 "2017-08-16T00:42:12Z")

</div>

Thanks, but that is just part of the equation. I’m using passport-auth0 and want a way to have a /register controller in my app that calls passport.authenticate(‘auth0’) in a way that communicates to the hosted lock page that it should display a signup instead of login.

E.g., I’d like to be able to do something like `passport.authenticate('auth0', {initialScreen: 'SignUp'})` and have that available in the config on the hosted lock page, but the auth0 passport strategy filters out anything it is not specifically designed to accept there.

---

<div class="post-metadata">

**Author:** ![chris.whatley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/chris.whatley/32/7875_2.png) [@chris.whatley](https://community.auth0.com/u/chris.whatley)\
**Post date:** [August 16, 2017, 12:42am UTC](https://community.auth0.com/t/hosted-pages-link-to-signup-or-login-as-intial-screen/7845/4 "2017-08-16T00:42:12Z")

</div>

Thanks, but that is just part of the equation. I’m using passport-auth0 and want a way to have a /register controller in my app that calls passport.authenticate(‘auth0’) in a way that communicates to the hosted lock page that it should display a signup instead of login.

E.g., I’d like to be able to do something like `passport.authenticate('auth0', {initialScreen: 'SignUp'})` and have that available in the config on the hosted lock page, but the auth0 passport strategy filters out anything it is not specifically designed to accept there.

---

<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:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/hosted-pages-link-to-signup-or-login-as-intial-screen/7845/5 "2018-03-02T05:55:55Z")

</div>


