From a296525d4ecf14ae6b959cd89085126ee1e21f78 Mon Sep 17 00:00:00 2001 From: SmartUp Developer Date: Thu, 2 Jul 2026 09:34:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86=20refresh=5Fpath=20=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=20login=5Fpassword=20auth=5Fconfig=20=E7=99=BD?= =?UTF-8?q?=E5=90=8D=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 自定义 refresh 路径会被 normalize_auth_config 丢弃,导致只有默认 /auth/refresh 生效。 Co-Authored-By: Claude Sonnet 4.6 --- backend/app/services/auth_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/services/auth_config.py b/backend/app/services/auth_config.py index f775af9..d6c2585 100644 --- a/backend/app/services/auth_config.py +++ b/backend/app/services/auth_config.py @@ -12,7 +12,7 @@ AUTH_CONFIG_ALLOWED_KEYS = { "cookie": {"cookie_string", "new_api_user", "user_id", "provider"}, "login_password": { "email", "password", "login_path", "username_field", "new_api_user", "user_id", "provider", - "token", "refresh_token", "expires_in", "token_expires_at", + "token", "refresh_token", "expires_in", "token_expires_at", "refresh_path", }, }