fix: 使用飞书官方 passport 授权端点

后端修改:
- 授权 URL 从 open-apis 改为 passport.feishu.cn
- 使用 passport 端点获取 user_access_token
- 添加 httpGet 方法

前端修改:
- 使用官方 tt.requestAuthCode() API(飞书内免登)
- 保留轮询方式实现扫码登录

参考文档: https://open.feishu.cn/document/sso/web-application-sso/qr-sdk-documentation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-02-26 10:20:48 +08:00
parent fa8843d9e0
commit b1d58ece61
3 changed files with 55 additions and 11 deletions
+4
View File
@@ -175,6 +175,10 @@ export default function QRCodeLogin({ visible, onClose }: QRCodeLoginProps) {
</button>
</div>
)}
<p className={styles.tip}>
💡 打开飞书 APP,扫一扫登录
</p>
</>
)}
</div>