1
0
Fork 0
mirror of synced 2024-09-20 03:17:30 +12:00
appwrite/app/sdks/node/docs/examples/auth/logout-by-session.md
2019-10-01 21:10:33 +03:00

19 lines
No EOL
320 B
Markdown

const sdk = require('node-appwrite');
// Init SDK
let client = new Auth.Client();
let auth = new sdk.Auth(client);
client
.setProject('')
.setKey('')
;
let promise = auth.logoutBySession('[ID]');
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});