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: “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?

Hey there!

Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there, but sometimes the number of incoming questions is just too big for our bandwidth. Sorry for such inconvenience!

Do you still require further assistance from us?