@pristine-ts/jwt 0.0.173 → 0.0.177
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/lib/cjs/errors/invalid-jwt.error.js.map +1 -1
- package/dist/lib/cjs/errors/jwt-authorization-header.error.js.map +1 -1
- package/dist/lib/cjs/guards/jwt-protected.guard.js.map +1 -1
- package/dist/lib/cjs/managers/jwt.manager.js.map +1 -1
- package/dist/lib/cjs/resolvers/jwt-payload-parameter-decorator.resolver.js.map +1 -1
- package/dist/lib/esm/errors/invalid-jwt.error.js.map +1 -1
- package/dist/lib/esm/errors/jwt-authorization-header.error.js.map +1 -1
- package/dist/lib/esm/guards/jwt-protected.guard.js.map +1 -1
- package/dist/lib/esm/managers/jwt.manager.js.map +1 -1
- package/dist/lib/esm/resolvers/jwt-payload-parameter-decorator.resolver.js.map +1 -1
- package/dist/types/errors/invalid-jwt.error.d.ts +3 -2
- package/dist/types/errors/jwt-authorization-header.error.d.ts +3 -2
- package/dist/types/guards/jwt-protected.guard.d.ts +3 -2
- package/dist/types/interfaces/jwt-manager.interface.d.ts +2 -2
- package/dist/types/managers/jwt.manager.d.ts +2 -2
- package/dist/types/resolvers/jwt-payload-parameter-decorator.resolver.d.ts +2 -2
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invalid-jwt.error.js","sourceRoot":"","sources":["../../../../src/errors/invalid-jwt.error.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"invalid-jwt.error.js","sourceRoot":"","sources":["../../../../src/errors/invalid-jwt.error.ts"],"names":[],"mappings":";;;AAAA,gDAAkD;AAGlD;;GAEG;AACH,MAAa,eAAgB,SAAQ,sBAAa;IAE9C;;;;;;;;OAQG;IACH,YAAmB,OAAe,EAAE,aAAoB,EAAE,OAAgB,EAAE,KAAa,EAAE,SAAiB,EAAE,SAAiB;QAC3H,KAAK,CAAC,OAAO,EAAE;YACX,OAAO;YACP,aAAa;YACb,KAAK;YACL,SAAS;YACT,SAAS;SACZ,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IAAI,CAAC;CACnE;AAxBD,0CAwBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt-authorization-header.error.js","sourceRoot":"","sources":["../../../../src/errors/jwt-authorization-header.error.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"jwt-authorization-header.error.js","sourceRoot":"","sources":["../../../../src/errors/jwt-authorization-header.error.ts"],"names":[],"mappings":";;;AAAA,gDAAkD;AAGlD;;GAEG;AACH,MAAa,2BAA4B,SAAQ,sBAAa;IAC1D;;;;OAIG;IACH,YAAmB,OAAe,EAAE,OAAgB;QAChD,KAAK,CAAC,OAAO,EAAE;YACX,OAAO;SACV,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,2BAA2B,CAAC,SAAS,CAAC,CAAC;IAAI,CAAC;CAC/E;AAfD,kEAeC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt-protected.guard.js","sourceRoot":"","sources":["../../../../src/guards/jwt-protected.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uCAA4C;
|
|
1
|
+
{"version":3,"file":"jwt-protected.guard.js","sourceRoot":"","sources":["../../../../src/guards/jwt-protected.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uCAA4C;AAO5C;;GAEG;AAEH,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAC1B,YAA4D,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;QAGpF,YAAO,GAAG,eAAe,CAAC;IAFjC,CAAC;IAMD;;;;OAIG;IACH,YAAY,CAAC,OAAgB,EAAE,QAA4B;QACvD,OAAO,IAAI,OAAO,CAAU,CAAC,OAAO,EAAE,EAAE;YACpC,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,OAAO,CAAC;iBACrC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;iBAC5B,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;;OAGG;IACH,UAAU,CAAC,OAAY;QACnB,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC;QAE5B,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;CACJ,CAAA;AA9BY,iBAAiB;IAD7B,qBAAU,EAAE;IAEI,WAAA,iBAAM,CAAC,qBAAqB,CAAC,CAAA;;GADjC,iBAAiB,CA8B7B;AA9BY,8CAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt.manager.js","sourceRoot":"","sources":["../../../../src/managers/jwt.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4BAAyB;AACzB,uCAAuF;AACvF,
|
|
1
|
+
{"version":3,"file":"jwt.manager.js","sourceRoot":"","sources":["../../../../src/managers/jwt.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4BAAyB;AACzB,uCAAuF;AACvF,gDAAsD;AAEtD,+CAA8C;AAC9C,6FAAqF;AACrF,mEAA4D;AAE5D,8DAAuD;AAGvD;;GAEG;AAIH,IAAa,UAAU,GAAvB,MAAa,UAAU;IACnB;;;;;;OAMG;IACH,YACyD,SAAiB,EACjB,SAAoB,EACnB,UAAmB,EACnB,UAAmB;QAHpB,cAAS,GAAT,SAAS,CAAQ;QACjB,cAAS,GAAT,SAAS,CAAW;QACnB,eAAU,GAAV,UAAU,CAAS;QACnB,eAAU,GAAV,UAAU,CAAS;IAE7E,CAAC;IAED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AEL;YAAC,OAAO,CAAC,EAAE;gBACR,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;aACpB;QACL,CAAC,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AA/DY,UAAU;IAHtB,qBAAY,CAAC,qCAAgB,CAAC;IAC9B,YAAG,CAAC,qBAAqB,CAAC;IAC1B,qBAAU,EAAE;IAUJ,WAAA,iBAAM,CAAC,0BAA0B,CAAC,CAAA;IAClC,WAAA,iBAAM,CAAC,0BAA0B,CAAC,CAAA;IAClC,WAAA,iBAAM,CAAC,2BAA2B,CAAC,CAAA;IACnC,WAAA,iBAAM,CAAC,2BAA2B,CAAC,CAAA;;GAZ/B,UAAU,CA+DtB;AA/DY,gCAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt-payload-parameter-decorator.resolver.js","sourceRoot":"","sources":["../../../../src/resolvers/jwt-payload-parameter-decorator.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,4BAAyB;AACzB,uCAA4C;AAE5C,
|
|
1
|
+
{"version":3,"file":"jwt-payload-parameter-decorator.resolver.js","sourceRoot":"","sources":["../../../../src/resolvers/jwt-payload-parameter-decorator.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,4BAAyB;AACzB,uCAA4C;AAE5C,gDAA4G;AAC5G,8DAAuD;AAIvD;;;GAGG;AAIH,IAAa,oCAAoC,GAAjD,MAAa,oCAAoC;IAE7C,YAA4D,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;IAC3F,CAAC;IAED;;;;;;OAMG;IACG,OAAO,CAAC,cAA4C,EAC5C,OAAgB,EAChB,eAAwC,EACxC,QAA4B;;YAEtC,2EAA2E;YAC3E,IAAI,OAAO,GAAG,EAAE,CAAC;YAEjB,IAAI;gBACA,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;aAC9D;YAAC,OAAO,CAAC,EAAE;aACX;YAED,OAAO,OAAO,CAAC;QACnB,CAAC;KAAA;IAED;;;OAGG;IACH,QAAQ,CAAC,cAA2C;QAChD,OAAO,cAAc,IAAI,cAAc,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,cAAc,CAAC,IAAI,KAAK,YAAY,CAAC;IAC3G,CAAC;CACJ,CAAA;AAnCY,oCAAoC;IAHhD,qBAAY,CAAC,qCAAgB,CAAC;IAC9B,YAAG,CAAC,iCAAwB,CAAC,gCAAgC,CAAC;IAC9D,qBAAU,EAAE;IAGI,WAAA,iBAAM,CAAC,qBAAqB,CAAC,CAAA;;GAFjC,oCAAoC,CAmChD;AAnCY,oFAAoC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invalid-jwt.error.js","sourceRoot":"","sources":["../../../../src/errors/invalid-jwt.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"invalid-jwt.error.js","sourceRoot":"","sources":["../../../../src/errors/invalid-jwt.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAGlD;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,aAAa;IAE9C;;;;;;;;OAQG;IACH,YAAmB,OAAe,EAAE,aAAoB,EAAE,OAAgB,EAAE,KAAa,EAAE,SAAiB,EAAE,SAAiB;QAC3H,KAAK,CAAC,OAAO,EAAE;YACX,OAAO;YACP,aAAa;YACb,KAAK;YACL,SAAS;YACT,SAAS;SACZ,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IAAI,CAAC;CACnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt-authorization-header.error.js","sourceRoot":"","sources":["../../../../src/errors/jwt-authorization-header.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"jwt-authorization-header.error.js","sourceRoot":"","sources":["../../../../src/errors/jwt-authorization-header.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAGlD;;GAEG;AACH,MAAM,OAAO,2BAA4B,SAAQ,aAAa;IAC1D;;;;OAIG;IACH,YAAmB,OAAe,EAAE,OAAgB;QAChD,KAAK,CAAC,OAAO,EAAE;YACX,OAAO;SACV,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,2BAA2B,CAAC,SAAS,CAAC,CAAC;IAAI,CAAC;CAC/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt-protected.guard.js","sourceRoot":"","sources":["../../../../src/guards/jwt-protected.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"jwt-protected.guard.js","sourceRoot":"","sources":["../../../../src/guards/jwt-protected.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAO5C;;GAEG;AAEH,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAC1B,YAA4D,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;QAGpF,YAAO,GAAG,eAAe,CAAC;IAFjC,CAAC;IAMD;;;;OAIG;IACH,YAAY,CAAC,OAAgB,EAAE,QAA4B;QACvD,OAAO,IAAI,OAAO,CAAU,CAAC,OAAO,EAAE,EAAE;YACpC,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,OAAO,CAAC;iBACrC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;iBAC5B,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;;OAGG;IACH,UAAU,CAAC,OAAY;QACnB,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC;QAE5B,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;CACJ,CAAA;AA9BY,iBAAiB;IAD7B,UAAU,EAAE;IAEI,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;;GADjC,iBAAiB,CA8B7B;SA9BY,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt.manager.js","sourceRoot":"","sources":["../../../../src/managers/jwt.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,kBAAkB,CAAA;AACzB,OAAO,EAAiC,MAAM,EAAE,UAAU,EAAY,MAAM,UAAU,CAAC;AACvF,OAAO,EAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"jwt.manager.js","sourceRoot":"","sources":["../../../../src/managers/jwt.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,kBAAkB,CAAA;AACzB,OAAO,EAAiC,MAAM,EAAE,UAAU,EAAY,MAAM,UAAU,CAAC;AACvF,OAAO,EAAC,YAAY,EAAE,GAAG,EAAC,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAY,MAAM,EAAC,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAC,2BAA2B,EAAC,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAC,eAAe,EAAC,MAAM,6BAA6B,CAAC;AAE5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAGvD;;GAEG;AAIH,IAAa,UAAU,GAAvB,MAAa,UAAU;IACnB;;;;;;OAMG;IACH,YACyD,SAAiB,EACjB,SAAoB,EACnB,UAAmB,EACnB,UAAmB;QAHpB,cAAS,GAAT,SAA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,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;qBAClH;oBAED,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC;gBAC5B,CAAC,CAAC,CAAA;aAEL;YAAC,OAAO,CAAC,EAAE;gBACR,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;aACpB;QACL,CAAC,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AA/DY,UAAU;IAHtB,YAAY,CAAC,gBAAgB,CAAC;IAC9B,GAAG,CAAC,qBAAqB,CAAC;IAC1B,UAAU,EAAE;IAUJ,WAAA,MAAM,CAAC,0BAA0B,CAAC,CAAA;IAClC,WAAA,MAAM,CAAC,0BAA0B,CAAC,CAAA;IAClC,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;IACnC,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;;GAZ/B,UAAU,CA+DtB;SA/DY,UAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt-payload-parameter-decorator.resolver.js","sourceRoot":"","sources":["../../../../src/resolvers/jwt-payload-parameter-decorator.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,kBAAkB,CAAA;AACzB,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAoB,YAAY,
|
|
1
|
+
{"version":3,"file":"jwt-payload-parameter-decorator.resolver.js","sourceRoot":"","sources":["../../../../src/resolvers/jwt-payload-parameter-decorator.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,kBAAkB,CAAA;AACzB,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAoB,YAAY,EAAW,wBAAwB,EAAE,GAAG,EAAC,MAAM,qBAAqB,CAAC;AAC5G,OAAO,EAAC,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAIvD;;;GAGG;AAIH,IAAa,oCAAoC,GAAjD,MAAa,oCAAoC;IAE7C,YAA4D,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;IAC3F,CAAC;IAED;;;;;;OAMG;IACG,OAAO,CAAC,cAA4C,EAC5C,OAAgB,EAChB,eAAwC,EACxC,QAA4B;;YAEtC,2EAA2E;YAC3E,IAAI,OAAO,GAAG,EAAE,CAAC;YAEjB,IAAI;gBACA,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;aAC9D;YAAC,OAAO,CAAC,EAAE;aACX;YAED,OAAO,OAAO,CAAC;QACnB,CAAC;KAAA;IAED;;;OAGG;IACH,QAAQ,CAAC,cAA2C;QAChD,OAAO,cAAc,IAAI,cAAc,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,cAAc,CAAC,IAAI,KAAK,YAAY,CAAC;IAC3G,CAAC;CACJ,CAAA;AAnCY,oCAAoC;IAHhD,YAAY,CAAC,gBAAgB,CAAC;IAC9B,GAAG,CAAC,wBAAwB,CAAC,gCAAgC,CAAC;IAC9D,UAAU,EAAE;IAGI,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;;GAFjC,oCAAoC,CAmChD;SAnCY,oCAAoC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { LoggableError
|
|
1
|
+
import { LoggableError } from "@pristine-ts/common";
|
|
2
|
+
import { Request } from "@pristine-ts/common";
|
|
2
3
|
/**
|
|
3
4
|
* This Error is thrown when you try to decode a JWT but the token is invalid.
|
|
4
5
|
*/
|
|
@@ -12,5 +13,5 @@ export declare class InvalidJwtError extends LoggableError {
|
|
|
12
13
|
* @param algorithm The algorithm used to decode the JWT.
|
|
13
14
|
* @param publicKey The public key used to decode the JWT.
|
|
14
15
|
*/
|
|
15
|
-
constructor(message: string, previousError: Error, request:
|
|
16
|
+
constructor(message: string, previousError: Error, request: Request, token: string, algorithm: string, publicKey: string);
|
|
16
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { LoggableError
|
|
1
|
+
import { LoggableError } from "@pristine-ts/common";
|
|
2
|
+
import { Request } from "@pristine-ts/common";
|
|
2
3
|
/**
|
|
3
4
|
* This Error is thrown when there's you try to decode a JWT in a request but the AuthorizationHeader is missing.
|
|
4
5
|
*/
|
|
@@ -8,5 +9,5 @@ export declare class JwtAuthorizationHeaderError extends LoggableError {
|
|
|
8
9
|
* @param message The error message.
|
|
9
10
|
* @param request The request that is missing the AuthorizationHeader.
|
|
10
11
|
*/
|
|
11
|
-
constructor(message: string, request:
|
|
12
|
+
constructor(message: string, request: Request);
|
|
12
13
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { JwtManagerInterface } from "../interfaces/jwt-manager.interface";
|
|
2
|
-
import { IdentityInterface
|
|
2
|
+
import { IdentityInterface } from "@pristine-ts/common";
|
|
3
3
|
import { GuardInterface } from "@pristine-ts/security";
|
|
4
4
|
import { GuardContextInterface } from "@pristine-ts/security";
|
|
5
|
+
import { Request } from "@pristine-ts/common";
|
|
5
6
|
/**
|
|
6
7
|
* This guard is used to verify that a route can only be accessed when a request has a valid JWT.
|
|
7
8
|
*/
|
|
@@ -15,7 +16,7 @@ export declare class JwtProtectedGuard implements GuardInterface {
|
|
|
15
16
|
* @param request
|
|
16
17
|
* @param identity
|
|
17
18
|
*/
|
|
18
|
-
isAuthorized(request:
|
|
19
|
+
isAuthorized(request: Request, identity?: IdentityInterface): Promise<boolean>;
|
|
19
20
|
/**
|
|
20
21
|
* Sets the context for the guard.
|
|
21
22
|
* @param context
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { RequestInterface } from "@pristine-ts/common";
|
|
2
1
|
/**
|
|
3
2
|
* The JwtManager Interface defines the methods that a JWT manager must implement.
|
|
4
3
|
*/
|
|
4
|
+
import { Request } from "@pristine-ts/common";
|
|
5
5
|
export interface JwtManagerInterface {
|
|
6
6
|
/**
|
|
7
7
|
* Validates and returns the decoded JWT.
|
|
8
8
|
* @param request The request containing the JWT.
|
|
9
9
|
*/
|
|
10
|
-
validateAndDecode(request:
|
|
10
|
+
validateAndDecode(request: Request): Promise<any>;
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "reflect-metadata";
|
|
2
|
-
import { RequestInterface } from "@pristine-ts/common";
|
|
3
2
|
import { Algorithm } from "jsonwebtoken";
|
|
4
3
|
import { JwtManagerInterface } from "../interfaces/jwt-manager.interface";
|
|
4
|
+
import { Request } from "@pristine-ts/common";
|
|
5
5
|
/**
|
|
6
6
|
* The JwtManager makes decodes and validates JWT token so that they can be used.
|
|
7
7
|
*/
|
|
@@ -28,5 +28,5 @@ export declare class JwtManager implements JwtManagerInterface {
|
|
|
28
28
|
* Validates that the request is authorized by validating the JWT and returning the decoded JWT.
|
|
29
29
|
* @param request The request to validate that contains the JWT.
|
|
30
30
|
*/
|
|
31
|
-
validateAndDecode(request:
|
|
31
|
+
validateAndDecode(request: Request): Promise<any>;
|
|
32
32
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "reflect-metadata";
|
|
2
|
-
import { ControllerMethodParameterDecoratorResolverInterface,
|
|
3
|
-
import { IdentityInterface } from "@pristine-ts/common";
|
|
2
|
+
import { ControllerMethodParameterDecoratorResolverInterface, ParameterDecoratorInterface } from "@pristine-ts/networking";
|
|
3
|
+
import { IdentityInterface, Request } from "@pristine-ts/common";
|
|
4
4
|
import { JwtManagerInterface } from "../interfaces/jwt-manager.interface";
|
|
5
5
|
import { JwtPayloadDecoratorInterface } from "../interfaces/jwt-payload-decorator.interface";
|
|
6
6
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/jwt",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.177",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/jwt.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/jwt.module.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@pristine-ts/common": "^0.0.
|
|
23
|
-
"@pristine-ts/networking": "^0.0.
|
|
24
|
-
"@pristine-ts/security": "^0.0.
|
|
22
|
+
"@pristine-ts/common": "^0.0.177",
|
|
23
|
+
"@pristine-ts/networking": "^0.0.177",
|
|
24
|
+
"@pristine-ts/security": "^0.0.177",
|
|
25
25
|
"jsonwebtoken": "^8.5.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"src/*.{js,ts}"
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "814886bbf3c28c5588cbd5f7bb9a2d5e323d6850"
|
|
65
65
|
}
|