mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 04:50:52 +08:00
fix(auth): error when antigravity refresh token missing during refresh
This commit is contained in:
@@ -356,9 +356,6 @@ func (h *Handler) refreshAntigravityOAuthAccessToken(ctx context.Context, auth *
|
||||
|
||||
refreshToken := stringValue(metadata, "refresh_token")
|
||||
if refreshToken == "" {
|
||||
if current != "" {
|
||||
return current, nil
|
||||
}
|
||||
return "", fmt.Errorf("antigravity refresh token missing")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user