@gatwech/auth 1.0.0-beta.23 → 1.0.0-beta.24

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.
Files changed (70) hide show
  1. package/dist/adapters/index.d.mts +1 -1
  2. package/dist/api/index.d.mts +1 -1
  3. package/dist/client/index.d.mts +1 -1
  4. package/dist/client/plugins/index.d.mts +27 -27
  5. package/dist/client/react/index.d.mts +15 -15
  6. package/dist/{client-D8XKNpua.d.mts → client-CGV_kj99.d.mts} +1 -1
  7. package/dist/{client-CDaFOX7A.d.mts → client-CT-acJeN.d.mts} +4 -4
  8. package/dist/cookies/index.d.mts +2 -2
  9. package/dist/db/index.d.mts +1 -1
  10. package/dist/{index-Dg6Ftb6f.d.mts → index-B-i2ob-C.d.mts} +9 -9
  11. package/dist/{index-BhYE1_9j.d.mts → index-B6to9CaK.d.mts} +1 -1
  12. package/dist/{index-B5r4oL5q.d.mts → index-BRUQHEUF.d.mts} +5 -5
  13. package/dist/{index-Blq8KrTy.d.mts → index-BYxt8qOP.d.mts} +33 -33
  14. package/dist/{index-Dgyj1fTk.d.mts → index-CGGitykk.d.mts} +7 -7
  15. package/dist/{index-COFPq-mg.d.mts → index-CHMYUshk.d.mts} +13 -13
  16. package/dist/{index-D0SgItjY.d.mts → index-CLhlur69.d.mts} +6 -6
  17. package/dist/{index-3lfPQHhX.d.mts → index-CZtQ0rUe.d.mts} +113 -113
  18. package/dist/{index-C-z4TCHD.d.mts → index-Cl9ITXy1.d.mts} +10 -10
  19. package/dist/{index-DUu0ieh6.d.mts → index-Clwezlxm.d.mts} +8 -8
  20. package/dist/{index-CWxKeTtE.d.mts → index-Czr_eQFE.d.mts} +6 -6
  21. package/dist/{index-DxIqV3rU.d.mts → index-D5cyFBEb.d.mts} +4 -4
  22. package/dist/{index-DCliG2n6.d.mts → index-D85KXOKz.d.mts} +3 -3
  23. package/dist/{index-CIxFDcfQ.d.mts → index-DGRGLg16.d.mts} +2 -2
  24. package/dist/{index-CWwQ1Q7t.d.mts → index-DWGj7du8.d.mts} +19 -19
  25. package/dist/{index-B7iZf_Dl.d.mts → index-DWSbFJWU.d.mts} +55 -55
  26. package/dist/{index-C8F7PsET.d.mts → index-DYqQWdEv.d.mts} +13 -13
  27. package/dist/{index-382PsmkK.d.mts → index-Dmjw6re9.d.mts} +2 -2
  28. package/dist/{index-B4aWSJEd.d.mts → index-Dt6JhAV4.d.mts} +6 -6
  29. package/dist/{index-De2a2OyC.d.mts → index-Hoybqpnt.d.mts} +9 -9
  30. package/dist/{index-CExSHSFz.d.mts → index-JzSy-vFn.d.mts} +166 -166
  31. package/dist/{index-DPVukjga.d.mts → index-UDzaYKxq.d.mts} +9 -9
  32. package/dist/{index-DxRAXHrZ.d.mts → index-rcUKPBBy.d.mts} +6 -6
  33. package/dist/index.d.mts +1 -1
  34. package/dist/integrations/next-js.d.mts +2 -2
  35. package/dist/integrations/node.d.mts +1 -1
  36. package/dist/integrations/react-start.d.mts +4 -4
  37. package/dist/oauth2/index.d.mts +1 -1
  38. package/dist/plugins/admin/index.d.mts +2 -2
  39. package/dist/plugins/anonymous/index.d.mts +2 -2
  40. package/dist/plugins/audit-log/client.d.mts +23 -23
  41. package/dist/plugins/audit-log/index.d.mts +22 -22
  42. package/dist/plugins/bearer/index.d.mts +1 -1
  43. package/dist/plugins/captcha/index.d.mts +1 -1
  44. package/dist/plugins/custom-session/index.d.mts +2 -2
  45. package/dist/plugins/device-authorization/index.d.mts +1 -1
  46. package/dist/plugins/email-otp/index.d.mts +1 -1
  47. package/dist/plugins/generic-oauth/index.d.mts +2 -2
  48. package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
  49. package/dist/plugins/index.d.mts +22 -22
  50. package/dist/plugins/index.mjs +1 -1
  51. package/dist/plugins/jwt/index.d.mts +2 -2
  52. package/dist/plugins/magic-link/index.d.mts +1 -1
  53. package/dist/plugins/multi-session/index.d.mts +1 -1
  54. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  55. package/dist/plugins/one-tap/index.d.mts +1 -1
  56. package/dist/plugins/one-time-token/index.d.mts +2 -2
  57. package/dist/plugins/one-time-token/index.mjs +1 -1
  58. package/dist/plugins/organization/index.d.mts +2 -2
  59. package/dist/plugins/passkey/index.d.mts +2 -2
  60. package/dist/plugins/phone-number/index.d.mts +2 -2
  61. package/dist/plugins/sentinel/client.d.mts +23 -23
  62. package/dist/plugins/sentinel/index.d.mts +22 -22
  63. package/dist/plugins/sentinel/index.mjs +1 -1
  64. package/dist/plugins/two-factor/index.d.mts +2 -2
  65. package/dist/plugins/username/index.d.mts +1 -1
  66. package/dist/{sentinel-CYtaI3eO.mjs → sentinel-b8XEetew.mjs} +39 -14
  67. package/dist/test-utils/index.d.mts +273 -273
  68. package/dist/test-utils/index.mjs +1 -1
  69. package/dist/types/index.d.mts +1 -1
  70. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
