UNPKG

546 BTypeScriptView Raw
1import { UpdatePasswordInput } from '../types';
2/**
3 * Updates user's password while authenticated.
4 *
5 * @param input - The UpdatePasswordInput object.
6 * @throws - {@link ChangePasswordException} - Cognito service errors thrown when updating a password.
7 * @throws - {@link AuthValidationErrorCode} - Validation errors thrown when oldPassword or newPassword are empty.
8 * @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
9 */
10export declare function updatePassword(input: UpdatePasswordInput): Promise<void>;