I have activated the “Force email is verified rule” . It looks like this :
function (user, context, callback) {
if (!user.email_verified) {
context.redirect = {
url: “https://helptogether.eu.auth0.com/v2/logout?returnTo=http://localhost:3000/email”
};
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?