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