Setu-TS
    Preparing search index...

    Interface IPrincipal

    The authenticated identity attached to a request by authentication middleware.

    0.1.0

    interface IPrincipal {
        claims?: Readonly<Record<string, unknown>>;
        id: string;
        permissions?: readonly string[];
        roles?: readonly string[];
    }
    Index
    claims?: Readonly<Record<string, unknown>>

    Additional claims from the credential.

    id: string

    Stable subject identifier.

    permissions?: readonly string[]

    Permission names held by the principal.

    roles?: readonly string[]

    Role names held by the principal.