@gatwech/auth 1.0.0-beta.21 → 1.0.0-beta.22
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/adapters/prisma-adapter/index.mjs +1 -1
- package/dist/{admin-BzUJL6tr.mjs → admin-rd-xHhnP.mjs} +1 -1
- package/dist/{anonymous-BjlTk4gl.mjs → anonymous-qSasVeIe.mjs} +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/index.mjs +1 -1
- package/dist/{api-Dk8Yj_J5.mjs → api-BV65Y-Rk.mjs} +5 -0
- package/dist/{auth-BoEA9bN7.mjs → auth-DtOjarwu.mjs} +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/plugins/index.d.mts +46 -46
- package/dist/client/react/index.d.mts +1 -1
- package/dist/{client-Da7tq8m6.d.mts → client-DO9MgP_0.d.mts} +1 -1
- package/dist/{client-B00gkznv.d.mts → client-ukvqpcbI.d.mts} +1 -1
- package/dist/cookies/index.d.mts +2 -2
- package/dist/db/index.d.mts +1 -1
- package/dist/{email-otp-Dw0DypjQ.mjs → email-otp-BmgAht1S.mjs} +1 -1
- package/dist/{generic-oauth-DFj27JY8.mjs → generic-oauth-C5_AXj2z.mjs} +1 -1
- package/dist/{haveibeenpwned-CzNda7Tn.mjs → haveibeenpwned-_3a5amT-.mjs} +1 -1
- package/dist/{index-BKy-8t2n.d.mts → index-AiKdOFSd.d.mts} +111 -112
- package/dist/{index-YeXSxzhX.d.mts → index-B4hJVVRn.d.mts} +19 -19
- package/dist/{index-Bhc37y9F.d.mts → index-BC0aAKsT.d.mts} +3 -3
- package/dist/{index-CpH-1sse.d.mts → index-BfLofiXO.d.mts} +9 -9
- package/dist/{index-CbBQdS-u.d.mts → index-BzzhaGLe.d.mts} +6 -6
- package/dist/{index-jEkJ2Zfk.d.mts → index-CBGNX7W1.d.mts} +6 -6
- package/dist/{index-Dt2I0G4X.d.mts → index-CRNh-5Tc.d.mts} +7 -7
- package/dist/{index-CMG4Pnen.d.mts → index-CRiKKdkb.d.mts} +6 -6
- package/dist/{index-VUyESU4p.d.mts → index-CTSeVJJB.d.mts} +1 -1
- package/dist/{index-iRoaTsOj.d.mts → index-CxhQu1HM.d.mts} +2 -2
- package/dist/{index-CM1rFdwV.d.mts → index-D-rjuF7p.d.mts} +7 -7
- package/dist/{index-IX1to9TB.d.mts → index-D3uQsW8T.d.mts} +33 -33
- package/dist/{index-CTqynuxm.d.mts → index-DKirx_GW.d.mts} +4 -4
- package/dist/{index-TrOnY3pM.d.mts → index-DSoiUc1C.d.mts} +169 -169
- package/dist/{index-oNlp4SvD.d.mts → index-Dkm27DLN.d.mts} +10 -10
- package/dist/{index-cPt-00xm.d.mts → index-Dl0bD1_6.d.mts} +6 -6
- package/dist/{index-C-IDh5yy.d.mts → index-DlS-HqZR.d.mts} +2 -2
- package/dist/{index-BjCQ3jmE.d.mts → index-DngQlUSI.d.mts} +118 -118
- package/dist/{index-D1OZ2e4m.d.mts → index-Do8AV4PF.d.mts} +13 -13
- package/dist/{index-WV7VzW2H.d.mts → index-SYRh5FW7.d.mts} +8 -8
- package/dist/{index-BECNG13R.d.mts → index-eOfQxlQV.d.mts} +13 -13
- package/dist/{index-BWYXZVsV.d.mts → index-hP8gvyp-.d.mts} +5 -5
- package/dist/{index-Bxive_YT.d.mts → index-pdl9MzQu.d.mts} +9 -9
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- 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/{jwt-DBN2mu0r.mjs → jwt-Czv-v097.mjs} +1 -1
- package/dist/{magic-link-D9Em1aOR.mjs → magic-link-CJgE0Ngn.mjs} +1 -1
- package/dist/{multi-session-Dno_8DxC.mjs → multi-session-bveCXtQW.mjs} +1 -1
- package/dist/{oauth-proxy-DW-zt8wv.mjs → oauth-proxy-69n1xA8L.mjs} +1 -1
- package/dist/oauth2/index.d.mts +1 -1
- package/dist/oauth2/index.mjs +1 -1
- package/dist/{one-tap-CodeyQb8.mjs → one-tap-Cm1eHuqi.mjs} +1 -1
- package/dist/{organization-D4QMpChF.mjs → organization-BK3ks97y.mjs} +1 -1
- package/dist/plugins/admin/index.d.mts +2 -2
- package/dist/plugins/admin/index.mjs +2 -2
- package/dist/plugins/anonymous/index.d.mts +2 -2
- package/dist/plugins/anonymous/index.mjs +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 +1 -1
- 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/custom-session/index.mjs +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/email-otp/index.mjs +2 -2
- package/dist/plugins/generic-oauth/index.d.mts +2 -2
- package/dist/plugins/generic-oauth/index.mjs +2 -2
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.mjs +2 -2
- package/dist/plugins/index.d.mts +22 -22
- package/dist/plugins/index.mjs +15 -15
- package/dist/plugins/jwt/index.d.mts +2 -2
- package/dist/plugins/jwt/index.mjs +2 -2
- package/dist/plugins/magic-link/index.d.mts +1 -1
- package/dist/plugins/magic-link/index.mjs +2 -2
- package/dist/plugins/multi-session/index.d.mts +1 -1
- package/dist/plugins/multi-session/index.mjs +2 -2
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.mjs +2 -2
- package/dist/plugins/one-tap/index.d.mts +1 -1
- package/dist/plugins/one-tap/index.mjs +2 -2
- package/dist/plugins/one-time-token/index.d.mts +2 -2
- package/dist/plugins/one-time-token/index.mjs +15 -15
- package/dist/plugins/organization/index.d.mts +2 -2
- package/dist/plugins/organization/index.mjs +2 -2
- package/dist/plugins/passkey/index.d.mts +2 -2
- package/dist/plugins/passkey/index.mjs +1 -1
- package/dist/plugins/phone-number/index.d.mts +2 -2
- package/dist/plugins/phone-number/index.mjs +1 -1
- package/dist/plugins/sentinel/client.d.mts +23 -23
- 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/two-factor/index.mjs +1 -1
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/plugins/username/index.mjs +2 -2
- package/dist/{plugins-yF8CFUDR.mjs → plugins-RSPSU3ro.mjs} +1 -1
- package/dist/{sentinel-B4Wo79HK.mjs → sentinel-B-2jmmZh.mjs} +30 -6
- package/dist/src/plugins/sentinel/geo.d.ts +11 -0
- package/dist/src/plugins/sentinel/index.d.ts +1 -3
- package/dist/test-utils/index.d.mts +1044 -1044
- package/dist/test-utils/index.mjs +16 -16
- package/dist/types/index.d.mts +1 -1
- package/dist/{username-BHNvcvsY.mjs → username-DCp6yugu.mjs} +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _gatwech_core38 from "@gatwech/core";
|
|
2
|
+
import * as better_call166 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_call166.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_call166.MiddlewareInputContext<better_call166.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_core38.HookEndpointContext): boolean;
|
|
100
|
+
handler: (inputContext: better_call166.MiddlewareInputContext<better_call166.MiddlewareOptions>) => Promise<void>;
|
|
101
101
|
}[];
|
|
102
102
|
before: ({
|
|
103
103
|
matcher(): true;
|
|
104
|
-
handler: (inputContext:
|
|
104
|
+
handler: (inputContext: better_call166.MiddlewareInputContext<better_call166.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_core38.HookEndpointContext): boolean;
|
|
115
|
+
handler: (inputContext: better_call166.MiddlewareInputContext<better_call166.MiddlewareOptions>) => Promise<{
|
|
116
|
+
context: better_call166.MiddlewareContext<better_call166.MiddlewareOptions, _gatwech_core38.AuthContext<_gatwech_core38.PayvoAuthOptions> & {
|
|
117
117
|
returned?: unknown | undefined;
|
|
118
118
|
responseHeaders?: Headers | undefined;
|
|
119
119
|
}>;
|
|
@@ -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-DngQlUSI.mjs";
|
|
2
|
+
import * as _gatwech_core26 from "@gatwech/core";
|
|
3
3
|
import { GenericEndpointContext, PayvoAuthOptions } from "@gatwech/core";
|
|
4
|
-
import * as
|
|
4
|
+
import * as better_call147 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_core26.HookEndpointContext) => boolean;
|
|
23
|
+
handler: (inputContext: better_call147.MiddlewareInputContext<better_call147.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_call147.Middleware[];
|
|
47
47
|
path?: string;
|
|
48
48
|
} & {
|
|
49
49
|
asResponse?: AsResponse | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _gatwech_core27 from "@gatwech/core";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/captcha/constants.d.ts
|
|
4
4
|
declare const Providers: {
|
|
@@ -34,7 +34,7 @@ type CaptchaOptions = GoogleRecaptchaOptions | CloudflareTurnstileOptions | HCap
|
|
|
34
34
|
//#region src/plugins/captcha/index.d.ts
|
|
35
35
|
declare const captcha: (options: CaptchaOptions) => {
|
|
36
36
|
id: "captcha";
|
|
37
|
-
onRequest: (request: Request, ctx:
|
|
37
|
+
onRequest: (request: Request, ctx: _gatwech_core27.AuthContext<_gatwech_core27.PayvoAuthOptions>) => Promise<{
|
|
38
38
|
response: Response;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
};
|