AuthMiddlewareOptions
The second argument of createAuthMiddlewares.
Type Parameters
Section titled “Type Parameters”TTier extends string = string
Properties
Section titled “Properties”rateLimits?
Section titled “rateLimits?”
readonlyoptionalrateLimits?:Readonly<Record<TTier,TrpcRateLimitRule>>
Named rate limits, checked when the middlewares are made. A procedure
picks one with rateLimited(name, 'tier'), or with rateLimited('tier')
to share that tier’s budget with every procedure that does the same. A
tier named default replaces the 10 a minute of rateLimited(name).