Auth0 Home Blog Docs

ASP.Net Core 2.0: handling email_verified == false



I am using your [ASP.NET Core 2.0 example code](] to authenticate users. I want to capture the error that the user has not verified their email address.

I have added the Scope “email” to your code in the OnCreatingTicket event, so I now have the email_verified property. But I don’t know how to redirect to a error handling action from inside the OnCreatingTicket event. Please could you advise me on the correct way to handle this error.