Auth0 Home Blog Docs

How to redirect to hosted login page?


I have implemented custom error page in my tenant and added a button “Try again” that should redirect user to login page in case of any error. Now I can get client Id in my custom error page, so is there any way to redirect user to lock screen if he/she clicks on “Try again” button? I have tried using auth0.js for this purpose but not sure how to make it work.


Hi Jah. The appropriate way of handling this is through a “login initiation endpoint” from the application, so that the application itself is the one triggering the authorization/authentication flow again.
I.e. you would redirect the user to, and that endpoint should make an authentication request to Auth0.

1 Like
closed #3

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