Search…
User.register()
Sets a new user account.
1
const userData = {
2
name: 'Jane',
3
4
email_confirmation: '[email protected]',
5
company: 'My Company',
6
password: 'password',
7
password_confirmation: 'password'
8
}
9
10
User.register(userData)
11
.then(resolve => {
12
// User registered.
13
let user = resolve.data.user;
14
});
Copied!

Parameters

Param
Type
Details
userData
object
userData.name
string
userData.email
string
userData.email_confirmation
string
userData.company
(optional)
string
userData.password
string
userData.password_confirmation
string
Last modified 11mo ago
Copy link
Contents
Parameters