@aws-amplify/auth
Version:
Auth category of aws-amplify
14 lines (13 loc) • 560 B
TypeScript
import { ResetPasswordInput, ResetPasswordOutput } from '../types';
/**
* Resets a user's password.
*
* @param input - The ResetPasswordInput object.
* @returns ResetPasswordOutput
* @throws -{@link ForgotPasswordException }
* Thrown due to an invalid confirmation code or password.
* @throws -{@link AuthValidationErrorCode }
* Thrown due to an empty username.
* @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
**/
export declare function resetPassword(input: ResetPasswordInput): Promise<ResetPasswordOutput>;