Type Alias WhoamiBeta

Whoami: {
    async_channel: string;
    email: string | null;
    is_superuser: boolean;
    os_jwt: string;
    timbr_roles: string[];
    username: string;
}

Represents information about the current user.

Type declaration

  • Betaasync_channel: string

    Asynchronous channel for the user.

  • Betaemail: string | null

    Email of the user.

  • Betais_superuser: boolean

    Whether the user is a superuser (having the ADMIN_ALL_WORKSPACES username or role)

  • Betaos_jwt: string

    JWT token for the user.

  • Betatimbr_roles: string[]

    Roles of the user.

  • Betausername: string

    Username of the user.