- import * as _gatwech_core39 from "@gatwech/core";
2
- import * as better_call192 from "better-call";
1
+ import * as _gatwech_core30 from "@gatwech/core";
2
+ import * as better_call179 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?: better_call192.Middleware[];
51
+ use?: better_call179.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: better_call192.MiddlewareInputContext<better_call192.MiddlewareOptions>) => Promise<void>)[];
66
+ use: ((inputContext: better_call179.MiddlewareInputContext<better_call179.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: _gatwech_core39.HookEndpointContext): boolean;
100
- handler: (inputContext: better_call192.MiddlewareInputContext<better_call192.MiddlewareOptions>) => Promise<void>;
99
+ matcher(context: _gatwech_core30.HookEndpointContext): boolean;
100
+ handler: (inputContext: better_call179.MiddlewareInputContext<better_call179.MiddlewareOptions>) => Promise<void>;
101
101
  }[];
102
102
  before: ({
103
103
  matcher(): true;
104
- handler: (inputContext: better_call192.MiddlewareInputContext<better_call192.MiddlewareOptions>) => Promise<{
104
+ handler: (inputContext: better_call179.MiddlewareInputContext<better_call179.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: _gatwech_core39.HookEndpointContext): boolean;
115
- handler: (inputContext: better_call192.MiddlewareInputContext<better_call192.MiddlewareOptions>) => Promise<{
116
- context: better_call192.MiddlewareContext<better_call192.MiddlewareOptions, _gatwech_core39.AuthContext<_gatwech_core39.PayvoAuthOptions> & {
114
+ matcher(context: _gatwech_core30.HookEndpointContext): boolean;
115
+ handler: (inputContext: better_call179.MiddlewareInputContext<better_call179.MiddlewareOptions>) => Promise<{
116
+ context: better_call179.MiddlewareContext<better_call179.MiddlewareOptions, _gatwech_core30.AuthContext<_gatwech_core30.PayvoAuthOptions> & {
117
117
  returned?: unknown | undefined;
118
118
  responseHeaders?: Headers | undefined;
119
119
  }>;
@@ -1,9 +1,9 @@
1
- import { g as User } from "./index-3lfPQHhX.mjs";
2
- import * as _gatwech_core33 from "@gatwech/core";
1
+ import { g as User } from "./index-CZtQ0rUe.mjs";
2
+ import * as _gatwech_core36 from "@gatwech/core";
3
3
  import { GenericEndpointContext } from "@gatwech/core";
4
4
  import * as _gatwech_core_oauth20 from "@gatwech/core/oauth2";
5
5
  import { OAuth2Tokens, OAuth2UserInfo, OAuthProvider } from "@gatwech/core/oauth2";
6
- import * as better_call149 from "better-call";
6
+ import * as better_call190 from "better-call";
7
7
  import * as z$1 from "zod";
8
8
 
9
9
  //#region src/plugins/generic-oauth/index.d.ts
@@ -136,7 +136,7 @@ interface GenericOAuthOptions {
136
136
  */
137
137
  declare const genericOAuth: (options: GenericOAuthOptions) => {
138
138
  id: "generic-oauth";
139
- init: (ctx: _gatwech_core33.AuthContext<_gatwech_core33.PayvoAuthOptions>) => {
139
+ init: (ctx: _gatwech_core36.AuthContext<_gatwech_core36.PayvoAuthOptions>) => {
140
140
  context: {
141
141
  socialProviders: OAuthProvider<Record<string, any>, Partial<_gatwech_core_oauth20.ProviderOptions<any>>>[];
142
142
  };
@@ -182,7 +182,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
182
182
  } & {
183
183
  asResponse?: boolean;
184
184
  returnHeaders?: boolean;
185
- use?: better_call149.Middleware[];
185
+ use?: better_call190.Middleware[];
186
186
  path?: string;
187
187
  } & {
188
188
  asResponse?: AsResponse | undefined;
@@ -262,7 +262,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
262
262
  } & {
263
263
  asResponse?: boolean;
264
264
  returnHeaders?: boolean;
265
- use?: better_call149.Middleware[];
265
+ use?: better_call190.Middleware[];
266
266
  path?: string;
267
267
  } & {
268
268
  asResponse?: AsResponse | undefined;
@@ -343,7 +343,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
343
343
  } & {
344
344
  asResponse?: boolean;
345
345
  returnHeaders?: boolean;
346
- use?: better_call149.Middleware[];
346
+ use?: better_call190.Middleware[];
347
347
  path?: string;
348
348
  } & {
349
349
  asResponse?: AsResponse | undefined;
@@ -366,7 +366,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
366
366
  scopes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
367
367
  errorCallbackURL: z$1.ZodOptional<z$1.ZodString>;
368
368
  }, z$1.core.$strip>;
369
- use: ((inputContext: better_call149.MiddlewareInputContext<better_call149.MiddlewareOptions>) => Promise<{
369
+ use: ((inputContext: better_call190.MiddlewareInputContext<better_call190.MiddlewareOptions>) => Promise<{
370
370
  session: {
371
371
  session: Record<string, any> & {
372
372
  id: string;
@@ -1,5 +1,5 @@
1
- import * as _gatwech_core14 from "@gatwech/core";
2
- import * as better_call110 from "better-call";
1
+ import * as _gatwech_core16 from "@gatwech/core";
2
+ import * as better_call37 from "better-call";
3
3
 
4
4
  //#region src/plugins/bearer/index.d.ts
5
5
  interface BearerOptions {
@@ -19,16 +19,16 @@ declare const bearer: (options?: BearerOptions | undefined) => {
19
19
  id: "bearer";
20
20
  hooks: {
21
21
  before: {
22
- matcher(context: _gatwech_core14.HookEndpointContext): boolean;
23
- handler: (inputContext: better_call110.MiddlewareInputContext<better_call110.MiddlewareOptions>) => Promise<{
22
+ matcher(context: _gatwech_core16.HookEndpointContext): boolean;
23
+ handler: (inputContext: better_call37.MiddlewareInputContext<better_call37.MiddlewareOptions>) => Promise<{
24
24
  context: {
25
25
  headers: Headers;
26
26
  };
27
27
  } | undefined>;
28
28
  }[];
29
29
  after: {
30
- matcher(context: _gatwech_core14.HookEndpointContext): true;
31
- handler: (inputContext: better_call110.MiddlewareInputContext<better_call110.MiddlewareOptions>) => Promise<void>;
30
+ matcher(context: _gatwech_core16.HookEndpointContext): true;
31
+ handler: (inputContext: better_call37.MiddlewareInputContext<better_call37.MiddlewareOptions>) => Promise<void>;
32
32
  }[];
33
33
  };
34
34
  };
@@ -1,4 +1,4 @@
1
- import * as better_call158 from "better-call";
1
+ import * as better_call41 from "better-call";
2
2
  import * as z$1 from "zod";
3
3
 
4
4
  //#region src/plugins/magic-link/index.d.ts
@@ -89,7 +89,7 @@ declare const magicLink: (options: MagicLinkopts) => {
89
89
  } & {
90
90
  asResponse?: boolean;
91
91
  returnHeaders?: boolean;
92
- use?: better_call158.Middleware[];
92
+ use?: better_call41.Middleware[];
93
93
  path?: string;
94
94
  } & {
95
95
  asResponse?: AsResponse | undefined;
@@ -175,7 +175,7 @@ declare const magicLink: (options: MagicLinkopts) => {
175
175
  } & {
176
176
  asResponse?: boolean;
177
177
  returnHeaders?: boolean;
178
- use?: better_call158.Middleware[];
178
+ use?: better_call41.Middleware[];
179
179
  path?: string;
180
180
  } & {
181
181
  asResponse?: AsResponse | undefined;
@@ -214,7 +214,7 @@ declare const magicLink: (options: MagicLinkopts) => {
214
214
  errorCallbackURL: z$1.ZodOptional<z$1.ZodString>;
215
215
  newUserCallbackURL: z$1.ZodOptional<z$1.ZodString>;
216
216
  }, z$1.core.$strip>;
217
- use: ((inputContext: better_call158.MiddlewareInputContext<better_call158.MiddlewareOptions>) => Promise<void>)[];
217
+ use: ((inputContext: better_call41.MiddlewareInputContext<better_call41.MiddlewareOptions>) => Promise<void>)[];
218
218
  requireHeaders: true;
219
219
  metadata: {
220
220
  openapi: {
@@ -1,4 +1,4 @@
1
- import * as _gatwech_core24 from "@gatwech/core";
1
+ import * as _gatwech_core39 from "@gatwech/core";
2
2
 
3
3
  //#region src/plugins/haveibeenpwned/index.d.ts
4
4
 
@@ -13,7 +13,7 @@ interface HaveIBeenPwnedOptions {
13
13
  }
14
14
  declare const haveIBeenPwned: (options?: HaveIBeenPwnedOptions | undefined) => {
15
15
  id: "haveIBeenPwned";
16
- init(ctx: _gatwech_core24.AuthContext<_gatwech_core24.PayvoAuthOptions>): {
16
+ init(ctx: _gatwech_core39.AuthContext<_gatwech_core39.PayvoAuthOptions>): {
17
17
  context: {
18
18
  password: {
19
19
  hash(password: string): Promise<string>;
@@ -25,7 +25,7 @@ declare const haveIBeenPwned: (options?: HaveIBeenPwnedOptions | undefined) => {
25
25
  minPasswordLength: number;
26
26
  maxPasswordLength: number;
27
27
  };
28
- checkPassword: (userId: string, ctx: _gatwech_core24.GenericEndpointContext<_gatwech_core24.PayvoAuthOptions>) => Promise<boolean>;
28
+ checkPassword: (userId: string, ctx: _gatwech_core39.GenericEndpointContext<_gatwech_core39.PayvoAuthOptions>) => Promise<boolean>;
29
29
  };
30
30
  };
31
31
  };
@@ -1,4 +1,4 @@
1
- import * as better_call139 from "better-call";
1
+ import * as better_call22 from "better-call";
2
2
  import * as z$1 from "zod";
3
3
 
4
4
  //#region src/plugins/one-tap/index.d.ts
@@ -38,7 +38,7 @@ declare const oneTap: (options?: OneTapOptions | undefined) => {
38
38
  } & {
39
39
  asResponse?: boolean;
40
40
  returnHeaders?: boolean;
41
- use?: better_call139.Middleware[];
41
+ use?: better_call22.Middleware[];
42
42
  path?: string;
43
43
  } & {
44
44
  asResponse?: AsResponse | undefined;
@@ -1,9 +1,9 @@
1
1
  import { o as LiteralString } from "./helper-BgOIGHsu.mjs";
2
- import { g as User } from "./index-3lfPQHhX.mjs";
2
+ import { g as User } from "./index-CZtQ0rUe.mjs";
3
3
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
4
- import * as _gatwech_core50 from "@gatwech/core";
4
+ import * as _gatwech_core29 from "@gatwech/core";
5
5
  import { PayvoAuthPlugin } from "@gatwech/core";
6
- import * as better_call207 from "better-call";
6
+ import * as better_call159 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?: better_call207.Middleware[];
277
+ use?: better_call159.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: better_call207.MiddlewareInputContext<better_call207.MiddlewareOptions>) => Promise<{
298
+ use: ((inputContext: better_call159.MiddlewareInputContext<better_call159.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?: better_call207.Middleware[];
390
+ use?: better_call159.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: better_call207.MiddlewareInputContext<better_call207.MiddlewareOptions>) => Promise<{
408
+ use: ((inputContext: better_call159.MiddlewareInputContext<better_call159.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?: better_call207.Middleware[];
479
+ use?: better_call159.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?: better_call207.Middleware[];
632
+ use?: better_call159.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: better_call207.MiddlewareInputContext<better_call207.MiddlewareOptions>) => Promise<{
652
+ use: ((inputContext: better_call159.MiddlewareInputContext<better_call159.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?: better_call207.Middleware[];
730
+ use?: better_call159.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?: better_call207.Middleware[];
776
+ use?: better_call159.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?: better_call207.Middleware[];
841
+ use?: better_call159.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?: better_call207.Middleware[];
969
+ use?: better_call159.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?: better_call207.Middleware[];
1034
+ use?: better_call159.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: better_call207.MiddlewareInputContext<better_call207.MiddlewareOptions>) => Promise<{
1049
+ use: ((inputContext: better_call159.MiddlewareInputContext<better_call159.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?: better_call207.Middleware[];
1122
+ use?: better_call159.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: _gatwech_core50.HookEndpointContext): boolean;
1192
- handler: (inputContext: better_call207.MiddlewareInputContext<better_call207.MiddlewareOptions>) => Promise<{
1191
+ matcher(context: _gatwech_core29.HookEndpointContext): boolean;
1192
+ handler: (inputContext: better_call159.MiddlewareInputContext<better_call159.MiddlewareOptions>) => Promise<{
1193
1193
  twoFactorRedirect: boolean;
1194
1194
  } | undefined>;
1195
1195
  }[];