From c3f88126e6196b21f0a4241b5b59989b58631c83 Mon Sep 17 00:00:00 2001 From: hkfires <10558748+hkfires@users.noreply.github.com> Date: Sat, 11 Oct 2025 12:56:07 +0800 Subject: [PATCH] refactor(provider): remove Gemini Web cookie-based support --- MANAGEMENT_API.md | 13 ---- MANAGEMENT_API_CN.md | 13 ---- README.md | 29 --------- README_CN.md | 29 --------- cmd/server/main.go | 4 -- config.example.yaml | 16 ----- .../api/handlers/management/auth_files.go | 62 ------------------- internal/api/server.go | 1 - internal/config/config.go | 37 ----------- internal/constant/constant.go | 3 - internal/translator/init.go | 3 - internal/watcher/watcher.go | 15 ----- sdk/api/handlers/handlers.go | 21 ------- sdk/auth/refresh_registry.go | 1 - sdk/cliproxy/auth/manager.go | 7 --- sdk/cliproxy/auth/types.go | 18 ------ sdk/cliproxy/service.go | 24 ------- 17 files changed, 296 deletions(-) diff --git a/MANAGEMENT_API.md b/MANAGEMENT_API.md index 898cb12e..31d2088a 100644 --- a/MANAGEMENT_API.md +++ b/MANAGEMENT_API.md @@ -639,19 +639,6 @@ These endpoints initiate provider login flows and return a URL to open in a brow { "status": "ok", "url": "https://..." } ``` -- POST `/gemini-web-token` — Save Gemini Web cookies directly - - Request: - ```bash - curl -H 'Authorization: Bearer ' \ - -H 'Content-Type: application/json' \ - -d '{"secure_1psid": "<__Secure-1PSID>", "secure_1psidts": "<__Secure-1PSIDTS>", "label": "