From 9761ac5045b0c5cb7ee4ba990d91c5aeec0efc3b Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Thu, 25 Sep 2025 22:12:50 +0800 Subject: [PATCH] feat(auth, docs): add `label` support for Gemini web token management - Added `label` field to the management API for better token identification. - Updated request payload and validation logic to include `label` as a required field. - Adjusted documentation (`MANAGEMENT_API.md`, `MANAGEMENT_API_CN.md`) to reflect changes. --- MANAGEMENT_API.md | 2 +- MANAGEMENT_API_CN.md | 2 +- internal/api/handlers/management/auth_files.go | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/MANAGEMENT_API.md b/MANAGEMENT_API.md index 6421f5f2..504eaefe 100644 --- a/MANAGEMENT_API.md +++ b/MANAGEMENT_API.md @@ -664,7 +664,7 @@ These endpoints initiate provider login flows and return a URL to open in a brow ```bash curl -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ - -d '{"secure_1psid": "<__Secure-1PSID>", "secure_1psidts": "<__Secure-1PSIDTS>"}' \ + -d '{"secure_1psid": "<__Secure-1PSID>", "secure_1psidts": "<__Secure-1PSIDTS>", "label": "