2019-05-09 18:54:39 +12:00
|
|
|
let sdk = new Appwrite();
|
|
|
|
|
|
|
|
sdk
|
|
|
|
setProject('')
|
|
|
|
setKey('')
|
|
|
|
;
|
|
|
|
|
2019-09-13 04:20:03 +12:00
|
|
|
let promise = sdk.auth.register('email@example.com', 'password', 'https://example.com');
|
2019-05-09 18:54:39 +12:00
|
|
|
|
|
|
|
promise.then(function (response) {
|
|
|
|
console.log(response);
|
|
|
|
}, function (error) {
|
|
|
|
console.log(error);
|
|
|
|
});
|