UNPKG

525 BTypeScriptView Raw
1import { VerifyTOTPSetupInput } from '../types';
2/**
3 * Verifies an OTP code retrieved from an associated authentication app.
4 *
5 * @param input - The VerifyTOTPSetupInput
6 * @throws -{@link VerifySoftwareTokenException }:
7 * Thrown due to an invalid MFA token.
8 * @throws -{@link AuthValidationErrorCode }:
9 * Thrown when `code` is not defined.
10 * @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
11 */
12export declare function verifyTOTPSetup(input: VerifyTOTPSetupInput): Promise<void>;