UNPKG

idea-toolbox

Version:
50 lines (49 loc) 1.02 kB
/** * A user stored in a Cognito User Pool. */ export declare class CognitoUser { /** * The id of the user. */ userId: string; /** * The email address of the user. */ email: string; /** * The fullname of the user. */ name: string; /** * The URI to the user's picture. */ picture: string; /** * The list of groups containing the user. */ groups: string[]; /** * Whether the user has been disabled. */ disabled: boolean; /** * The user's (custom) attributes. */ attributes: { [attribute: string]: string | number | boolean; }; constructor(x?: any); private parseGroupsFromClaims; /** * Check whether the user's attributes are valid. */ validate(): string[]; /** * Whether the user is part of the administrators group. */ isAdmin(): boolean; /** * Whether the user is part of the robots group. */ isRobot(): boolean; }