1
0
Fork 0
mirror of synced 2024-08-22 05:31:31 +12:00
appwrite/app/sdks/node/docs/examples/auth/login.md
2019-06-09 21:13:55 +03:00

14 lines
No EOL
243 B
Markdown

let sdk = new Appwrite();
sdk
setProject('')
setKey('')
;
let promise = sdk.auth.login('email@example.com', 'password');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});