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

fix: missing default config

上级 0576607f
...@@ -76,7 +76,12 @@ class UniID { ...@@ -76,7 +76,12 @@ class UniID {
if (this._clientInfo.platform === 'h5') { if (this._clientInfo.platform === 'h5') {
this._clientInfo.platform = 'web' this._clientInfo.platform = 'web'
} }
const defaultConfig = {} const defaultConfig = {
tokenExpiresIn: 7200,
tokenExpiresThreshold: 1200,
passwordErrorLimit: 6,
passwordErrorRetryTime: 3600
}
const argsRequired = ['tokenSecret', 'tokenExpiresIn'] const argsRequired = ['tokenSecret', 'tokenExpiresIn']
const config = Object.assign(defaultConfig, appConfig, appConfig[this._clientInfo.platform]) const config = Object.assign(defaultConfig, appConfig, appConfig[this._clientInfo.platform])
argsRequired.forEach((item) => { argsRequired.forEach((item) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册