From 21930d4d83ddd43b79dea9e5b8c2b35563dd8360 Mon Sep 17 00:00:00 2001 From: jsxz Date: Tue, 31 Mar 2026 14:37:48 +0800 Subject: [PATCH] Update custom-fastapi-jwt.mdx --- agent-os/usage/middleware/custom-fastapi-jwt.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 )