Commit Graph

3 Commits

Author SHA1 Message Date
zhangheng
edda1eb177 fix(git): delete lock file 2026-07-13 13:45:36 +08:00
zhangheng
0a9ccaa282 chore: add per-environment env config (参考 uirefbase)
Commit .env.development/.staging/.production and track env files in git
(matching uirefbase convention). No secrets: only NEXT_PUBLIC_BASE_PATH
and NEXT_PUBLIC_SHARED_API_PATH (basis backend). .gitignore now ignores
only *.local overrides.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 18:44:28 +08:00
zhangheng
37f10118d3 chore: initial commit of sso-mock SSO login service
Next.js + Mantine mock SSO service providing account/password, phone
verify-code, and Feishu QR login. Issues a one-time sso_code that the
external app exchanges for user info.

Includes:
- Feishu callback fix: guard against duplicate/concurrent /api/login
  submissions of the same single-use authorization code (feishuLogin
  once-guard + memoized onLoginSuccess to stop effect re-fire).
- ADAPTATION_GUIDE.md: how to switch from the in-memory code store to
  the real backend auth/index + inner_get_user_info endpoints.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 18:09:30 +08:00