The Accounts API allows you to register, and verify a user account.
const user = await Xedi.Accounts.register({
email: 't.stark@avengers.org',
first_name: 'Anthony',
last_name: 'Stark',
password: 'izJ7Y0MBwcJ8',
contact_no: '(970) 517-1743 x67916',
job_title: 'Iron Man',
avatar: 'https://assets.avengers.org/images/iron_man.png'
});
{
"_id": "92ac7274-9369-11ea-9521-01002da17977",
"email": "t.stark@avengers.org",
"first_name": "Anthony",
"last_name": "Stark",
"job_title": "Iron Man",
"contact_no": "(970) 517-1743 x67916",
"avatar": "https://assets.avengers.org/images/iron_man.png",
"created_at": "2020-05-11 10:27:03",
"is_active": 0
}
Verify the email address attached to a User account.
{
"_id": "92ac7274-9369-11ea-9521-01002da17977",
"email": "t.stark@avengers.org",
"first_name": "Anthony",
"last_name": "Start",
"job_title": "Iron Man",
"contact_no": "(970) 517-1743 x67916",
"avatar": "https://assets.avengers.org/images/iron_man.png",
"created_at": "2020-05-11 10:27:03",
"updated_at": "2020-05-11 10:30:14",
"is_active": 1
}