Setu-TS
    Preparing search index...

    Type Alias RefreshPrincipal

    RefreshPrincipal: (
        stored: IPrincipal,
    ) => IPrincipal | null | Promise<IPrincipal | null>

    Re-reads the stored principal on each request. Returning null makes that request anonymous, which is how a deactivation or a revoked role takes effect before the session ends.

    Type Declaration

    0.8.0