213 B
213 B
let sdk = new Appwrite();
let promise = sdk.account.createSession('email@example.com', 'password');
promise.then(function (response) { console.log(response); }, function (error) { console.log(error); });