UNPKG

@aws-amplify/auth

Version:

Auth category of aws-amplify

13 lines (12 loc) • 541 B
import { AmplifyContext } from '@aws-amplify/core'; import { FetchDevicesOutput } from '../types'; export declare function fetchDevices(ctx: AmplifyContext): Promise<FetchDevicesOutput>; /** * Fetches devices that have been remembered using {@link rememberDevice} * for the currently authenticated user. * * @returns FetchDevicesOutput * @throws {@link ListDevicesException} * @throws AuthTokenConfigException - Thrown when the token provider config is invalid. */ export declare function fetchDevices(): Promise<FetchDevicesOutput>;