@aws-amplify/auth
Version: 
Auth category of aws-amplify
13 lines (12 loc) • 525 B
TypeScript
import { VerifyTOTPSetupInput } from '../types';
/**
 * Verifies an OTP code retrieved from an associated authentication app.
 *
 * @param input - The VerifyTOTPSetupInput
 * @throws  -{@link VerifySoftwareTokenException }:
 * Thrown due to an invalid MFA token.
 * @throws  -{@link AuthValidationErrorCode }:
 * Thrown when `code` is not defined.
 * @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
 */
export declare function verifyTOTPSetup(input: VerifyTOTPSetupInput): Promise<void>;