diff --git a/agent-os/usage/middleware/custom-fastapi-jwt.mdx b/agent-os/usage/middleware/custom-fastapi-jwt.mdx index 0074449cb..df22673c8 100644 --- a/agent-os/usage/middleware/custom-fastapi-jwt.mdx +++ b/agent-os/usage/middleware/custom-fastapi-jwt.mdx @@ -47,7 +47,9 @@ app.add_middleware( JWTMiddleware, verification_keys=[JWT_SECRET], excluded_route_paths=[ - "/auth/login" + "/auth/login", + "/docs", + "/openapi.json", ], # We don't want to validate the token for the login endpoint validate=True, # Set validate to False to skip token validation )