@aws-amplify/auth
Version:
Auth category of aws-amplify
13 lines (12 loc) • 602 B
TypeScript
import { AmplifyContext } from '@aws-amplify/core';
import { ForgetDeviceInput } from '../types';
export declare function forgetDevice(ctx: AmplifyContext, input?: ForgetDeviceInput): Promise<void>;
/**
* Forget a remembered device while authenticated.
*
* @param input - The ForgetDeviceInput object.
* @throws - {@link ForgetDeviceException} - Cognito service errors thrown when
* forgetting device with invalid device key
* @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
*/
export declare function forgetDevice(input?: ForgetDeviceInput): Promise<void>;