chore: add wechatMp config for MP OAuth
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,8 @@ export const config = {
|
||||
// JWT (for session tokens)
|
||||
jwtSecret: process.env.JWT_SECRET || 'dev-secret-change-in-production',
|
||||
jwtExpiresIn: process.env.JWT_EXPIRES_IN || '24h',
|
||||
adminAccessCode: process.env.ADMIN_ACCESS_CODE || '',
|
||||
adminTokenTtlSeconds: parseInt(process.env.ADMIN_TOKEN_TTL || '43200', 10), // 12 hours
|
||||
|
||||
// Mobile client URL (for QR code generation)
|
||||
mobileClientUrl: process.env.MOBILE_CLIENT_URL || 'http://192.168.1.5:5174',
|
||||
@@ -51,12 +53,18 @@ export const config = {
|
||||
intervalMs: 1000,
|
||||
},
|
||||
|
||||
// WeChat Open Platform
|
||||
// WeChat Open Platform (PC扫码登录,暂不使用)
|
||||
wechat: {
|
||||
appId: process.env.WECHAT_APP_ID || '',
|
||||
appSecret: process.env.WECHAT_APP_SECRET || '',
|
||||
redirectUri: process.env.WECHAT_REDIRECT_URI || '',
|
||||
},
|
||||
|
||||
// WeChat MP (公众号网页授权)
|
||||
wechatMp: {
|
||||
appId: process.env.WECHAT_MP_APP_ID || '',
|
||||
appSecret: process.env.WECHAT_MP_APP_SECRET || '',
|
||||
},
|
||||
} as const;
|
||||
|
||||
export type Config = typeof config;
|
||||
|
||||
Reference in New Issue
Block a user