Last Updated: Jul 31, 2024
Overview
This article details how to redirect users directly to the hosted Signup Page.
Applies To
- Signup Page
- Redirects
- Users
Solution
Please follow the video or the steps below:
- If using the New Universal Login Experience:
- The user can make users land directly on the Signup page instead of the Login page by specifying the screen_hint=signup parameter when redirecting to /authorize. NOTE: This can be combined with prompt=login, which indicates if the user wants to always show the authentication page or wants to skip if there’s an existing session.
- If using Classic Universal Login, they can utilize the initialScreen option to accomplish this:
- In the Dashboard, configure custom login page to look for an incoming query parameter related to this operation. For example:
var isSignup = config.extraParams && config.extraParams.action === "signup"; var lock = new Auth0Lock(config.clientID, config.auth0Domain, { [...] // all other Lock options // use the value obtained to decide the first screen initialScreen: isSignup ? "signUp" : "login",
- Then, simply add
action=signup
as a param in the request. From the auth0-spa-js, they could add it like this:loginWithRedirect({ action: 'signup' });
- In the Dashboard, configure custom login page to look for an incoming query parameter related to this operation. For example: