Skip to content

API 参考 / @142vip/oauth2.0 / StandardOauthV2

类: StandardOauthV2 ​

定义于: oauth2.0.ts:4

标准 Oauth2.0

构造函数 ​

构造函数 ​

new StandardOauthV2(): StandardOauthV2

返回 ​

StandardOauthV2

方法 ​

authenticate() ​

authenticate(): Promise<void>

定义于: oauth2.0.ts:22

认证

返回 ​

Promise<void>


authorize() ​

authorize(): Promise<void>

定义于: oauth2.0.ts:8

登录授权

返回 ​

Promise<void>


getToken() ​

getToken(): Promise<void>

定义于: oauth2.0.ts:15

获取令牌

返回 ​

Promise<void>


refreshToken() ​

refreshToken(): Promise<void>

定义于: oauth2.0.ts:29

刷新令牌

返回 ​

Promise<void>