Skip to content

AuthGuardMiddleware

const AuthGuardMiddleware: NestTrpcMiddlewareClass

The default to put in globalMiddlewares: CSRF on every mutation, and a session on every procedure unless its meta says auth: 'public' (@Mutation({ meta: { auth: 'public' } })). Closed when nobody marked it.