@aws-amplify/auth
Version:
Auth category of aws-amplify
11 lines (10 loc) • 566 B
TypeScript
import { AmplifyContext } from '@aws-amplify/core';
import { FetchUserAttributesOutput } from '../types';
export declare function fetchUserAttributes(ctx: AmplifyContext): Promise<FetchUserAttributesOutput>;
/**
* Fetches the current user attributes while authenticated.
*
* @throws - {@link GetUserException} - Cognito service errors thrown when the service is not able to get the user.
* @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
*/
export declare function fetchUserAttributes(): Promise<FetchUserAttributesOutput>;