Skip to content

Commit 025bd4c

Browse files
author
lcx
committed
feat: Add Feishu OAuth login & consumer-grade MCP
1 parent b2a8c8d commit 025bd4c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/packages/core/src/pages/Login.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const Login: FC = () => {
9797
return
9898
}
9999
if (isInFeishuClient() && feishu) {
100-
openFeishuLogin()
100+
openFeishuLogin(feishu.config.client_id)
101101
}
102102
setSpinning(false)
103103
}
@@ -182,9 +182,9 @@ const Login: FC = () => {
182182
}
183183

184184
// 打开飞书授权页面
185-
const openFeishuLogin = () => {
185+
const openFeishuLogin = (id?: string) => {
186186
const href = window.location.origin + window.location.pathname
187-
const authUrl = `https://accounts.feishu.cn/open-apis/authen/v1/authorize?client_id=${feishuAppId}&redirect_uri=${href}`
187+
const authUrl = `https://accounts.feishu.cn/open-apis/authen/v1/authorize?client_id=${id || feishuAppId}&redirect_uri=${href}`
188188
localStorage.setItem('feishuCallbackUrl', href)
189189
window.location.href = authUrl
190190
}

0 commit comments

Comments
 (0)