1
0
Fork 0
mirror of synced 2024-09-19 19:07:21 +12:00
appwrite/docs/examples/1.3.x/console-web/examples/account/update-verification.md
2023-04-28 19:40:24 +05:30

460 B

import { Client, Account } from "@appwrite.io/console";

const client = new Client();

const account = new Account(client);

client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ;

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

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