Interface CognitoUserGeneric

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

interface CognitoUserGeneric {
    email: string;
    userId: string;
    [attribute: string]: string;
}

Indexable

  • [attribute: string]: string

    Cognito can have custom attributes.

Properties

Properties

email: string

The email (=== username).

userId: string

The user id (sub).