@midwayjs/passport 3.0.4 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interface.d.ts +4 -2
- package/dist/interface.js +1 -0
- package/package.json +9 -9
package/dist/interface.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as passport from 'passport';
|
|
2
|
+
import { IMiddleware } from '@midwayjs/core';
|
|
2
3
|
export interface IPassportStrategy {
|
|
3
4
|
validate(...args: any[]): any;
|
|
4
5
|
getStrategyOptions(): any;
|
|
@@ -10,11 +11,12 @@ export declare abstract class AbstractStrategy implements IPassportStrategy {
|
|
|
10
11
|
abstract validate(...args: any[]): any;
|
|
11
12
|
abstract getStrategyOptions(): any;
|
|
12
13
|
}
|
|
13
|
-
export interface IPassportMiddleware {
|
|
14
|
+
export interface IPassportMiddleware extends IMiddleware<any, any> {
|
|
14
15
|
authenticate?(options: passport.AuthenticateOptions, callback: Function): any;
|
|
15
16
|
}
|
|
16
|
-
export declare abstract class AbstractPassportMiddleware implements IPassportMiddleware {
|
|
17
|
+
export declare abstract class AbstractPassportMiddleware implements Pick<IPassportMiddleware, 'authenticate'> {
|
|
17
18
|
abstract getAuthenticateOptions(): Promise<passport.AuthenticateOptions> | passport.AuthenticateOptions;
|
|
18
19
|
authenticate?(options: passport.AuthenticateOptions, callback?: Function): any;
|
|
20
|
+
resolve(): any;
|
|
19
21
|
}
|
|
20
22
|
//# sourceMappingURL=interface.d.ts.map
|
package/dist/interface.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/passport",
|
|
3
3
|
"description": "midway passport component",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.8",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"author": "Nawbc",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@midwayjs/core": "^3.0.
|
|
26
|
-
"@midwayjs/decorator": "^3.0.
|
|
27
|
-
"@midwayjs/express": "^3.0.
|
|
28
|
-
"@midwayjs/jwt": "^3.0.
|
|
29
|
-
"@midwayjs/koa": "^3.0.
|
|
30
|
-
"@midwayjs/mock": "^3.0.
|
|
31
|
-
"@midwayjs/web": "^3.0.
|
|
25
|
+
"@midwayjs/core": "^3.0.7",
|
|
26
|
+
"@midwayjs/decorator": "^3.0.7",
|
|
27
|
+
"@midwayjs/express": "^3.0.7",
|
|
28
|
+
"@midwayjs/jwt": "^3.0.8",
|
|
29
|
+
"@midwayjs/koa": "^3.0.8",
|
|
30
|
+
"@midwayjs/mock": "^3.0.7",
|
|
31
|
+
"@midwayjs/web": "^3.0.7",
|
|
32
32
|
"@types/passport": "1.0.7",
|
|
33
33
|
"@types/passport-local": "1.0.34",
|
|
34
34
|
"express-session": "1.17.2",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"passport": "^0.5.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "5e58d30e217ef06096cebf588e19b8ce020a3d96"
|
|
43
43
|
}
|