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

feat: 移除一键登录、短信的调用凭据

上级 dcb60caa
......@@ -22,8 +22,6 @@ async function sendSmsCode ({
} = {}) {
const requiredParams = [
'name',
'smsKey',
'smsSecret',
'codeExpiresIn'
]
const smsConfig = (this.config.service && this.config.service.sms) || {}
......
......@@ -3,7 +3,7 @@ async function getPhoneNumber ({
access_token,
openid
} = {}) {
const requiredParams = ['apiKey', 'apiSecret']
const requiredParams = []
const univerifyConfig = (this.config.service && this.config.service.univerify) || {}
for (let i = 0; i < requiredParams.length; i++) {
const key = requiredParams[i]
......
......@@ -4,8 +4,7 @@ function isMobileCodeSupported () {
}
function isUniverifySupport () {
const config = this.config
return !!(config.service && config.service.univerify && config.service.univerify.apiKey)
return true
}
function isWeixinSupported () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册