Amplify JS API Documentation
    Preparing search index...

    Function fetchUserAttributes

    • Parameters

      Returns Promise<Partial<Record<UserAttributeKey, string>>>

    • Fetches the current user attributes while authenticated.

      Returns Promise<Partial<Record<UserAttributeKey, string>>>

      • GetUserException - Cognito service errors thrown when the service is not able to get the user.

      AuthTokenConfigException - Thrown when the token provider config is invalid.