Skip to content

AuthProcedureMeta

The meta keys the adapter reads. Pass it to initTRPC.meta<...>() (or intersect it with your own meta type) to have them checked.

readonly optional auth?: "public"

The nestjs-trpc guard: no session needed. CSRF still applies.


readonly optional rateLimit?: "exempt"

RateLimitMeta.rateLimit


readonly optional touch?: false

false: a call to this procedure does not count as activity for the session’s idle timeout (a poll the page makes on a timer). The session is still validated and the procedure’s guards still apply. A batch touches when any of its procedures does.


readonly optional twoFactorEnrollment?: boolean

An enrollment-only session (the two-factor plugin’s enforcement, past the grace window) may call this procedure: mark the enrollment procedures and what a user needs on the way (status, re-authentication, sign out). Every other procedure refuses such a session with two_factor_enrollment_required. It opens nothing else.