Skip to content

feat(hub): 新增 GET /api/token 接口,支持代理认证场景自动获取 token - #47

Merged
tyanxie merged 1 commit into
mainfrom
feat/api-token
Sep 1, 2026
Merged

feat(hub): 新增 GET /api/token 接口,支持代理认证场景自动获取 token#47
tyanxie merged 1 commit into
mainfrom
feat/api-token

Conversation

@tyanxie

@tyanxie tyanxie commented Sep 1, 2026

Copy link
Copy Markdown
Owner
  • Hub 新增 /api/token 端点,认证通过后返回 access token
  • 前端加载时若 localStorage 无 token,先尝试 fetch /api/token
  • 成功则自动存入 localStorage 并登录,失败则显示登录页
  • 支持反向代理注入 Authorization header 的部署场景

- Hub 新增 /api/token 端点,认证通过后返回 access token
- 前端加载时若 localStorage 无 token,先尝试 fetch /api/token
- 成功则自动存入 localStorage 并登录,失败则显示登录页
- 支持反向代理注入 Authorization header 的部署场景
@tyanxie
tyanxie merged commit 7c68288 into main Sep 1, 2026
1 check passed
@tyanxie
tyanxie deleted the feat/api-token branch September 1, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant