diff --git a/src/index.js b/src/index.js index 5ab5f2e64fddab172292f6050de3178c62e6524c..3b0947878d9fd550ff1b26433583caa30cbff2c7 100644 --- a/src/index.js +++ b/src/index.js @@ -76,7 +76,12 @@ class UniID { if (this._clientInfo.platform === 'h5') { this._clientInfo.platform = 'web' } - const defaultConfig = {} + const defaultConfig = { + tokenExpiresIn: 7200, + tokenExpiresThreshold: 1200, + passwordErrorLimit: 6, + passwordErrorRetryTime: 3600 + } const argsRequired = ['tokenSecret', 'tokenExpiresIn'] const config = Object.assign(defaultConfig, appConfig, appConfig[this._clientInfo.platform]) argsRequired.forEach((item) => {