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

17 lines
291 B
Markdown
Raw Normal View History

2019-09-13 04:20:03 +12:00
const sdk = require('node-appwrite');
2019-06-10 06:13:55 +12:00
2019-09-13 04:20:03 +12:00
// Init SDK
2019-10-04 06:58:18 +13:00
let client = new sdk.Client();
2019-09-13 04:20:03 +12:00
let auth = new sdk.Auth(client);
client
2019-06-10 06:13:55 +12:00
;
2019-09-13 04:20:03 +12:00
let promise = auth.confirm('[USER_ID]', '[TOKEN]');
2019-06-10 06:13:55 +12:00
promise.then(function (response) {
console.log(response);
}, function (error) {
console.log(error);
});