@aws-amplify/auth
Version:
Auth category of aws-amplify
11 lines (10 loc) • 447 B
TypeScript
import { GetCurrentUserOutput } from '../types';
/**
* Gets the current user from the idToken.
*
* @param input - The GetCurrentUserInput object.
* @returns GetCurrentUserOutput
* @throws - {@link InitiateAuthException} - Thrown when the service fails to refresh the tokens.
* @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
*/
export declare const getCurrentUser: () => Promise<GetCurrentUserOutput>;