@aws-amplify/auth
Version:
Auth category of aws-amplify
9 lines (8 loc) • 496 B
TypeScript
import { CognitoAuthSignInDetails } from '../types';
import { AuthenticationResultType } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider/types';
import { AuthTokenOrchestrator, DeviceMetadata } from './types';
export declare function cacheCognitoTokens(AuthenticationResult: AuthenticationResultType & {
NewDeviceMetadata?: DeviceMetadata;
username: string;
signInDetails?: CognitoAuthSignInDetails;
}, orchestrator?: AuthTokenOrchestrator): Promise<void>;