1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00
appwrite/docs/examples/0.10.x/client-web/examples/account/update-verification.md
2021-09-02 10:04:48 +03:00

360 B

let sdk = new Appwrite();

sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ;

let promise = sdk.account.updateVerification('[USER_ID]', '[SECRET]');

promise.then(function (response) { console.log(response); // Success }, function (error) { console.log(error); // Failure });