@zola_do/authorization 0.2.17 → 0.3.1

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/README.md CHANGED
@@ -607,3 +607,4 @@ ISC
607
607
  - [Contributing](../../CONTRIBUTING.md)
608
608
  - [Code of Conduct](../../CODE_OF_CONDUCT.md)
609
609
  - [Security Policy](../../SECURITY.md)
610
+
@@ -0,0 +1,7 @@
1
+ export type AuthorizationErrorResponse = {
2
+ statusCode: 401 | 403 | number;
3
+ message: string | string[];
4
+ timestamp?: string;
5
+ path?: string;
6
+ error?: 'Unauthorized' | 'Forbidden' | string;
7
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=authorization-error-response.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorization-error-response.type.js","sourceRoot":"","sources":["../src/authorization-error-response.type.ts"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -16,3 +16,4 @@ export * from './helper/jwt.type';
16
16
  export * from './helper/jwt-options.helper';
17
17
  export * from './helper/validate-jwt-env.helper';
18
18
  export * from './helper/get-client-ip.helper';
19
+ export * from './authorization-error-response.type';
package/dist/index.js CHANGED
@@ -35,4 +35,5 @@ __exportStar(require("./helper/jwt.type"), exports);
35
35
  __exportStar(require("./helper/jwt-options.helper"), exports);
36
36
  __exportStar(require("./helper/validate-jwt-env.helper"), exports);
37
37
  __exportStar(require("./helper/get-client-ip.helper"), exports);
38
+ __exportStar(require("./authorization-error-response.type"), exports);
38
39
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+DAA6D;AAApD,2HAAA,mBAAmB,OAAA;AAC5B,gDAA8C;AAArC,qGAAA,QAAQ,OAAA;AACjB,yEAAuD;AACvD,sEAAoD;AACpD,6DAA2C;AAC3C,uDAAqC;AACrC,6DAA2C;AAC3C,yDAAuC;AACvC,mEAAiD;AACjD,wDAAsC;AACtC,8DAA4C;AAC5C,wEAAsD;AACtD,0DAAwC;AACxC,sDAAoC;AACpC,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+DAA6D;AAApD,2HAAA,mBAAmB,OAAA;AAC5B,gDAA8C;AAArC,qGAAA,QAAQ,OAAA;AACjB,yEAAuD;AACvD,sEAAoD;AACpD,6DAA2C;AAC3C,uDAAqC;AACrC,6DAA2C;AAC3C,yDAAuC;AACvC,mEAAiD;AACjD,wDAAsC;AACtC,8DAA4C;AAC5C,wEAAsD;AACtD,0DAAwC;AACxC,sDAAoC;AACpC,oDAAkC;AAClC,8DAA4C;AAC5C,mEAAiD;AACjD,gEAA8C;AAC9C,sEAAoD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zola_do/authorization",
3
- "version": "0.2.17",
3
+ "version": "0.3.1",
4
4
  "description": "JWT auth, guards, strategies for NestJS",
5
5
  "author": "zolaDO",
6
6
  "license": "ISC",