@aws-amplify/auth
Version:
Auth category of aws-amplify
14 lines (13 loc) • 737 B
TypeScript
import { AmplifyContext } from '@aws-amplify/core';
import { ConfirmUserAttributeInput } from '../types';
export declare function confirmUserAttribute(ctx: AmplifyContext, input: ConfirmUserAttributeInput): Promise<void>;
/**
* 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>;