feat: add WeChat session authentication
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user