1
0
Fork 0
mirror of synced 2024-09-21 03:52:23 +12:00
appwrite/docs/examples/1.2.x/client-web/examples/account/update-password.md

18 lines
431 B
Markdown
Raw Normal View History

2022-12-27 01:17:28 +13:00
import { Client, Account } from "appwrite";
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
2022-12-27 01:17:28 +13:00
.setProject('5df5acd0d48c2') // Your project ID
;
const promise = account.updatePassword('password');
promise.then(function (response) {
console.log(response); // Success
}, function (error) {
console.log(error); // Failure
});