@gatwech/auth 1.0.0-beta.19 → 1.0.0-beta.20
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/client/index.d.mts +16 -16
- package/dist/client/plugins/index.d.mts +45 -45
- package/dist/client/react/index.d.mts +14 -14
- package/dist/{client-DZHNfxuR.d.mts → client-C_qmyez2.d.mts} +4 -4
- package/dist/{client-CSOs1YN7.d.mts → client-F67q-Lbi.d.mts} +1 -1
- package/dist/{index-Blmhq6eA.d.mts → index-4I1YhYhk.d.mts} +4 -4
- package/dist/{index-mxEUX2Gs.d.mts → index-BX7rl07Z.d.mts} +13 -13
- package/dist/{index-xoYsoOiR.d.mts → index-Bml-PCqP.d.mts} +20 -20
- package/dist/{index-DG-X1PK5.d.mts → index-BsSKcKgO.d.mts} +5 -5
- package/dist/{index-CP3FNbOZ.d.mts → index-CBiGsvDd.d.mts} +7 -7
- package/dist/{index-CUknVRZp.d.mts → index-CC920PPp.d.mts} +13 -13
- package/dist/{index-zBdYQGaS.d.mts → index-CNd5jqLl.d.mts} +5 -5
- package/dist/{index-DS-R7st3.d.mts → index-CP8x1TFq.d.mts} +6 -6
- package/dist/{index-CaqpCfE5.d.mts → index-CofuaNMl.d.mts} +6 -6
- package/dist/{index-Cv9iMevV.d.mts → index-CzpdkTdv.d.mts} +9 -9
- package/dist/{index-DRM35ir1.d.mts → index-D57DuhZR.d.mts} +110 -110
- package/dist/{index-DXVU0HGr.d.mts → index-D6ku0rUC.d.mts} +4 -4
- package/dist/{index-BAVzFqII.d.mts → index-DFSRYWFI.d.mts} +6 -6
- package/dist/{index-CgeC2eGC.d.mts → index-DGeoJ4gu.d.mts} +2 -2
- package/dist/{index-DyH_CgmX.d.mts → index-DTkcY7xH.d.mts} +10 -10
- package/dist/{index-COGe8UJx.d.mts → index-Dnd8S4S4.d.mts} +8 -8
- package/dist/{index-Df4SvZaE.d.mts → index-DwPAddfE.d.mts} +3 -3
- package/dist/{index-Db8jqUq2.d.mts → index-DyXi7S2M.d.mts} +9 -9
- package/dist/{index-CKnPAS5n.d.mts → index-KhbNmMmG.d.mts} +165 -165
- package/dist/{index-EABwA_BH.d.mts → index-XfE0WjTN.d.mts} +32 -32
- package/dist/{index-BNDRYfTF.d.mts → index-sb-UFLuo.d.mts} +2 -2
- package/dist/integrations/next-js.d.mts +4 -4
- package/dist/integrations/react-start.d.mts +4 -4
- package/dist/plugins/admin/index.d.mts +1 -1
- package/dist/plugins/anonymous/index.d.mts +1 -1
- package/dist/plugins/audit-log/client.d.mts +22 -22
- package/dist/plugins/audit-log/index.d.mts +21 -21
- 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 +1 -1
- 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 +1 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/index.d.mts +21 -21
- package/dist/plugins/index.mjs +1 -1
- package/dist/plugins/jwt/index.d.mts +1 -1
- 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 +1 -1
- package/dist/plugins/one-time-token/index.mjs +1 -1
- package/dist/plugins/organization/index.d.mts +1 -1
- package/dist/plugins/passkey/index.d.mts +1 -1
- package/dist/plugins/phone-number/index.d.mts +1 -1
- package/dist/plugins/sentinel/client.d.mts +22 -22
- package/dist/plugins/sentinel/index.d.mts +21 -21
- package/dist/plugins/sentinel/index.mjs +1 -1
- package/dist/plugins/two-factor/index.d.mts +1 -1
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/{sentinel-C-D1IHJo.mjs → sentinel-DiPqydKG.mjs} +39 -8
- package/dist/src/plugins/sentinel/email.d.ts +9 -3
- package/dist/test-utils/index.d.mts +1042 -1042
- package/dist/test-utils/index.mjs +1 -1
- package/package.json +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { o as LiteralString } from "./helper-BgOIGHsu.mjs";
|
|
2
2
|
import { g as User } from "./index-BNhJglHC.mjs";
|
|
3
3
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _gatwech_core1 from "@gatwech/core";
|
|
5
5
|
import { PayvoAuthPlugin } from "@gatwech/core";
|
|
6
|
-
import * as
|
|
6
|
+
import * as better_call5 from "better-call";
|
|
7
7
|
import * as z$1 from "zod";
|
|
8
|
-
import * as
|
|
8
|
+
import * as _better_fetch_fetch19 from "@better-fetch/fetch";
|
|
9
9
|
|
|
10
10
|
//#region src/plugins/two-factor/backup-codes/index.d.ts
|
|
11
11
|
interface BackupCodeOptions {
|
|
@@ -231,7 +231,7 @@ declare const twoFactorClient: (options?: {
|
|
|
231
231
|
id: string;
|
|
232
232
|
name: string;
|
|
233
233
|
hooks: {
|
|
234
|
-
onSuccess(context:
|
|
234
|
+
onSuccess(context: _better_fetch_fetch19.SuccessContext<any>): Promise<void>;
|
|
235
235
|
};
|
|
236
236
|
}[];
|
|
237
237
|
};
|
|
@@ -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_call5.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_call5.MiddlewareInputContext<better_call5.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_call5.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_call5.MiddlewareInputContext<better_call5.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_call5.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_call5.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_call5.MiddlewareInputContext<better_call5.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_call5.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_call5.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_call5.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_call5.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_call5.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_call5.MiddlewareInputContext<better_call5.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_call5.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_core1.HookEndpointContext): boolean;
|
|
1192
|
+
handler: (inputContext: better_call5.MiddlewareInputContext<better_call5.MiddlewareOptions>) => Promise<{
|
|
1193
1193
|
twoFactorRedirect: boolean;
|
|
1194
1194
|
} | undefined>;
|
|
1195
1195
|
}[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as InferSession, p as InferUser } from "./index-BNhJglHC.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _gatwech_core0 from "@gatwech/core";
|
|
3
3
|
import { GenericEndpointContext, PayvoAuthOptions } from "@gatwech/core";
|
|
4
|
-
import * as
|
|
4
|
+
import * as better_call2 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_core0.HookEndpointContext) => boolean;
|
|
23
|
+
handler: (inputContext: better_call2.MiddlewareInputContext<better_call2.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_call2.Middleware[];
|
|
47
47
|
path?: string;
|
|
48
48
|
} & {
|
|
49
49
|
asResponse?: AsResponse | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { g as User } from "./index-BNhJglHC.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _gatwech_core27 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_call71 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_core27.AuthContext<_gatwech_core27.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_call71.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_call71.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_call71.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_call71.MiddlewareInputContext<better_call71.MiddlewareOptions>) => Promise<{
|
|
370
370
|
session: {
|
|
371
371
|
session: Record<string, any> & {
|
|
372
372
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as User } from "./index-Df0KhQRf-BEa5tdwJ.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _gatwech_core49 from "@gatwech/core";
|
|
3
|
+
import * as better_call121 from "better-call";
|
|
4
4
|
import * as z$1 from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/plugins/email-otp/index.d.ts
|
|
@@ -71,7 +71,7 @@ interface EmailOTPOptions {
|
|
|
71
71
|
}
|
|
72
72
|
declare const emailOTP: (options: EmailOTPOptions) => {
|
|
73
73
|
id: "email-otp";
|
|
74
|
-
init(ctx:
|
|
74
|
+
init(ctx: _gatwech_core49.AuthContext<_gatwech_core49.PayvoAuthOptions>): {
|
|
75
75
|
options: {
|
|
76
76
|
emailVerification: {
|
|
77
77
|
sendVerificationEmail(data: {
|
|
@@ -102,7 +102,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
102
102
|
} & {
|
|
103
103
|
asResponse?: boolean;
|
|
104
104
|
returnHeaders?: boolean;
|
|
105
|
-
use?:
|
|
105
|
+
use?: better_call121.Middleware[];
|
|
106
106
|
path?: string;
|
|
107
107
|
} & {
|
|
108
108
|
asResponse?: AsResponse | undefined;
|
|
@@ -175,7 +175,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
175
175
|
} & {
|
|
176
176
|
asResponse?: boolean;
|
|
177
177
|
returnHeaders?: boolean;
|
|
178
|
-
use?:
|
|
178
|
+
use?: better_call121.Middleware[];
|
|
179
179
|
path?: string;
|
|
180
180
|
} & {
|
|
181
181
|
asResponse?: AsResponse | undefined;
|
|
@@ -265,7 +265,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
265
265
|
} & {
|
|
266
266
|
asResponse?: boolean;
|
|
267
267
|
returnHeaders?: boolean;
|
|
268
|
-
use?:
|
|
268
|
+
use?: better_call121.Middleware[];
|
|
269
269
|
path?: string;
|
|
270
270
|
} & {
|
|
271
271
|
asResponse?: AsResponse | undefined;
|
|
@@ -350,7 +350,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
350
350
|
} & {
|
|
351
351
|
asResponse?: boolean;
|
|
352
352
|
returnHeaders?: boolean;
|
|
353
|
-
use?:
|
|
353
|
+
use?: better_call121.Middleware[];
|
|
354
354
|
path?: string;
|
|
355
355
|
} & {
|
|
356
356
|
asResponse?: AsResponse | undefined;
|
|
@@ -485,7 +485,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
485
485
|
} & {
|
|
486
486
|
asResponse?: boolean;
|
|
487
487
|
returnHeaders?: boolean;
|
|
488
|
-
use?:
|
|
488
|
+
use?: better_call121.Middleware[];
|
|
489
489
|
path?: string;
|
|
490
490
|
} & {
|
|
491
491
|
asResponse?: AsResponse | undefined;
|
|
@@ -587,7 +587,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
587
587
|
} & {
|
|
588
588
|
asResponse?: boolean;
|
|
589
589
|
returnHeaders?: boolean;
|
|
590
|
-
use?:
|
|
590
|
+
use?: better_call121.Middleware[];
|
|
591
591
|
path?: string;
|
|
592
592
|
} & {
|
|
593
593
|
asResponse?: AsResponse | undefined;
|
|
@@ -668,7 +668,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
668
668
|
} & {
|
|
669
669
|
asResponse?: boolean;
|
|
670
670
|
returnHeaders?: boolean;
|
|
671
|
-
use?:
|
|
671
|
+
use?: better_call121.Middleware[];
|
|
672
672
|
path?: string;
|
|
673
673
|
} & {
|
|
674
674
|
asResponse?: AsResponse | undefined;
|
|
@@ -749,7 +749,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
749
749
|
} & {
|
|
750
750
|
asResponse?: boolean;
|
|
751
751
|
returnHeaders?: boolean;
|
|
752
|
-
use?:
|
|
752
|
+
use?: better_call121.Middleware[];
|
|
753
753
|
path?: string;
|
|
754
754
|
} & {
|
|
755
755
|
asResponse?: AsResponse | undefined;
|
|
@@ -802,8 +802,8 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
802
802
|
};
|
|
803
803
|
hooks: {
|
|
804
804
|
after: {
|
|
805
|
-
matcher(context:
|
|
806
|
-
handler: (inputContext:
|
|
805
|
+
matcher(context: _gatwech_core49.HookEndpointContext): boolean;
|
|
806
|
+
handler: (inputContext: better_call121.MiddlewareInputContext<better_call121.MiddlewareOptions>) => Promise<void>;
|
|
807
807
|
}[];
|
|
808
808
|
};
|
|
809
809
|
$ERROR_CODES: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { g as User, h as Session } from "./index-BNhJglHC.mjs";
|
|
2
2
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _gatwech_core0 from "@gatwech/core";
|
|
4
4
|
import { AuthContext, GenericEndpointContext } from "@gatwech/core";
|
|
5
|
-
import * as
|
|
5
|
+
import * as better_call0 from "better-call";
|
|
6
6
|
import { EndpointContext } from "better-call";
|
|
7
7
|
|
|
8
8
|
//#region src/plugins/anonymous/index.d.ts
|
|
@@ -77,7 +77,7 @@ declare const anonymous: (options?: AnonymousOptions | undefined) => {
|
|
|
77
77
|
} & {
|
|
78
78
|
asResponse?: boolean;
|
|
79
79
|
returnHeaders?: boolean;
|
|
80
|
-
use?:
|
|
80
|
+
use?: better_call0.Middleware[];
|
|
81
81
|
path?: string;
|
|
82
82
|
} & {
|
|
83
83
|
asResponse?: AsResponse | undefined;
|
|
@@ -141,8 +141,8 @@ declare const anonymous: (options?: AnonymousOptions | undefined) => {
|
|
|
141
141
|
};
|
|
142
142
|
hooks: {
|
|
143
143
|
after: {
|
|
144
|
-
matcher(ctx:
|
|
145
|
-
handler: (inputContext:
|
|
144
|
+
matcher(ctx: _gatwech_core0.HookEndpointContext): boolean;
|
|
145
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
|
|
146
146
|
}[];
|
|
147
147
|
};
|
|
148
148
|
schema: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _gatwech_core46 from "@gatwech/core";
|
|
2
|
+
import * as better_call105 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_core46.HookEndpointContext): boolean;
|
|
23
|
+
handler: (inputContext: better_call105.MiddlewareInputContext<better_call105.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_core46.HookEndpointContext): true;
|
|
31
|
+
handler: (inputContext: better_call105.MiddlewareInputContext<better_call105.MiddlewareOptions>) => Promise<void>;
|
|
32
32
|
}[];
|
|
33
33
|
};
|
|
34
34
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as User } from "./index-BNhJglHC.mjs";
|
|
2
2
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as better_call76 from "better-call";
|
|
4
4
|
import * as z$1 from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/plugins/phone-number/index.d.ts
|
|
@@ -136,7 +136,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
|
|
|
136
136
|
} & {
|
|
137
137
|
asResponse?: boolean;
|
|
138
138
|
returnHeaders?: boolean;
|
|
139
|
-
use?:
|
|
139
|
+
use?: better_call76.Middleware[];
|
|
140
140
|
path?: string;
|
|
141
141
|
} & {
|
|
142
142
|
asResponse?: AsResponse | undefined;
|
|
@@ -225,7 +225,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
|
|
|
225
225
|
} & {
|
|
226
226
|
asResponse?: boolean;
|
|
227
227
|
returnHeaders?: boolean;
|
|
228
|
-
use?:
|
|
228
|
+
use?: better_call76.Middleware[];
|
|
229
229
|
path?: string;
|
|
230
230
|
} & {
|
|
231
231
|
asResponse?: AsResponse | undefined;
|
|
@@ -307,7 +307,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
|
|
|
307
307
|
} & {
|
|
308
308
|
asResponse?: boolean;
|
|
309
309
|
returnHeaders?: boolean;
|
|
310
|
-
use?:
|
|
310
|
+
use?: better_call76.Middleware[];
|
|
311
311
|
path?: string;
|
|
312
312
|
} & {
|
|
313
313
|
asResponse?: AsResponse | undefined;
|
|
@@ -449,7 +449,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
|
|
|
449
449
|
} & {
|
|
450
450
|
asResponse?: boolean;
|
|
451
451
|
returnHeaders?: boolean;
|
|
452
|
-
use?:
|
|
452
|
+
use?: better_call76.Middleware[];
|
|
453
453
|
path?: string;
|
|
454
454
|
} & {
|
|
455
455
|
asResponse?: AsResponse | undefined;
|
|
@@ -517,7 +517,7 @@ declare const phoneNumber: (options?: PhoneNumberOptions | undefined) => {
|
|
|
517
517
|
} & {
|
|
518
518
|
asResponse?: boolean;
|
|
519
519
|
returnHeaders?: boolean;
|
|
520
|
-
use?:
|
|
520
|
+
use?: better_call76.Middleware[];
|
|
521
521
|
path?: string;
|
|
522
522
|
} & {
|
|
523
523
|
asResponse?: AsResponse | undefined;
|
|
@@ -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_core2 from "@gatwech/core";
|
|
3
|
+
import * as better_call25 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_core2.AuthContext<_gatwech_core2.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_core2.GenericEndpointContext<_gatwech_core2.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_core2.GenericEndpointContext<_gatwech_core2.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_call25.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_call25.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_core2.HookEndpointContext): boolean;
|
|
344
|
+
handler: (inputContext: better_call25.MiddlewareInputContext<better_call25.MiddlewareOptions>) => Promise<void>;
|
|
345
345
|
}[];
|
|
346
346
|
};
|
|
347
347
|
$ERROR_CODES: {
|