@aws-amplify/auth
Version:
Auth category of aws-amplify
12 lines (11 loc) • 569 B
TypeScript
import { ConfirmUserAttributeInput } from '../types';
/**
* Confirms a user attribute with the confirmation code.
*
* @param input - The ConfirmUserAttributeInput object
* @throws -{@link AuthValidationErrorCode } -
* Thrown when `confirmationCode` is not defined.
* @throws -{@link VerifyUserAttributeException } - Thrown due to an invalid confirmation code or attribute.
* @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
*/
export declare function confirmUserAttribute(input: ConfirmUserAttributeInput): Promise<void>;