Auth0 Home Blog Docs

Rule - Get user id when user' email is not verified


I have activated the “Force email is verified rule” . It looks like this :
function (user, context, callback) {
if (!user.email_verified) {
context.redirect = {
url: “
return callback(null, user, context);

We are redirecting to logout, so we clear the session.

But, we want to make a button, where the user can click “Resend email verification”.
I have found the API end point(post_verification_email) that needs the user id and client id.

How do I process the respond in Angular, so I can get the user id?