@zeltjs/auth-jwt 0.9.0 → 0.9.1-canary.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/dist/index.d.cts +3 -12
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +3 -12
- package/dist/index.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import * as _$_zeltjs_core0 from "@zeltjs/core";
|
|
1
2
|
import { Env, Next, RequestContext, RequestContextSchema } from "@zeltjs/core";
|
|
2
|
-
import * as _$hono_utils_http_status0 from "hono/utils/http-status";
|
|
3
|
-
import * as _$hono_http_exception0 from "hono/http-exception";
|
|
4
3
|
|
|
5
4
|
//#region src/jwt.types.d.ts
|
|
6
5
|
interface JwtPayload {
|
|
@@ -42,17 +41,9 @@ declare const ZeltJwtConfigError: new (context: {
|
|
|
42
41
|
//#endregion
|
|
43
42
|
//#region src/jwt.exceptions.d.ts
|
|
44
43
|
type UnauthorizedReason = 'missing_token' | 'invalid_token' | 'expired';
|
|
45
|
-
declare const UnauthorizedException:
|
|
44
|
+
declare const UnauthorizedException: _$_zeltjs_core0.HttpExceptionClass<{
|
|
46
45
|
reason: UnauthorizedReason;
|
|
47
|
-
}
|
|
48
|
-
status?: _$hono_utils_http_status0.ContentfulStatusCode;
|
|
49
|
-
cause?: unknown;
|
|
50
|
-
}) => _$hono_http_exception0.HTTPException & {
|
|
51
|
-
readonly name: string;
|
|
52
|
-
readonly context: {
|
|
53
|
-
reason: UnauthorizedReason;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
46
|
+
}>;
|
|
56
47
|
//#endregion
|
|
57
48
|
//#region src/jwt.service.d.ts
|
|
58
49
|
declare class JwtService {
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/jwt.types.ts","../src/jwt.config.ts","../src/jwt.errors.ts","../src/jwt.exceptions.ts","../src/jwt.service.ts","../src/jwt.middleware.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/jwt.types.ts","../src/jwt.config.ts","../src/jwt.errors.ts","../src/jwt.exceptions.ts","../src/jwt.service.ts","../src/jwt.middleware.ts"],"mappings":";;;;UAAiB,UAAA;EACf,GAAA;EACA,GAAA;EACA,GAAA;EAAA,CACC,GAAA;AAAA;AAAA,KAGS,SAAA;;;UCDK,iBAAA;EACf,IAAA,EAAM,oBAAA;EACN,KAAA,EAAO,oBAAA;AAAA;AAAA,cAII,SAAA;EAAA,mBACoB,GAAA,EAAG,GAAA;cAAH,GAAA,GAAG,GAAA;EDVlC;;;EAAA,ICeI,MAAA,CAAA;EAAA,IAQA,SAAA,CAAA;EAAA,IAIA,MAAA,CAAA,GAAU,SAAA;EAAA,IAIV,UAAA,CAAA;EAAA,IAIA,WAAA,CAAA,IAAgB,OAAA,EAAS,UAAA,KAAe,OAAA,CAAQ,iBAAA;AAAA;;;KCpC1C,oBAAA;AAAA,cAMC,kBAAA,OAAkB,OAAA;UAEb,oBAAA;AAAA;;;YAAA,oBAAA;EAAA;AAAA;;;KCRN,kBAAA;AAAA,cAQC,qBAAA,EAGuB,eAAA,CAHF,kBAAA;UAGhB,kBAAA;AAAA;;;cCNL,UAAA;EAAA,iBACkB,MAAA;cAAA,MAAA,GAAM,SAAA;EAE7B,IAAA,CAAK,OAAA,EAAS,MAAA,oBAA0B,OAAA;EAaxC,MAAA,CAAO,KAAA,WAAgB,OAAA,CAAQ,UAAA;EAMrC,MAAA,CAAO,KAAA,WAAgB,UAAA;EAAA,QAQf,cAAA;AAAA;;;cC7BG,aAAA;EAAA,iBAEQ,UAAA;EAAA,iBACA,MAAA;cADA,UAAA,GAAU,UAAA,EACV,MAAA,GAAM,SAAA;ELXA;;;;;EKmBnB,GAAA,CAAI,CAAA,EAAG,cAAA,EAAgB,IAAA,EAAM,IAAA,GAAO,OAAA,CAAQ,QAAA;EAAA,QAsB1C,YAAA;AAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import * as _$_zeltjs_core0 from "@zeltjs/core";
|
|
1
2
|
import { Env, Next, RequestContext, RequestContextSchema } from "@zeltjs/core";
|
|
2
|
-
import * as _$hono_utils_http_status0 from "hono/utils/http-status";
|
|
3
|
-
import * as _$hono_http_exception0 from "hono/http-exception";
|
|
4
3
|
|
|
5
4
|
//#region src/jwt.types.d.ts
|
|
6
5
|
interface JwtPayload {
|
|
@@ -42,17 +41,9 @@ declare const ZeltJwtConfigError: new (context: {
|
|
|
42
41
|
//#endregion
|
|
43
42
|
//#region src/jwt.exceptions.d.ts
|
|
44
43
|
type UnauthorizedReason = 'missing_token' | 'invalid_token' | 'expired';
|
|
45
|
-
declare const UnauthorizedException:
|
|
44
|
+
declare const UnauthorizedException: _$_zeltjs_core0.HttpExceptionClass<{
|
|
46
45
|
reason: UnauthorizedReason;
|
|
47
|
-
}
|
|
48
|
-
status?: _$hono_utils_http_status0.ContentfulStatusCode;
|
|
49
|
-
cause?: unknown;
|
|
50
|
-
}) => _$hono_http_exception0.HTTPException & {
|
|
51
|
-
readonly name: string;
|
|
52
|
-
readonly context: {
|
|
53
|
-
reason: UnauthorizedReason;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
46
|
+
}>;
|
|
56
47
|
//#endregion
|
|
57
48
|
//#region src/jwt.service.d.ts
|
|
58
49
|
declare class JwtService {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/jwt.types.ts","../src/jwt.config.ts","../src/jwt.errors.ts","../src/jwt.exceptions.ts","../src/jwt.service.ts","../src/jwt.middleware.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/jwt.types.ts","../src/jwt.config.ts","../src/jwt.errors.ts","../src/jwt.exceptions.ts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": "0.9.1-canary.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
],
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"hono": "^4.0.0",
|
|
31
|
-
"@zeltjs/core": "0.9.
|
|
31
|
+
"@zeltjs/core": "0.9.1-canary.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "22.19.17",
|
|
35
35
|
"hono": "4.12.16",
|
|
36
36
|
"jose": "6.0.11",
|
|
37
|
-
"@zeltjs/core": "0.9.
|
|
38
|
-
"@zeltjs/testing": "0.9.
|
|
37
|
+
"@zeltjs/core": "0.9.1-canary.1",
|
|
38
|
+
"@zeltjs/testing": "0.9.1-canary.1"
|
|
39
39
|
},
|
|
40
40
|
"volta": {
|
|
41
41
|
"extends": "../../package.json"
|