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.
thanks

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 https://myapp.com/login, and that endpoint should make an authentication request to Auth0.

2 Likes

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