@aws-amplify/auth
Version:
Auth category of aws-amplify
11 lines (10 loc) • 546 B
TypeScript
import { UpdatePasswordInput } from '../types';
/**
* Updates user's password while authenticated.
*
* @param input - The UpdatePasswordInput object.
* @throws - {@link ChangePasswordException} - Cognito service errors thrown when updating a password.
* @throws - {@link AuthValidationErrorCode} - Validation errors thrown when oldPassword or newPassword are empty.
* @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
*/
export declare function updatePassword(input: UpdatePasswordInput): Promise<void>;