next.js project and I integrated Auth0 for authentication. Now, I just enable a rule which is Force email verification in auth0. So, whenever I signup the very first time, I got a callback error: UnauthorizedError and it displays Page is not working with the status HTTP400 on the browser. How to resolve it? I want instead of an error page, it should display some friendly message like “Please verify your email to login” in the centre.
Yes, your webpage should render the error message on the page. In my tests, I used the Auth0 Express SDK to throw the access denied error, and the result of my webpage looks like this: