@gatwech/auth 1.0.0-beta.23 → 1.0.0-beta.25
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/adapters/index.d.mts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/{audit-log-DhRRCMrv.mjs → audit-log-CQnf8nrN.mjs} +442 -46
- package/dist/client/index.d.mts +1 -1
- package/dist/client/plugins/index.d.mts +45 -45
- package/dist/client/plugins/index.mjs +2 -2
- package/dist/client/react/index.d.mts +1 -1
- package/dist/{client-CMsC6-rl.mjs → client-BkpNva-h.mjs} +3 -2
- package/dist/{client-D8XKNpua.d.mts → client-g0OAVuPQ.d.mts} +1 -1
- package/dist/{client-CDaFOX7A.d.mts → client-zkWmSxqy.d.mts} +4 -1
- package/dist/cookies/index.d.mts +2 -2
- package/dist/db/index.d.mts +1 -1
- package/dist/{index-CWxKeTtE.d.mts → index-B4HTudhm.d.mts} +6 -6
- package/dist/{index-C8F7PsET.d.mts → index-BHiF_ZfZ.d.mts} +13 -13
- package/dist/{index-382PsmkK.d.mts → index-BX55rZO5.d.mts} +2 -2
- package/dist/{index-DUu0ieh6.d.mts → index-BfwCJQfM.d.mts} +8 -8
- package/dist/{index-CIxFDcfQ.d.mts → index-BhbilPfs.d.mts} +2 -2
- package/dist/{index-CExSHSFz.d.mts → index-Bi-vEjDm.d.mts} +166 -166
- package/dist/{index-C-z4TCHD.d.mts → index-BifhxQ8O.d.mts} +10 -10
- package/dist/{index-CWwQ1Q7t.d.mts → index-BiomZttP.d.mts} +19 -19
- package/dist/{index-De2a2OyC.d.mts → index-BoHrBgTB.d.mts} +9 -9
- package/dist/{index-DPVukjga.d.mts → index-C5W_sTlp.d.mts} +9 -9
- package/dist/{index-D0SgItjY.d.mts → index-CNyQFga7.d.mts} +6 -6
- package/dist/{index-3lfPQHhX.d.mts → index-CTjXncwM.d.mts} +113 -113
- package/dist/{index-Dgyj1fTk.d.mts → index-CUUaJp3R.d.mts} +7 -7
- package/dist/{index-DCliG2n6.d.mts → index-CcJjgkwe.d.mts} +3 -3
- package/dist/{index-Dg6Ftb6f.d.mts → index-Cdfh66xb.d.mts} +9 -9
- package/dist/{index-COFPq-mg.d.mts → index-DBtm_waB.d.mts} +13 -13
- package/dist/{index-B7iZf_Dl.d.mts → index-DD_pxX-h.d.mts} +662 -354
- package/dist/{index-Blq8KrTy.d.mts → index-DRoa3BGG.d.mts} +1 -1
- package/dist/{index-DxIqV3rU.d.mts → index-M0IQ_DTL.d.mts} +4 -4
- package/dist/{index-DxRAXHrZ.d.mts → index-gRLqvVoc.d.mts} +6 -6
- package/dist/{index-B4aWSJEd.d.mts → index-i1L-uguJ.d.mts} +6 -6
- package/dist/{index-BhYE1_9j.d.mts → index-kBEBsEUr.d.mts} +1 -1
- package/dist/{index-B5r4oL5q.d.mts → index-mDmrBYrk.d.mts} +5 -5
- package/dist/index.d.mts +1 -1
- package/dist/integrations/next-js.d.mts +4 -4
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/react-start.d.mts +4 -4
- package/dist/oauth2/index.d.mts +1 -1
- package/dist/plugins/admin/index.d.mts +2 -2
- package/dist/plugins/anonymous/index.d.mts +2 -2
- package/dist/plugins/audit-log/client.d.mts +23 -23
- package/dist/plugins/audit-log/index.d.mts +23 -23
- package/dist/plugins/audit-log/index.mjs +3 -3
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/custom-session/index.d.mts +2 -2
- package/dist/plugins/device-authorization/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/generic-oauth/index.d.mts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/index.d.mts +23 -23
- package/dist/plugins/index.mjs +5 -5
- package/dist/plugins/jwt/index.d.mts +2 -2
- package/dist/plugins/magic-link/index.d.mts +1 -1
- package/dist/plugins/multi-session/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/one-tap/index.d.mts +1 -1
- package/dist/plugins/one-time-token/index.d.mts +2 -2
- package/dist/plugins/one-time-token/index.mjs +4 -4
- package/dist/plugins/organization/index.d.mts +2 -2
- package/dist/plugins/passkey/index.d.mts +2 -2
- package/dist/plugins/phone-number/index.d.mts +2 -2
- package/dist/plugins/sentinel/client.d.mts +23 -23
- package/dist/plugins/sentinel/client.mjs +2 -2
- package/dist/plugins/sentinel/index.d.mts +22 -22
- package/dist/plugins/sentinel/index.mjs +3 -3
- package/dist/plugins/two-factor/index.d.mts +2 -2
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/{registry-GztLf62p.mjs → registry-BjYhRF79.mjs} +69 -2
- package/dist/{sentinel-CYtaI3eO.mjs → sentinel-BttZLWPD.mjs} +109 -28
- package/dist/src/plugins/audit-log/error-codes.d.ts +7 -0
- package/dist/src/plugins/audit-log/events.d.ts +13 -0
- package/dist/src/plugins/audit-log/index.d.ts +114 -8
- package/dist/src/plugins/audit-log/integrity.d.ts +20 -0
- package/dist/src/plugins/audit-log/redact.d.ts +18 -0
- package/dist/src/plugins/audit-log/remote.d.ts +1 -0
- package/dist/src/plugins/audit-log/schema.d.ts +25 -0
- package/dist/src/plugins/audit-log/types.d.ts +73 -13
- package/dist/src/plugins/sentinel/actions.d.ts +0 -6
- package/dist/src/plugins/sentinel/client.d.ts +3 -0
- package/dist/src/plugins/sentinel/error-codes.d.ts +6 -0
- package/dist/src/plugins/sentinel/index.d.ts +80 -3
- package/dist/src/plugins/sentinel/types.d.ts +1 -1
- package/dist/test-utils/index.d.mts +273 -273
- package/dist/test-utils/index.mjs +4 -4
- package/dist/types/index.d.mts +1 -1
- package/package.json +3 -3
- /package/dist/{pow-DvkUopsK.mjs → pow-Vna_j4hx.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _gatwech_core47 from "@gatwech/core";
|
|
2
|
+
import * as better_call226 from "better-call";
|
|
3
3
|
import * as z$1 from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/plugins/oauth-proxy/index.d.ts
|
|
@@ -48,7 +48,7 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions | undefined) => {
|
|
|
48
48
|
} & {
|
|
49
49
|
asResponse?: boolean;
|
|
50
50
|
returnHeaders?: boolean;
|
|
51
|
-
use?:
|
|
51
|
+
use?: better_call226.Middleware[];
|
|
52
52
|
path?: string;
|
|
53
53
|
} & {
|
|
54
54
|
asResponse?: AsResponse | undefined;
|
|
@@ -63,7 +63,7 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions | undefined) => {
|
|
|
63
63
|
callbackURL: z$1.ZodString;
|
|
64
64
|
cookies: z$1.ZodString;
|
|
65
65
|
}, z$1.core.$strip>;
|
|
66
|
-
use: ((inputContext:
|
|
66
|
+
use: ((inputContext: better_call226.MiddlewareInputContext<better_call226.MiddlewareOptions>) => Promise<void>)[];
|
|
67
67
|
metadata: {
|
|
68
68
|
openapi: {
|
|
69
69
|
description: string;
|
|
@@ -96,12 +96,12 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions | undefined) => {
|
|
|
96
96
|
};
|
|
97
97
|
hooks: {
|
|
98
98
|
after: {
|
|
99
|
-
matcher(context:
|
|
100
|
-
handler: (inputContext:
|
|
99
|
+
matcher(context: _gatwech_core47.HookEndpointContext): boolean;
|
|
100
|
+
handler: (inputContext: better_call226.MiddlewareInputContext<better_call226.MiddlewareOptions>) => Promise<void>;
|
|
101
101
|
}[];
|
|
102
102
|
before: ({
|
|
103
103
|
matcher(): true;
|
|
104
|
-
handler: (inputContext:
|
|
104
|
+
handler: (inputContext: better_call226.MiddlewareInputContext<better_call226.MiddlewareOptions>) => Promise<{
|
|
105
105
|
context: {
|
|
106
106
|
context: {
|
|
107
107
|
oauthConfig: {
|
|
@@ -111,9 +111,9 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions | undefined) => {
|
|
|
111
111
|
};
|
|
112
112
|
} | undefined>;
|
|
113
113
|
} | {
|
|
114
|
-
matcher(context:
|
|
115
|
-
handler: (inputContext:
|
|
116
|
-
context:
|
|
114
|
+
matcher(context: _gatwech_core47.HookEndpointContext): boolean;
|
|
115
|
+
handler: (inputContext: better_call226.MiddlewareInputContext<better_call226.MiddlewareOptions>) => Promise<{
|
|
116
|
+
context: better_call226.MiddlewareContext<better_call226.MiddlewareOptions, _gatwech_core47.AuthContext<_gatwech_core47.PayvoAuthOptions> & {
|
|
117
117
|
returned?: unknown | undefined;
|
|
118
118
|
responseHeaders?: Headers | undefined;
|
|
119
119
|
}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { o as LiteralString } from "./helper-BgOIGHsu.mjs";
|
|
2
|
-
import { g as User } from "./index-
|
|
2
|
+
import { g as User } from "./index-CTjXncwM.mjs";
|
|
3
3
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _gatwech_core42 from "@gatwech/core";
|
|
5
5
|
import { PayvoAuthPlugin } from "@gatwech/core";
|
|
6
|
-
import * as
|
|
6
|
+
import * as better_call196 from "better-call";
|
|
7
7
|
import * as z$1 from "zod";
|
|
8
8
|
import * as _better_fetch_fetch19 from "@better-fetch/fetch";
|
|
9
9
|
|
|
@@ -274,7 +274,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
274
274
|
} & {
|
|
275
275
|
asResponse?: boolean;
|
|
276
276
|
returnHeaders?: boolean;
|
|
277
|
-
use?:
|
|
277
|
+
use?: better_call196.Middleware[];
|
|
278
278
|
path?: string;
|
|
279
279
|
} & {
|
|
280
280
|
asResponse?: AsResponse | undefined;
|
|
@@ -295,7 +295,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
295
295
|
password: z$1.ZodString;
|
|
296
296
|
issuer: z$1.ZodOptional<z$1.ZodString>;
|
|
297
297
|
}, z$1.core.$strip>;
|
|
298
|
-
use: ((inputContext:
|
|
298
|
+
use: ((inputContext: better_call196.MiddlewareInputContext<better_call196.MiddlewareOptions>) => Promise<{
|
|
299
299
|
session: {
|
|
300
300
|
session: Record<string, any> & {
|
|
301
301
|
id: string;
|
|
@@ -387,7 +387,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
387
387
|
} & {
|
|
388
388
|
asResponse?: boolean;
|
|
389
389
|
returnHeaders?: boolean;
|
|
390
|
-
use?:
|
|
390
|
+
use?: better_call196.Middleware[];
|
|
391
391
|
path?: string;
|
|
392
392
|
} & {
|
|
393
393
|
asResponse?: AsResponse | undefined;
|
|
@@ -405,7 +405,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
405
405
|
body: z$1.ZodObject<{
|
|
406
406
|
password: z$1.ZodString;
|
|
407
407
|
}, z$1.core.$strip>;
|
|
408
|
-
use: ((inputContext:
|
|
408
|
+
use: ((inputContext: better_call196.MiddlewareInputContext<better_call196.MiddlewareOptions>) => Promise<{
|
|
409
409
|
session: {
|
|
410
410
|
session: Record<string, any> & {
|
|
411
411
|
id: string;
|
|
@@ -476,7 +476,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
476
476
|
} & {
|
|
477
477
|
asResponse?: boolean;
|
|
478
478
|
returnHeaders?: boolean;
|
|
479
|
-
use?:
|
|
479
|
+
use?: better_call196.Middleware[];
|
|
480
480
|
path?: string;
|
|
481
481
|
} & {
|
|
482
482
|
asResponse?: AsResponse | undefined;
|
|
@@ -629,7 +629,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
629
629
|
} & {
|
|
630
630
|
asResponse?: boolean;
|
|
631
631
|
returnHeaders?: boolean;
|
|
632
|
-
use?:
|
|
632
|
+
use?: better_call196.Middleware[];
|
|
633
633
|
path?: string;
|
|
634
634
|
} & {
|
|
635
635
|
asResponse?: AsResponse | undefined;
|
|
@@ -649,7 +649,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
649
649
|
body: z$1.ZodObject<{
|
|
650
650
|
password: z$1.ZodString;
|
|
651
651
|
}, z$1.core.$strip>;
|
|
652
|
-
use: ((inputContext:
|
|
652
|
+
use: ((inputContext: better_call196.MiddlewareInputContext<better_call196.MiddlewareOptions>) => Promise<{
|
|
653
653
|
session: {
|
|
654
654
|
session: Record<string, any> & {
|
|
655
655
|
id: string;
|
|
@@ -727,7 +727,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
727
727
|
} & {
|
|
728
728
|
asResponse?: boolean;
|
|
729
729
|
returnHeaders?: boolean;
|
|
730
|
-
use?:
|
|
730
|
+
use?: better_call196.Middleware[];
|
|
731
731
|
path?: string;
|
|
732
732
|
} & {
|
|
733
733
|
asResponse?: AsResponse | undefined;
|
|
@@ -773,7 +773,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
773
773
|
} & {
|
|
774
774
|
asResponse?: boolean;
|
|
775
775
|
returnHeaders?: boolean;
|
|
776
|
-
use?:
|
|
776
|
+
use?: better_call196.Middleware[];
|
|
777
777
|
path?: string;
|
|
778
778
|
} & {
|
|
779
779
|
asResponse?: AsResponse | undefined;
|
|
@@ -838,7 +838,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
838
838
|
} & {
|
|
839
839
|
asResponse?: boolean;
|
|
840
840
|
returnHeaders?: boolean;
|
|
841
|
-
use?:
|
|
841
|
+
use?: better_call196.Middleware[];
|
|
842
842
|
path?: string;
|
|
843
843
|
} & {
|
|
844
844
|
asResponse?: AsResponse | undefined;
|
|
@@ -966,7 +966,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
966
966
|
} & {
|
|
967
967
|
asResponse?: boolean;
|
|
968
968
|
returnHeaders?: boolean;
|
|
969
|
-
use?:
|
|
969
|
+
use?: better_call196.Middleware[];
|
|
970
970
|
path?: string;
|
|
971
971
|
} & {
|
|
972
972
|
asResponse?: AsResponse | undefined;
|
|
@@ -1031,7 +1031,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
1031
1031
|
} & {
|
|
1032
1032
|
asResponse?: boolean;
|
|
1033
1033
|
returnHeaders?: boolean;
|
|
1034
|
-
use?:
|
|
1034
|
+
use?: better_call196.Middleware[];
|
|
1035
1035
|
path?: string;
|
|
1036
1036
|
} & {
|
|
1037
1037
|
asResponse?: AsResponse | undefined;
|
|
@@ -1046,7 +1046,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
1046
1046
|
}>;
|
|
1047
1047
|
options: {
|
|
1048
1048
|
method: "POST";
|
|
1049
|
-
use: ((inputContext:
|
|
1049
|
+
use: ((inputContext: better_call196.MiddlewareInputContext<better_call196.MiddlewareOptions>) => Promise<{
|
|
1050
1050
|
session: {
|
|
1051
1051
|
session: Record<string, any> & {
|
|
1052
1052
|
id: string;
|
|
@@ -1119,7 +1119,7 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
1119
1119
|
} & {
|
|
1120
1120
|
asResponse?: boolean;
|
|
1121
1121
|
returnHeaders?: boolean;
|
|
1122
|
-
use?:
|
|
1122
|
+
use?: better_call196.Middleware[];
|
|
1123
1123
|
path?: string;
|
|
1124
1124
|
} & {
|
|
1125
1125
|
asResponse?: AsResponse | undefined;
|
|
@@ -1188,8 +1188,8 @@ declare const twoFactor: (options?: TwoFactorOptions | undefined) => {
|
|
|
1188
1188
|
options: TwoFactorOptions | undefined;
|
|
1189
1189
|
hooks: {
|
|
1190
1190
|
after: {
|
|
1191
|
-
matcher(context:
|
|
1192
|
-
handler: (inputContext:
|
|
1191
|
+
matcher(context: _gatwech_core42.HookEndpointContext): boolean;
|
|
1192
|
+
handler: (inputContext: better_call196.MiddlewareInputContext<better_call196.MiddlewareOptions>) => Promise<{
|
|
1193
1193
|
twoFactorRedirect: boolean;
|
|
1194
1194
|
} | undefined>;
|
|
1195
1195
|
}[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _gatwech_core16 from "@gatwech/core";
|
|
3
|
+
import * as better_call157 from "better-call";
|
|
4
4
|
import * as z$1 from "zod";
|
|
5
5
|
import * as _gatwech_core_db1 from "@gatwech/core/db";
|
|
6
6
|
|
|
@@ -106,7 +106,7 @@ type UsernameOptions = {
|
|
|
106
106
|
};
|
|
107
107
|
declare const username: (options?: UsernameOptions | undefined) => {
|
|
108
108
|
id: "username";
|
|
109
|
-
init(ctx:
|
|
109
|
+
init(ctx: _gatwech_core16.AuthContext<_gatwech_core16.PayvoAuthOptions>): {
|
|
110
110
|
options: {
|
|
111
111
|
databaseHooks: {
|
|
112
112
|
user: {
|
|
@@ -119,7 +119,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
|
|
|
119
119
|
emailVerified: boolean;
|
|
120
120
|
name: string;
|
|
121
121
|
image?: string | null | undefined;
|
|
122
|
-
} & Record<string, unknown>, context:
|
|
122
|
+
} & Record<string, unknown>, context: _gatwech_core16.GenericEndpointContext<_gatwech_core16.PayvoAuthOptions> | undefined): Promise<{
|
|
123
123
|
data: {
|
|
124
124
|
displayUsername?: string | undefined;
|
|
125
125
|
username?: string | undefined;
|
|
@@ -142,7 +142,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
|
|
|
142
142
|
emailVerified: boolean;
|
|
143
143
|
name: string;
|
|
144
144
|
image?: string | null | undefined;
|
|
145
|
-
}> & Record<string, unknown>, context:
|
|
145
|
+
}> & Record<string, unknown>, context: _gatwech_core16.GenericEndpointContext<_gatwech_core16.PayvoAuthOptions> | undefined): Promise<{
|
|
146
146
|
data: {
|
|
147
147
|
displayUsername?: string | undefined;
|
|
148
148
|
username?: string | undefined;
|
|
@@ -182,7 +182,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
|
|
|
182
182
|
} & {
|
|
183
183
|
asResponse?: boolean;
|
|
184
184
|
returnHeaders?: boolean;
|
|
185
|
-
use?:
|
|
185
|
+
use?: better_call157.Middleware[];
|
|
186
186
|
path?: string;
|
|
187
187
|
} & {
|
|
188
188
|
asResponse?: AsResponse | undefined;
|
|
@@ -291,7 +291,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
|
|
|
291
291
|
} & {
|
|
292
292
|
asResponse?: boolean;
|
|
293
293
|
returnHeaders?: boolean;
|
|
294
|
-
use?:
|
|
294
|
+
use?: better_call157.Middleware[];
|
|
295
295
|
path?: string;
|
|
296
296
|
} & {
|
|
297
297
|
asResponse?: AsResponse | undefined;
|
|
@@ -340,8 +340,8 @@ declare const username: (options?: UsernameOptions | undefined) => {
|
|
|
340
340
|
};
|
|
341
341
|
hooks: {
|
|
342
342
|
before: {
|
|
343
|
-
matcher(context:
|
|
344
|
-
handler: (inputContext:
|
|
343
|
+
matcher(context: _gatwech_core16.HookEndpointContext): boolean;
|
|
344
|
+
handler: (inputContext: better_call157.MiddlewareInputContext<better_call157.MiddlewareOptions>) => Promise<void>;
|
|
345
345
|
}[];
|
|
346
346
|
};
|
|
347
347
|
$ERROR_CODES: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as Awaitable } from "./helper-BgOIGHsu.mjs";
|
|
2
|
-
import { On as index_d_exports, g as User, h as Session } from "./index-
|
|
2
|
+
import { On as index_d_exports, g as User, h as Session } from "./index-CTjXncwM.mjs";
|
|
3
3
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _gatwech_core44 from "@gatwech/core";
|
|
5
5
|
import { GenericEndpointContext } from "@gatwech/core";
|
|
6
|
-
import * as
|
|
6
|
+
import * as better_call219 from "better-call";
|
|
7
7
|
import * as z$1 from "zod";
|
|
8
8
|
import * as jose0 from "jose";
|
|
9
9
|
import { JSONWebKeySet, JWTPayload } from "jose";
|
|
@@ -250,7 +250,7 @@ declare const jwt: (options?: JwtOptions | undefined) => {
|
|
|
250
250
|
} & {
|
|
251
251
|
asResponse?: boolean;
|
|
252
252
|
returnHeaders?: boolean;
|
|
253
|
-
use?:
|
|
253
|
+
use?: better_call219.Middleware[];
|
|
254
254
|
path?: string;
|
|
255
255
|
} & {
|
|
256
256
|
asResponse?: AsResponse | undefined;
|
|
@@ -355,7 +355,7 @@ declare const jwt: (options?: JwtOptions | undefined) => {
|
|
|
355
355
|
} & {
|
|
356
356
|
asResponse?: boolean;
|
|
357
357
|
returnHeaders?: boolean;
|
|
358
|
-
use?:
|
|
358
|
+
use?: better_call219.Middleware[];
|
|
359
359
|
path?: string;
|
|
360
360
|
} & {
|
|
361
361
|
asResponse?: AsResponse | undefined;
|
|
@@ -371,7 +371,7 @@ declare const jwt: (options?: JwtOptions | undefined) => {
|
|
|
371
371
|
options: {
|
|
372
372
|
method: "GET";
|
|
373
373
|
requireHeaders: true;
|
|
374
|
-
use: ((inputContext:
|
|
374
|
+
use: ((inputContext: better_call219.MiddlewareInputContext<better_call219.MiddlewareOptions>) => Promise<{
|
|
375
375
|
session: {
|
|
376
376
|
session: Record<string, any> & {
|
|
377
377
|
id: string;
|
|
@@ -440,7 +440,7 @@ declare const jwt: (options?: JwtOptions | undefined) => {
|
|
|
440
440
|
} & {
|
|
441
441
|
asResponse?: boolean;
|
|
442
442
|
returnHeaders?: boolean;
|
|
443
|
-
use?:
|
|
443
|
+
use?: better_call219.Middleware[];
|
|
444
444
|
path?: string;
|
|
445
445
|
} & {
|
|
446
446
|
asResponse?: AsResponse | undefined;
|
|
@@ -476,8 +476,8 @@ declare const jwt: (options?: JwtOptions | undefined) => {
|
|
|
476
476
|
};
|
|
477
477
|
hooks: {
|
|
478
478
|
after: {
|
|
479
|
-
matcher(context:
|
|
480
|
-
handler: (inputContext:
|
|
479
|
+
matcher(context: _gatwech_core44.HookEndpointContext): boolean;
|
|
480
|
+
handler: (inputContext: better_call219.MiddlewareInputContext<better_call219.MiddlewareOptions>) => Promise<void>;
|
|
481
481
|
}[];
|
|
482
482
|
};
|
|
483
483
|
schema: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as InferSession, p as InferUser } from "./index-
|
|
2
|
-
import * as
|
|
1
|
+
import { f as InferSession, p as InferUser } from "./index-CTjXncwM.mjs";
|
|
2
|
+
import * as _gatwech_core10 from "@gatwech/core";
|
|
3
3
|
import { GenericEndpointContext, PayvoAuthOptions } from "@gatwech/core";
|
|
4
|
-
import * as
|
|
4
|
+
import * as better_call139 from "better-call";
|
|
5
5
|
import * as z$1 from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/custom-session/index.d.ts
|
|
@@ -19,8 +19,8 @@ declare const customSession: <Returns extends Record<string, any>, O extends Pay
|
|
|
19
19
|
id: "custom-session";
|
|
20
20
|
hooks: {
|
|
21
21
|
after: {
|
|
22
|
-
matcher: (ctx:
|
|
23
|
-
handler: (inputContext:
|
|
22
|
+
matcher: (ctx: _gatwech_core10.HookEndpointContext) => boolean;
|
|
23
|
+
handler: (inputContext: better_call139.MiddlewareInputContext<better_call139.MiddlewareOptions>) => Promise<Awaited<Returns>[] | undefined>;
|
|
24
24
|
}[];
|
|
25
25
|
};
|
|
26
26
|
endpoints: {
|
|
@@ -43,7 +43,7 @@ declare const customSession: <Returns extends Record<string, any>, O extends Pay
|
|
|
43
43
|
} & {
|
|
44
44
|
asResponse?: boolean;
|
|
45
45
|
returnHeaders?: boolean;
|
|
46
|
-
use?:
|
|
46
|
+
use?: better_call139.Middleware[];
|
|
47
47
|
path?: string;
|
|
48
48
|
} & {
|
|
49
49
|
asResponse?: AsResponse | undefined;
|