Setu-TS
    Preparing search index...

    Type Alias ScopedRbacTiming

    ScopedRbacTiming:
        | "request"
        | "sign-in"
        | { kind: "cache"; maxEntries: number; ttlMs: number }

    When grants are resolved, and so how quickly a revocation takes effect.

    • 'request' (default) — per request, memoised for the rest of that request. Revocation latency: the next request.
    • { kind: 'cache', ttlMs, maxEntries } — a bounded cross-request cache on the monotonic clock. Revocation latency: up to ttlMs.
    • 'sign-in' — once, when the principal signs in through the auth session, stored in the session. Revocation latency: until sign-out or the session expires. Requires signIn.

    0.9.0