Interface CognitoUserGeneric

The attributes of a generic Cognito user of which we don't know the custom attributes.

interface CognitoUserGeneric {
    disabled: boolean;
    email: string;
    userId: string;
    [attribute: string]: string | number | boolean;
}

Indexable

  • [attribute: string]: string | number | boolean

    Cognito can have custom attributes.

Properties

Properties

disabled: boolean

Whether the user has been disabled.

email: string

The email (=== username).

userId: string

The user id (sub).