Email Change Doc arguments incorrect
Closed this issue · 1 comments
adriansteffan commented
probably has an error, I think this line:
// Now we create and send the email verification link to the user for the new email.
await EmailVerification.sendEmailVerificationEmail(session.getTenantId(), session.getUserId(), email);
should be
// Now we create and send the email verification link to the user for the new email.
await EmailVerification.sendEmailVerificationEmail(session.getTenantId(), session.getUserId(), session.getRecipeUserId(), data.newEmail);
to match the signature of sendEmailVerificationEmail
rishabhpoddar commented
Thanks for finding this. We have fixed it.