Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
crufter
2021-11-16 14:46:44 +00:00
parent 64773e0e2d
commit 7e8d37c782
6 changed files with 88 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
const { UserService } = require("m3o/user");
// Send an email with a verification code to reset password.
// Call "ResetPassword" endpoint once user provides the code.
async function sendPasswordResetEmail() {
let userService = new UserService(process.env.MICRO_API_TOKEN);
let rsp = await userService.sendPasswordResetEmail({
email: "joe@example.com",
fromName: "Awesome Dot Com",
subject: "Password reset",
textContent:
"Hi there,\n click here to reset your password: myapp.com/reset/code?=$code",
});
console.log(rsp);
}
sendPasswordResetEmail();