1
0
Fork 0
mirror of synced 2024-09-12 23:53:15 +12:00
appwrite/app/sdks/node/docs/examples/auth/confirm.md
2019-10-03 20:58:18 +03:00

17 lines
No EOL
291 B
Markdown

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