diff --git a/middleware/auth.py b/middleware/auth.py index a32d0e6a..06e87806 100644 --- a/middleware/auth.py +++ b/middleware/auth.py @@ -329,7 +329,7 @@ def process_resource(self, req: falcon.asgi.Request, resp, resource, params): # auto-generated documentation routes, they are missing the "no-auth" decorator if isinstance( resource, - (spectree.plugins.falcon_plugin.DocPageAsgi, spectree.plugins.falcon_plugin.OpenAPIAsgi), + (spectree.plugins.falcon_plugin.DocPage, spectree.plugins.falcon_plugin.OpenAPI), ): return