diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/config.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/config.js index a7987bd8b2cc6bfd55597892663f7b9df457f016..131c3d971a805f0157c48e13f5a6b220384ef238 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/config.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/config.js @@ -42,7 +42,7 @@ class ConfigUtils { try { configContent = require('uni-config-center/uni-id/config.json') } catch (error) { - throw new Error('Invalid config file\n' + error.messages) + throw new Error('Invalid config file\n' + error.message) } if (configContent[0]) { return Object.values(configContent) @@ -97,7 +97,7 @@ class ConfigUtils { } = {}) { const config = this.getPlatformConfig() const clientPlatform = this.platform - const oatuhProivder = this.getOauthConfig({ + const oatuhProivder = this.getOauthProvider({ provider }) const requireConfigKey = requiredConfig[`${clientPlatform}.${oatuhProivder}`] || []