config.json 1.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
{
	"passwordSecret": "passwordSecret-demo",
	"tokenSecret": "tokenSecret-demo",
	"tokenExpiresIn": 7200,
	"tokenExpiresThreshold": 600,
	"passwordErrorLimit": 6,
	"bindTokenToDevice": false,
	"passwordErrorRetryTime": 3600,
	"autoSetInviteCode": false,
	"forceInviteCode": false,
	"app-plus": {
		"tokenExpiresIn": 2592000,
		"oauth": {
			"weixin": {
				"appid": "wxffdd8fa6ec4ef2a0",
				"appsecret": "6c9119430d7be0a147bcbbb73ef33acf"
			},
			"apple": {
				"bundleId": "苹果开发者后台获取的bundleId"
			}
		}
	},
	"mp-weixin": {
		"oauth": {
			"weixin": {
				"appid": "wx81dbb061d2258234",
				"appsecret": "51977820eb14cd71377d4048a1b4754e"
			}
		}
	},
	"mp-alipay": {
		"oauth": {
			"alipay": {
				"appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr",
				"privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr"
			}
		}
	},
	"service": {
		"sms": {
			"name": "应用名称,对应短信模版的name",
			"codeExpiresIn": 300,
			"smsKey": "短信密钥key,开通短信服务处可以看到",
			"smsSecret": "短信密钥secret,开通短信服务处可以看到"
		},
		"univerify": {
			"appid": "当前应用的appid,使用云函数URL化,此项必须配置",
			"apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965",
			"apiSecret": ""
		}
	}
}