@aws-amplify/auth
Version:
Auth category of aws-amplify
13 lines (12 loc) • 504 B
TypeScript
import { AmplifyContext } from '@aws-amplify/core';
import { SetUpTOTPOutput } from '../types';
export declare function setUpTOTP(ctx: AmplifyContext): Promise<SetUpTOTPOutput>;
/**
* Sets up TOTP for the user.
*
* @returns SetUpTOTPOutput
* @throws -{@link AssociateSoftwareTokenException}
* Thrown if a service occurs while setting up TOTP.
* @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
**/
export declare function setUpTOTP(): Promise<SetUpTOTPOutput>;