From fc9c2cf8f7c486deb38b1cbb6c91ea528c1d1ffb Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Mon, 3 Aug 2020 16:29:48 +0800 Subject: [PATCH] docs: uni-id config comment --- docs/uniCloud/uni-id.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/uniCloud/uni-id.md b/docs/uniCloud/uni-id.md index e428c1748..36a73a92f 100644 --- a/docs/uniCloud/uni-id.md +++ b/docs/uniCloud/uni-id.md @@ -64,14 +64,15 @@ ```json // 如果拷贝此内容切记去除注释 { - "passwordSecret": "passwordSecret-demo", - "tokenSecret": "tokenSecret-demo", - "tokenExpiresIn": 7200, - "passwordErrorLimit": 6, - "passwordErrorRetryTime": 3600, + "passwordSecret": "passwordSecret-demo", // 加密密码所用的密钥,注意修改为自己的 + "tokenSecret": "tokenSecret-demo", // 生成token所用的密钥,注意修改为自己的 + "tokenExpiresIn": 7200, // 全平台token过期时间,未指定过期时间的平台会使用此值 + "passwordErrorLimit": 6, // 密码错误最大重试次数 + "passwordErrorRetryTime": 3600, // 密码错误重试次数超限之后的冻结时间 "app-plus": { "tokenExpiresIn": 2592000, - "oauth": { + "oauth": { + // App微信登录所用到的appid、appsecret需要在微信开放平台获取,注意:不是公众平台而是开放平台 "weixin": { "appid": "weixin appid", "appsecret": "weixin appsecret" @@ -79,7 +80,8 @@ } }, "mp-weixin": { - "oauth": { + "oauth": { + // 微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取 "weixin": { "appid": "weixin appid", "appsecret": "weixin appsecret" @@ -87,7 +89,8 @@ } }, "mp-alipay": { - "oauth": { + "oauth": { + // 支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr "alipay": { "appid": "alipay appid", "privateKey": "alipay privateKey" -- GitLab