feat: update OAuth card visibility logic to retain iFlow card for Cookie login functionality and enhance comments for clarity

This commit is contained in:
Supra4E8C
2025-12-07 17:38:08 +08:00
parent 48956aa0a7
commit 3046375b3c
2 changed files with 24 additions and 6 deletions

View File

@@ -111,14 +111,14 @@ export const REQUEST_TIMEOUT_MS = 30 * 1000;
/**
* OAuth 卡片元素 ID 列表
* 用于根据主机环境隐藏/显示不同的 OAuth 选项
* 注意: iflow-oauth-card 不在此列表中,因为它包含Cookie登录功能,该功能可在远程使用
*/
export const OAUTH_CARD_IDS = [
'codex-oauth-card',
'anthropic-oauth-card',
'antigravity-oauth-card',
'gemini-cli-oauth-card',
'qwen-oauth-card',
'iflow-oauth-card'
'qwen-oauth-card'
];
/**