@gatwech/auth 1.0.0-beta.22 → 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.
- package/dist/adapters/index.d.mts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/{audit-log-DgqHJ-uv.mjs → audit-log-DhRRCMrv.mjs} +21 -6
- package/dist/client/index.d.mts +1 -1
- package/dist/client/plugins/index.d.mts +27 -27
- package/dist/client/react/index.d.mts +1 -1
- package/dist/{client-ukvqpcbI.d.mts → client-CGV_kj99.d.mts} +1 -1
- package/dist/{client-DO9MgP_0.d.mts → client-CT-acJeN.d.mts} +1 -1
- package/dist/cookies/index.d.mts +2 -2
- package/dist/db/index.d.mts +1 -1
- package/dist/{index-BfLofiXO.d.mts → index-B-i2ob-C.d.mts} +9 -9
- package/dist/{index-CTSeVJJB.d.mts → index-B6to9CaK.d.mts} +1 -1
- package/dist/{index-hP8gvyp-.d.mts → index-BRUQHEUF.d.mts} +5 -5
- package/dist/{index-D3uQsW8T.d.mts → index-BYxt8qOP.d.mts} +33 -33
- package/dist/{index-CRNh-5Tc.d.mts → index-CGGitykk.d.mts} +7 -7
- package/dist/{index-eOfQxlQV.d.mts → index-CHMYUshk.d.mts} +13 -13
- package/dist/{index-Dl0bD1_6.d.mts → index-CLhlur69.d.mts} +6 -6
- package/dist/{index-DngQlUSI.d.mts → index-CZtQ0rUe.d.mts} +113 -113
- package/dist/{index-Dkm27DLN.d.mts → index-Cl9ITXy1.d.mts} +10 -10
- package/dist/{index-SYRh5FW7.d.mts → index-Clwezlxm.d.mts} +8 -8
- package/dist/{index-BzzhaGLe.d.mts → index-Czr_eQFE.d.mts} +6 -6
- package/dist/{index-DKirx_GW.d.mts → index-D5cyFBEb.d.mts} +4 -4
- package/dist/{index-BC0aAKsT.d.mts → index-D85KXOKz.d.mts} +3 -3
- package/dist/{index-CxhQu1HM.d.mts → index-DGRGLg16.d.mts} +2 -2
- package/dist/{index-B4hJVVRn.d.mts → index-DWGj7du8.d.mts} +19 -19
- package/dist/{index-AiKdOFSd.d.mts → index-DWSbFJWU.d.mts} +387 -49
- package/dist/{index-Do8AV4PF.d.mts → index-DYqQWdEv.d.mts} +13 -13
- package/dist/{index-DlS-HqZR.d.mts → index-Dmjw6re9.d.mts} +2 -2
- package/dist/{index-CRiKKdkb.d.mts → index-Dt6JhAV4.d.mts} +6 -6
- package/dist/{index-pdl9MzQu.d.mts → index-Hoybqpnt.d.mts} +9 -9
- package/dist/{index-DSoiUc1C.d.mts → index-JzSy-vFn.d.mts} +166 -166
- package/dist/{index-D-rjuF7p.d.mts → index-UDzaYKxq.d.mts} +9 -9
- package/dist/{index-CBGNX7W1.d.mts → index-rcUKPBBy.d.mts} +6 -6
- 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 +22 -22
- package/dist/plugins/audit-log/index.mjs +2 -2
- 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 +22 -22
- package/dist/plugins/index.mjs +3 -3
- 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 +3 -3
- 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/index.d.mts +22 -22
- package/dist/plugins/sentinel/index.mjs +2 -2
- package/dist/plugins/two-factor/index.d.mts +2 -2
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/{registry-CqG_3Qnx.mjs → registry-GztLf62p.mjs} +14 -2
- package/dist/{sentinel-B-2jmmZh.mjs → sentinel-b8XEetew.mjs} +265 -9
- package/dist/src/plugins/audit-log/events.d.ts +1 -0
- package/dist/src/plugins/audit-log/index.d.ts +45 -0
- package/dist/src/plugins/sentinel/actions.d.ts +2 -0
- package/dist/src/plugins/sentinel/index.d.ts +247 -0
- package/dist/src/plugins/sentinel/schema.d.ts +37 -0
- package/dist/src/plugins/sentinel/store.d.ts +34 -0
- package/dist/src/plugins/sentinel/types.d.ts +7 -0
- package/dist/src/utils/has-role.d.ts +5 -0
- package/dist/test-utils/index.d.mts +273 -273
- package/dist/test-utils/index.mjs +3 -3
- package/dist/types/index.d.mts +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
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?:
|
|
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:
|
|
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:
|
|
100
|
-
handler: (inputContext:
|
|
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:
|
|
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:
|
|
115
|
-
handler: (inputContext:
|
|
116
|
-
context:
|
|
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-
|
|
2
|
-
import * as
|
|
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
|
|
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:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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:
|
|
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
|
|
2
|
-
import * as
|
|
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:
|
|
23
|
-
handler: (inputContext:
|
|
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:
|
|
31
|
-
handler: (inputContext:
|
|
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
|
|
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?:
|
|
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?:
|
|
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:
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|
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?:
|
|
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-
|
|
2
|
+
import { g as User } from "./index-CZtQ0rUe.mjs";
|
|
3
3
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _gatwech_core29 from "@gatwech/core";
|
|
5
5
|
import { PayvoAuthPlugin } from "@gatwech/core";
|
|
6
|
-
import * as
|
|
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?:
|
|
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:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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:
|
|
1192
|
-
handler: (inputContext:
|
|
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
|
}[];
|