提交 fc9c2cf8 编写于 作者: 雪洛's avatar 雪洛

docs: uni-id config comment

上级 9d76ae08
...@@ -64,14 +64,15 @@ ...@@ -64,14 +64,15 @@
```json ```json
// 如果拷贝此内容切记去除注释 // 如果拷贝此内容切记去除注释
{ {
"passwordSecret": "passwordSecret-demo", "passwordSecret": "passwordSecret-demo", // 加密密码所用的密钥,注意修改为自己的
"tokenSecret": "tokenSecret-demo", "tokenSecret": "tokenSecret-demo", // 生成token所用的密钥,注意修改为自己的
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200, // 全平台token过期时间,未指定过期时间的平台会使用此值
"passwordErrorLimit": 6, "passwordErrorLimit": 6, // 密码错误最大重试次数
"passwordErrorRetryTime": 3600, "passwordErrorRetryTime": 3600, // 密码错误重试次数超限之后的冻结时间
"app-plus": { "app-plus": {
"tokenExpiresIn": 2592000, "tokenExpiresIn": 2592000,
"oauth": { "oauth": {
// App微信登录所用到的appid、appsecret需要在微信开放平台获取,注意:不是公众平台而是开放平台
"weixin": { "weixin": {
"appid": "weixin appid", "appid": "weixin appid",
"appsecret": "weixin appsecret" "appsecret": "weixin appsecret"
...@@ -79,7 +80,8 @@ ...@@ -79,7 +80,8 @@
} }
}, },
"mp-weixin": { "mp-weixin": {
"oauth": { "oauth": {
// 微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取
"weixin": { "weixin": {
"appid": "weixin appid", "appid": "weixin appid",
"appsecret": "weixin appsecret" "appsecret": "weixin appsecret"
...@@ -87,7 +89,8 @@ ...@@ -87,7 +89,8 @@
} }
}, },
"mp-alipay": { "mp-alipay": {
"oauth": { "oauth": {
// 支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr
"alipay": { "alipay": {
"appid": "alipay appid", "appid": "alipay appid",
"privateKey": "alipay privateKey" "privateKey": "alipay privateKey"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册