Hi @shoaib.raza
Back with an update on your use-case and you are correct to think that logic can be applied depending one the client_id to render different login pages. There are different routes that can be taken to accomplish this, depending on a couple of factors, but one approach would be to edit the Lock configuration to accommodate multiple renderings :
if(config.clientID === 'ApplicationAClientID'){
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
...
}
}else{
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
...
}
}
If you are using a custom domain, you can also use the application.id and application.name in order to render different login pages for the same application, as described in our documentation here : Hosting 2 Login Pages on a Single tenant
Allow me to share some useful documentations that should help you achieve this, depending on what would be more feasible for your use case:
- Customize Login Pages
- I need to customize the login page for each of my application. It means different application with different UI - #3
- Separate Customized login pages Multiple applications under single tenant
- Custom Login Page For Specific Client Through Management API
- How to implement custom themes for each application in my Auth0 account?
I hope these resources help you achieve your desired flow! Please do not hesitate to reach out to us for any other issues or requests, we’ll be glad to look into it for you!
Have a great one!
Gerald