WeixinAuthProvider
WeixinAuthProvider 是微信登录方式中 provider 类
new WeixinAuthProvider()
Section titled “new WeixinAuthProvider()”定义
继承自 Provider
返回值
providerId
Section titled “providerId”定义
stringcredential
Section titled “credential”定义
credential(arg1, arg2)参数
| 参数名 | 说明 |
|---|---|
| arg1 | string 类型,accessToken 的值 |
| arg2 | string 类型,openId 的值 |
addScope
Section titled “addScope”定义
addScope(scope)参数
| 参数名 | 说明 |
|---|---|
| scope | string 类型,微信 OAuth 的 scope 值 |