Skip to content

Commit

Permalink
fixes node snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Oct 30, 2023
1 parent 186f52f commit 784a6f0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ app.post("/change-email", verifySession(), async (req: SessionRequest, res: expr
}

// Now we create and send the email verification link to the user for the new email.
await EmailVerification.sendEmailVerificationEmail(session.getTenantId(), session.getUserId(), email);
await EmailVerification.sendEmailVerificationEmail(session.getTenantId(), session.getUserId(), session.getRecipeUserId(), email);

// TODO send successful response that email verification email sent.
return
Expand Down
2 changes: 1 addition & 1 deletion v2/passwordless/common-customizations/change-email.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ app.post("/change-email", verifySession(), async (req: SessionRequest, res: expr
}

// Now we create and send the email verification link to the user for the new email.
await EmailVerification.sendEmailVerificationEmail(session.getTenantId(), session.getUserId(), email);
await EmailVerification.sendEmailVerificationEmail(session.getTenantId(), session.getUserId(), session.getRecipeUserId(), email);

// TODO send successful response that email verification email sent.
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ app.post("/change-email", verifySession(), async (req: SessionRequest, res: expr
}

// Now we create and send the email verification link to the user for the new email.
await EmailVerification.sendEmailVerificationEmail(session.getTenantId(), session.getUserId(), email);
await EmailVerification.sendEmailVerificationEmail(session.getTenantId(), session.getUserId(), session.getRecipeUserId(), email);

// TODO send successful response that email verification email sent.
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ app.post("/change-email", verifySession(), async (req: SessionRequest, res: expr
}

// Now we create and send the email verification link to the user for the new email.
await EmailVerification.sendEmailVerificationEmail(session.getTenantId(), session.getUserId(), email);
await EmailVerification.sendEmailVerificationEmail(session.getTenantId(), session.getUserId(), session.getRecipeUserId(), email);

// TODO send successful response that email verification email sent.
return
Expand Down

0 comments on commit 784a6f0

Please sign in to comment.