Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/appwrite/src/services/account.ts>Account#updatePassword

[READ-ONLY] Official Appwrite Deno SDK 🦕
Go to Latest
method Account.prototype.updatePassword
import { Account } from "https://deno.land/x/appwrite@9.0.0/src/services/account.ts";

Update Password

Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is optional.

Type Parameters

Preferences extends Models.Preferences

Parameters

password: string
optional
oldPassword: string

Returns

Promise<Models.User<Preferences>>