Skip to content

Commit 43fdad4

Browse files
committed
feat(@142vip/oauth2.0): 增加Oauth2.0协议的StandardOauthV2
1 parent be60494 commit 43fdad4

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

packages/oauth/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const test = 1
1+
export * from './oauth2.0'

packages/oauth/src/oauth2.0.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/**
2+
* 标准 Oauth2.0
3+
*/
4+
export class StandardOauthV2 {
5+
/**
6+
* 登录授权
7+
*/
8+
public async authorize() {
9+
10+
}
11+
12+
/**
13+
* 获取令牌
14+
*/
15+
public async getToken() {
16+
17+
}
18+
19+
/**
20+
* 认证
21+
*/
22+
public async authenticate() {
23+
24+
}
25+
26+
/**
27+
* 刷新令牌
28+
*/
29+
public async refreshToken() {
30+
31+
}
32+
}

0 commit comments

Comments
 (0)