Files
services/examples/user/verifyEmail/node/verifyEmail.js

14 lines
367 B
JavaScript
Executable File

const { UserService } = require("m3o/user");
// Verify the email address of an account from a token sent in an email to the user.
async function verifyEmail() {
let userService = new UserService(process.env.MICRO_API_TOKEN);
let rsp = await userService.verifyEmail({
email: "joe@example.com",
token: "012345",
});
console.log(rsp);
}
verifyEmail();