feat: add WeChat session authentication

This commit is contained in:
2026-07-20 14:47:16 +08:00
parent 2ada52f35a
commit 67d29d3ca0
26 changed files with 1289 additions and 130 deletions

View File

@@ -5,6 +5,15 @@ HOST=127.0.0.1
PORT=8080
DATABASE_MAX_CONNECTIONS=5
# WeChat login uses the free wx.login/code2Session basic capability. Keep the
# AppSecret on the server and configure both values together.
# WECHAT_APP_ID=wx3fe11e262a4b4885
# WECHAT_APP_SECRET=your-app-secret
AUTH_SESSION_TTL_DAYS=30
# Local compatibility only. Production must keep this false.
ALLOW_DEVELOPMENT_USER_HEADER=false
# A single development origin. Leave unset to disable CORS middleware.
# CORS_ALLOWED_ORIGIN=https://servicewechat.com