mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
17 lines
292 B
Markdown
17 lines
292 B
Markdown
const sdk = require('node-appwrite');
|
|
|
|
// Init SDK
|
|
let client = new Auth.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);
|
|
}); |