@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.
- package/dist/adapters/index.d.mts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/plugins/index.d.mts +27 -27
- package/dist/client/react/index.d.mts +15 -15
- package/dist/{client-D8XKNpua.d.mts → client-CGV_kj99.d.mts} +1 -1
- package/dist/{client-CDaFOX7A.d.mts → client-CT-acJeN.d.mts} +4 -4
- package/dist/cookies/index.d.mts +2 -2
- package/dist/db/index.d.mts +1 -1
- package/dist/{index-Dg6Ftb6f.d.mts → index-B-i2ob-C.d.mts} +9 -9
- package/dist/{index-BhYE1_9j.d.mts → index-B6to9CaK.d.mts} +1 -1
- package/dist/{index-B5r4oL5q.d.mts → index-BRUQHEUF.d.mts} +5 -5
- package/dist/{index-Blq8KrTy.d.mts → index-BYxt8qOP.d.mts} +33 -33
- package/dist/{index-Dgyj1fTk.d.mts → index-CGGitykk.d.mts} +7 -7
- package/dist/{index-COFPq-mg.d.mts → index-CHMYUshk.d.mts} +13 -13
- package/dist/{index-D0SgItjY.d.mts → index-CLhlur69.d.mts} +6 -6
- package/dist/{index-3lfPQHhX.d.mts → index-CZtQ0rUe.d.mts} +113 -113
- package/dist/{index-C-z4TCHD.d.mts → index-Cl9ITXy1.d.mts} +10 -10
- package/dist/{index-DUu0ieh6.d.mts → index-Clwezlxm.d.mts} +8 -8
- package/dist/{index-CWxKeTtE.d.mts → index-Czr_eQFE.d.mts} +6 -6
- package/dist/{index-DxIqV3rU.d.mts → index-D5cyFBEb.d.mts} +4 -4
- package/dist/{index-DCliG2n6.d.mts → index-D85KXOKz.d.mts} +3 -3
- package/dist/{index-CIxFDcfQ.d.mts → index-DGRGLg16.d.mts} +2 -2
- package/dist/{index-CWwQ1Q7t.d.mts → index-DWGj7du8.d.mts} +19 -19
- package/dist/{index-B7iZf_Dl.d.mts → index-DWSbFJWU.d.mts} +55 -55
- package/dist/{index-C8F7PsET.d.mts → index-DYqQWdEv.d.mts} +13 -13
- package/dist/{index-382PsmkK.d.mts → index-Dmjw6re9.d.mts} +2 -2
- package/dist/{index-B4aWSJEd.d.mts → index-Dt6JhAV4.d.mts} +6 -6
- package/dist/{index-De2a2OyC.d.mts → index-Hoybqpnt.d.mts} +9 -9
- package/dist/{index-CExSHSFz.d.mts → index-JzSy-vFn.d.mts} +166 -166
- package/dist/{index-DPVukjga.d.mts → index-UDzaYKxq.d.mts} +9 -9
- package/dist/{index-DxRAXHrZ.d.mts → index-rcUKPBBy.d.mts} +6 -6
- package/dist/index.d.mts +1 -1
- package/dist/integrations/next-js.d.mts +2 -2
- 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/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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/plugins/two-factor/index.d.mts +2 -2
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/{sentinel-CYtaI3eO.mjs → sentinel-b8XEetew.mjs} +39 -14
- package/dist/test-utils/index.d.mts +273 -273
- package/dist/test-utils/index.mjs +1 -1
- package/dist/types/index.d.mts +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as User } from "./index-
|
|
1
|
+
import { g as User } from "./index-CZtQ0rUe.mjs";
|
|
2
2
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as better_call62 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_call62.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_call62.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_call62.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_call62.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_call62.Middleware[];
|
|
521
521
|
path?: string;
|
|
522
522
|
} & {
|
|
523
523
|
asResponse?: AsResponse | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as better_call204 from "better-call";
|
|
3
3
|
import * as z$1 from "zod";
|
|
4
4
|
import * as _simplewebauthn_server0 from "@simplewebauthn/server";
|
|
5
5
|
import { AuthenticationResponseJSON, CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON } from "@simplewebauthn/server";
|
|
@@ -139,7 +139,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
139
139
|
} & {
|
|
140
140
|
asResponse?: boolean;
|
|
141
141
|
returnHeaders?: boolean;
|
|
142
|
-
use?:
|
|
142
|
+
use?: better_call204.Middleware[];
|
|
143
143
|
path?: string;
|
|
144
144
|
} & {
|
|
145
145
|
asResponse?: AsResponse | undefined;
|
|
@@ -150,7 +150,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
150
150
|
} : PublicKeyCredentialCreationOptionsJSON>;
|
|
151
151
|
options: {
|
|
152
152
|
method: "GET";
|
|
153
|
-
use: ((inputContext:
|
|
153
|
+
use: ((inputContext: better_call204.MiddlewareInputContext<better_call204.MiddlewareOptions>) => Promise<{
|
|
154
154
|
session: {
|
|
155
155
|
session: Record<string, any> & {
|
|
156
156
|
id: string;
|
|
@@ -318,7 +318,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
318
318
|
} & {
|
|
319
319
|
asResponse?: boolean;
|
|
320
320
|
returnHeaders?: boolean;
|
|
321
|
-
use?:
|
|
321
|
+
use?: better_call204.Middleware[];
|
|
322
322
|
path?: string;
|
|
323
323
|
} & {
|
|
324
324
|
asResponse?: AsResponse | undefined;
|
|
@@ -443,7 +443,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
443
443
|
} & {
|
|
444
444
|
asResponse?: boolean;
|
|
445
445
|
returnHeaders?: boolean;
|
|
446
|
-
use?:
|
|
446
|
+
use?: better_call204.Middleware[];
|
|
447
447
|
path?: string;
|
|
448
448
|
} & {
|
|
449
449
|
asResponse?: AsResponse | undefined;
|
|
@@ -458,7 +458,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
458
458
|
response: z$1.ZodAny;
|
|
459
459
|
name: z$1.ZodOptional<z$1.ZodString>;
|
|
460
460
|
}, z$1.core.$strip>;
|
|
461
|
-
use: ((inputContext:
|
|
461
|
+
use: ((inputContext: better_call204.MiddlewareInputContext<better_call204.MiddlewareOptions>) => Promise<{
|
|
462
462
|
session: {
|
|
463
463
|
session: Record<string, any> & {
|
|
464
464
|
id: string;
|
|
@@ -524,7 +524,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
524
524
|
} & {
|
|
525
525
|
asResponse?: boolean;
|
|
526
526
|
returnHeaders?: boolean;
|
|
527
|
-
use?:
|
|
527
|
+
use?: better_call204.Middleware[];
|
|
528
528
|
path?: string;
|
|
529
529
|
} & {
|
|
530
530
|
asResponse?: AsResponse | undefined;
|
|
@@ -626,7 +626,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
626
626
|
} & {
|
|
627
627
|
asResponse?: boolean;
|
|
628
628
|
returnHeaders?: boolean;
|
|
629
|
-
use?:
|
|
629
|
+
use?: better_call204.Middleware[];
|
|
630
630
|
path?: string;
|
|
631
631
|
} & {
|
|
632
632
|
asResponse?: AsResponse | undefined;
|
|
@@ -637,7 +637,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
637
637
|
} : Passkey[]>;
|
|
638
638
|
options: {
|
|
639
639
|
method: "GET";
|
|
640
|
-
use: ((inputContext:
|
|
640
|
+
use: ((inputContext: better_call204.MiddlewareInputContext<better_call204.MiddlewareOptions>) => Promise<{
|
|
641
641
|
session: {
|
|
642
642
|
session: Record<string, any> & {
|
|
643
643
|
id: string;
|
|
@@ -720,7 +720,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
720
720
|
} & {
|
|
721
721
|
asResponse?: boolean;
|
|
722
722
|
returnHeaders?: boolean;
|
|
723
|
-
use?:
|
|
723
|
+
use?: better_call204.Middleware[];
|
|
724
724
|
path?: string;
|
|
725
725
|
} & {
|
|
726
726
|
asResponse?: AsResponse | undefined;
|
|
@@ -734,7 +734,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
734
734
|
body: z$1.ZodObject<{
|
|
735
735
|
id: z$1.ZodString;
|
|
736
736
|
}, z$1.core.$strip>;
|
|
737
|
-
use: ((inputContext:
|
|
737
|
+
use: ((inputContext: better_call204.MiddlewareInputContext<better_call204.MiddlewareOptions>) => Promise<{
|
|
738
738
|
session: {
|
|
739
739
|
session: Record<string, any> & {
|
|
740
740
|
id: string;
|
|
@@ -820,7 +820,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
820
820
|
} & {
|
|
821
821
|
asResponse?: boolean;
|
|
822
822
|
returnHeaders?: boolean;
|
|
823
|
-
use?:
|
|
823
|
+
use?: better_call204.Middleware[];
|
|
824
824
|
path?: string;
|
|
825
825
|
} & {
|
|
826
826
|
asResponse?: AsResponse | undefined;
|
|
@@ -839,7 +839,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
839
839
|
id: z$1.ZodString;
|
|
840
840
|
name: z$1.ZodString;
|
|
841
841
|
}, z$1.core.$strip>;
|
|
842
|
-
use: ((inputContext:
|
|
842
|
+
use: ((inputContext: better_call204.MiddlewareInputContext<better_call204.MiddlewareOptions>) => Promise<{
|
|
843
843
|
session: {
|
|
844
844
|
session: Record<string, any> & {
|
|
845
845
|
id: string;
|
|
@@ -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-CZtQ0rUe.mjs";
|
|
2
|
+
import * as _gatwech_core1 from "@gatwech/core";
|
|
3
3
|
import { GenericEndpointContext, PayvoAuthOptions } from "@gatwech/core";
|
|
4
|
-
import * as
|
|
4
|
+
import * as better_call12 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_core1.HookEndpointContext) => boolean;
|
|
23
|
+
handler: (inputContext: better_call12.MiddlewareInputContext<better_call12.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_call12.Middleware[];
|
|
47
47
|
path?: string;
|
|
48
48
|
} & {
|
|
49
49
|
asResponse?: AsResponse | undefined;
|