ProtectMiddleware = (options?: ProtectOptions) => RequestHandler
options?
ProtectOptions
RequestHandler
Factory function that returns an Express middleware for protecting API routes.