User unable to login

Problem statement

We have an unverified user who was unable to log in.

Cause

An error thrown by your login-after-email-verify Action script when a user’s email address is not verified. Errors thrown in Actions will be returned to your application’s callback endpoint for your application to handle however you see fit.

Solution

The application is immediately redirecting back to a login route instead of handling or displaying the error. This is causing a loop.

As a quick fix, disable the Action or remove it from the post-login flow. Then, confirm that your application is prepared to appropriately handle errors returned to the callback endpoint instead of redirecting immediately to login.