mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-18 04:10:51 +08:00
refactor(client): Improve auth file handling and client lifecycle
This commit is contained in:
@@ -172,6 +172,7 @@ func NewGeminiWebClient(cfg *config.Config, ts *gemini.GeminiWebTokenStorage, to
|
||||
go client.backgroundInitRetry()
|
||||
} else {
|
||||
client.cookieRotationStarted = true
|
||||
client.registerModelsOnce()
|
||||
// Persist immediately once after successful init to capture fresh cookies
|
||||
_ = client.SaveTokenToFile()
|
||||
client.startCookiePersist()
|
||||
|
||||
Reference in New Issue
Block a user