Files
services/examples/user/read/node/readAccountByEmail.js

13 lines
344 B
JavaScript
Executable File

const { UserService } = require("m3o/user");
// Read an account by id, username or email. Only one need to be specified.
async function readAccountByEmail() {
let userService = new UserService(process.env.MICRO_API_TOKEN);
let rsp = await userService.read({
email: "joe@example.com",
});
console.log(rsp);
}
readAccountByEmail();