Class CognitoUser

A user stored in a Cognito User Pool.

Constructors

Properties

attributes: {
    [attribute: string]: string | number;
}

The user's (custom) attributes.

email: string

The email address of the user.

groups: string[]

The list of groups containing the user.

name: string

The fullname of the user.

picture: string

The URI to the user's picture.

userId: string

The id of the user.

Methods

  • Whether the user is part of the administrators group.

    Returns boolean

  • Check whether the user's attributes are valid.

    Returns string[]