From 025bd4c6cc87c4bd77e09311d1a0a79081414c75 Mon Sep 17 00:00:00 2001 From: lcx Date: Tue, 22 Jul 2025 10:28:59 +0800 Subject: [PATCH] feat: Add Feishu OAuth login & consumer-grade MCP --- frontend/packages/core/src/pages/Login.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/packages/core/src/pages/Login.tsx b/frontend/packages/core/src/pages/Login.tsx index 8b44ce91..c1d2cccf 100644 --- a/frontend/packages/core/src/pages/Login.tsx +++ b/frontend/packages/core/src/pages/Login.tsx @@ -97,7 +97,7 @@ const Login: FC = () => { return } if (isInFeishuClient() && feishu) { - openFeishuLogin() + openFeishuLogin(feishu.config.client_id) } setSpinning(false) } @@ -182,9 +182,9 @@ const Login: FC = () => { } // 打开飞书授权页面 - const openFeishuLogin = () => { + const openFeishuLogin = (id?: string) => { const href = window.location.origin + window.location.pathname - const authUrl = `https://accounts.feishu.cn/open-apis/authen/v1/authorize?client_id=${feishuAppId}&redirect_uri=${href}` + const authUrl = `https://accounts.feishu.cn/open-apis/authen/v1/authorize?client_id=${id || feishuAppId}&redirect_uri=${href}` localStorage.setItem('feishuCallbackUrl', href) window.location.href = authUrl }