@neondatabase/auth 0.4.0-beta → 0.4.1-beta
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/{adapter-core-Bt4M5I2g.mjs → adapter-core-BFMM3lwe.mjs} +1 -1
- package/dist/{adapter-core-BWM7cWOp.d.mts → adapter-core-ClY-p_AI.d.mts} +159 -159
- package/dist/{better-auth-react-adapter-aMv8WeDb.mjs → better-auth-react-adapter-DZTZVVnk.mjs} +1 -1
- package/dist/{supabase-adapter-BGwV0Vu2.d.mts → better-auth-react-adapter-iJMZCLUI.d.mts} +367 -424
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/{neon-auth-CS4FpK2X.mjs → neon-auth-VDrC3GwX.mjs} +1 -1
- package/dist/next/index.mjs +3 -3
- package/dist/next/server/index.d.mts +108 -13
- package/dist/next/server/index.mjs +351 -31
- package/dist/react/adapters/index.d.mts +2 -2
- package/dist/react/adapters/index.mjs +2 -2
- package/dist/react/index.d.mts +2 -2
- package/dist/react/index.mjs +2 -2
- package/dist/{supabase-adapter-DBt4LJJd.mjs → supabase-adapter-CAyBFrNn.mjs} +1 -1
- package/dist/{better-auth-react-adapter-BDxJ65mF.d.mts → supabase-adapter-cuLnmLDs.d.mts} +176 -119
- package/dist/types/index.d.mts +1 -1
- package/dist/vanilla/adapters/index.d.mts +2 -2
- package/dist/vanilla/adapters/index.mjs +2 -2
- package/dist/vanilla/index.d.mts +2 -2
- package/dist/vanilla/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_react3 from "better-auth/react";
|
|
2
2
|
import { createAuthClient } from "better-auth/react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as better_auth_client3 from "better-auth/client";
|
|
4
4
|
import { BetterAuthClientOptions, createAuthClient as createAuthClient$1 } from "better-auth/client";
|
|
5
5
|
import * as zod0 from "zod";
|
|
6
|
-
import * as
|
|
6
|
+
import * as jose2 from "jose";
|
|
7
7
|
import { Session, User } from "better-auth/types";
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
8
|
+
import * as better_auth_plugins65 from "better-auth/plugins";
|
|
9
|
+
import * as better_auth463 from "better-auth";
|
|
10
|
+
import * as _better_fetch_fetch271 from "@better-fetch/fetch";
|
|
11
11
|
import { BetterFetchError, BetterFetchError as BetterFetchError$1 } from "@better-fetch/fetch";
|
|
12
12
|
import { Invitation, InvitationInput, InvitationStatus, Member, MemberInput, Organization, OrganizationInput, OrganizationRole, Team, TeamInput, TeamMember, TeamMemberInput } from "better-auth/plugins/organization";
|
|
13
13
|
import { JWKOptions, JWSAlgorithms, Jwk, JwtOptions } from "better-auth/plugins/jwt";
|
|
@@ -42,7 +42,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
42
42
|
pathMethods: {
|
|
43
43
|
"/token/anonymous": "GET";
|
|
44
44
|
};
|
|
45
|
-
getActions: ($fetch:
|
|
45
|
+
getActions: ($fetch: _better_fetch_fetch271.BetterFetch) => {
|
|
46
46
|
getAnonymousToken: (fetchOptions?: any) => Promise<{
|
|
47
47
|
data: {
|
|
48
48
|
token: string;
|
|
@@ -60,11 +60,11 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
60
60
|
};
|
|
61
61
|
} | {
|
|
62
62
|
id: "better-auth-client";
|
|
63
|
-
$InferServerPlugin: ReturnType<(<O extends
|
|
63
|
+
$InferServerPlugin: ReturnType<(<O extends better_auth_plugins65.JwtOptions>(options?: O) => {
|
|
64
64
|
id: "jwt";
|
|
65
65
|
options: NoInfer<O>;
|
|
66
66
|
endpoints: {
|
|
67
|
-
getJwks:
|
|
67
|
+
getJwks: better_auth463.StrictEndpoint<string, {
|
|
68
68
|
method: "GET";
|
|
69
69
|
metadata: {
|
|
70
70
|
openapi: {
|
|
@@ -140,11 +140,11 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
140
140
|
};
|
|
141
141
|
};
|
|
142
142
|
};
|
|
143
|
-
},
|
|
144
|
-
getToken:
|
|
143
|
+
}, jose2.JSONWebKeySet>;
|
|
144
|
+
getToken: better_auth463.StrictEndpoint<"/token", {
|
|
145
145
|
method: "GET";
|
|
146
146
|
requireHeaders: true;
|
|
147
|
-
use: ((inputContext:
|
|
147
|
+
use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
|
|
148
148
|
session: {
|
|
149
149
|
session: Record<string, any> & {
|
|
150
150
|
id: string;
|
|
@@ -193,24 +193,24 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
193
193
|
}, {
|
|
194
194
|
token: string;
|
|
195
195
|
}>;
|
|
196
|
-
signJWT:
|
|
196
|
+
signJWT: better_auth463.StrictEndpoint<string, {
|
|
197
197
|
method: "POST";
|
|
198
198
|
metadata: {
|
|
199
199
|
$Infer: {
|
|
200
200
|
body: {
|
|
201
|
-
payload:
|
|
202
|
-
overrideOptions?:
|
|
201
|
+
payload: jose2.JWTPayload;
|
|
202
|
+
overrideOptions?: better_auth_plugins65.JwtOptions | undefined;
|
|
203
203
|
};
|
|
204
204
|
};
|
|
205
205
|
};
|
|
206
206
|
body: zod0.ZodObject<{
|
|
207
207
|
payload: zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>;
|
|
208
208
|
overrideOptions: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
209
|
-
},
|
|
209
|
+
}, better_auth463.$strip>;
|
|
210
210
|
}, {
|
|
211
211
|
token: string;
|
|
212
212
|
}>;
|
|
213
|
-
verifyJWT:
|
|
213
|
+
verifyJWT: better_auth463.StrictEndpoint<string, {
|
|
214
214
|
method: "POST";
|
|
215
215
|
metadata: {
|
|
216
216
|
$Infer: {
|
|
@@ -230,15 +230,15 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
230
230
|
body: zod0.ZodObject<{
|
|
231
231
|
token: zod0.ZodString;
|
|
232
232
|
issuer: zod0.ZodOptional<zod0.ZodString>;
|
|
233
|
-
},
|
|
233
|
+
}, better_auth463.$strip>;
|
|
234
234
|
}, {
|
|
235
|
-
payload: (
|
|
235
|
+
payload: (jose2.JWTPayload & Required<Pick<jose2.JWTPayload, "sub" | "aud">>) | null;
|
|
236
236
|
}>;
|
|
237
237
|
};
|
|
238
238
|
hooks: {
|
|
239
239
|
after: {
|
|
240
|
-
matcher(context:
|
|
241
|
-
handler: (inputContext:
|
|
240
|
+
matcher(context: better_auth463.HookEndpointContext): boolean;
|
|
241
|
+
handler: (inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<void>;
|
|
242
242
|
}[];
|
|
243
243
|
};
|
|
244
244
|
schema: {
|
|
@@ -267,7 +267,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
267
267
|
pathMethods: {
|
|
268
268
|
[x: string]: "GET";
|
|
269
269
|
};
|
|
270
|
-
getActions: ($fetch:
|
|
270
|
+
getActions: ($fetch: _better_fetch_fetch271.BetterFetch) => {
|
|
271
271
|
jwks: (fetchOptions?: any) => Promise<{
|
|
272
272
|
data: null;
|
|
273
273
|
error: {
|
|
@@ -276,7 +276,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
276
276
|
statusText: string;
|
|
277
277
|
};
|
|
278
278
|
} | {
|
|
279
|
-
data:
|
|
279
|
+
data: jose2.JSONWebKeySet;
|
|
280
280
|
error: null;
|
|
281
281
|
}>;
|
|
282
282
|
};
|
|
@@ -322,7 +322,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
322
322
|
token: string;
|
|
323
323
|
ipAddress?: string | null | undefined;
|
|
324
324
|
userAgent?: string | null | undefined;
|
|
325
|
-
} & Record<string, unknown>, ctx:
|
|
325
|
+
} & Record<string, unknown>, ctx: better_auth463.GenericEndpointContext | null): Promise<void>;
|
|
326
326
|
};
|
|
327
327
|
};
|
|
328
328
|
};
|
|
@@ -330,22 +330,22 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
330
330
|
};
|
|
331
331
|
hooks: {
|
|
332
332
|
after: {
|
|
333
|
-
matcher(context:
|
|
334
|
-
handler: (inputContext:
|
|
333
|
+
matcher(context: better_auth463.HookEndpointContext): boolean;
|
|
334
|
+
handler: (inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<better_auth_plugins65.SessionWithImpersonatedBy[] | undefined>;
|
|
335
335
|
}[];
|
|
336
336
|
};
|
|
337
337
|
endpoints: {
|
|
338
|
-
setRole:
|
|
338
|
+
setRole: better_auth463.StrictEndpoint<"/admin/set-role", {
|
|
339
339
|
method: "POST";
|
|
340
340
|
body: zod0.ZodObject<{
|
|
341
341
|
userId: zod0.ZodCoercedString<unknown>;
|
|
342
342
|
role: zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>;
|
|
343
|
-
},
|
|
343
|
+
}, better_auth463.$strip>;
|
|
344
344
|
requireHeaders: true;
|
|
345
|
-
use: ((inputContext:
|
|
345
|
+
use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
|
|
346
346
|
session: {
|
|
347
|
-
user:
|
|
348
|
-
session:
|
|
347
|
+
user: better_auth_plugins65.UserWithRole;
|
|
348
|
+
session: better_auth463.Session;
|
|
349
349
|
};
|
|
350
350
|
}>)[];
|
|
351
351
|
metadata: {
|
|
@@ -379,17 +379,17 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
379
379
|
};
|
|
380
380
|
};
|
|
381
381
|
}, {
|
|
382
|
-
user:
|
|
382
|
+
user: better_auth_plugins65.UserWithRole;
|
|
383
383
|
}>;
|
|
384
|
-
getUser:
|
|
384
|
+
getUser: better_auth463.StrictEndpoint<"/admin/get-user", {
|
|
385
385
|
method: "GET";
|
|
386
386
|
query: zod0.ZodObject<{
|
|
387
387
|
id: zod0.ZodString;
|
|
388
|
-
},
|
|
389
|
-
use: ((inputContext:
|
|
388
|
+
}, better_auth463.$strip>;
|
|
389
|
+
use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
|
|
390
390
|
session: {
|
|
391
|
-
user:
|
|
392
|
-
session:
|
|
391
|
+
user: better_auth_plugins65.UserWithRole;
|
|
392
|
+
session: better_auth463.Session;
|
|
393
393
|
};
|
|
394
394
|
}>)[];
|
|
395
395
|
metadata: {
|
|
@@ -416,8 +416,8 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
416
416
|
};
|
|
417
417
|
};
|
|
418
418
|
};
|
|
419
|
-
},
|
|
420
|
-
createUser:
|
|
419
|
+
}, better_auth_plugins65.UserWithRole>;
|
|
420
|
+
createUser: better_auth463.StrictEndpoint<"/admin/create-user", {
|
|
421
421
|
method: "POST";
|
|
422
422
|
body: zod0.ZodObject<{
|
|
423
423
|
email: zod0.ZodString;
|
|
@@ -425,7 +425,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
425
425
|
name: zod0.ZodString;
|
|
426
426
|
role: zod0.ZodOptional<zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>>;
|
|
427
427
|
data: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
428
|
-
},
|
|
428
|
+
}, better_auth463.$strip>;
|
|
429
429
|
metadata: {
|
|
430
430
|
openapi: {
|
|
431
431
|
operationId: string;
|
|
@@ -460,18 +460,18 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
460
460
|
};
|
|
461
461
|
};
|
|
462
462
|
}, {
|
|
463
|
-
user:
|
|
463
|
+
user: better_auth_plugins65.UserWithRole;
|
|
464
464
|
}>;
|
|
465
|
-
adminUpdateUser:
|
|
465
|
+
adminUpdateUser: better_auth463.StrictEndpoint<"/admin/update-user", {
|
|
466
466
|
method: "POST";
|
|
467
467
|
body: zod0.ZodObject<{
|
|
468
468
|
userId: zod0.ZodCoercedString<unknown>;
|
|
469
469
|
data: zod0.ZodRecord<zod0.ZodAny, zod0.ZodAny>;
|
|
470
|
-
},
|
|
471
|
-
use: ((inputContext:
|
|
470
|
+
}, better_auth463.$strip>;
|
|
471
|
+
use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
|
|
472
472
|
session: {
|
|
473
|
-
user:
|
|
474
|
-
session:
|
|
473
|
+
user: better_auth_plugins65.UserWithRole;
|
|
474
|
+
session: better_auth463.Session;
|
|
475
475
|
};
|
|
476
476
|
}>)[];
|
|
477
477
|
metadata: {
|
|
@@ -498,13 +498,13 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
498
498
|
};
|
|
499
499
|
};
|
|
500
500
|
};
|
|
501
|
-
},
|
|
502
|
-
listUsers:
|
|
501
|
+
}, better_auth_plugins65.UserWithRole>;
|
|
502
|
+
listUsers: better_auth463.StrictEndpoint<"/admin/list-users", {
|
|
503
503
|
method: "GET";
|
|
504
|
-
use: ((inputContext:
|
|
504
|
+
use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
|
|
505
505
|
session: {
|
|
506
|
-
user:
|
|
507
|
-
session:
|
|
506
|
+
user: better_auth_plugins65.UserWithRole;
|
|
507
|
+
session: better_auth463.Session;
|
|
508
508
|
};
|
|
509
509
|
}>)[];
|
|
510
510
|
query: zod0.ZodObject<{
|
|
@@ -536,7 +536,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
536
536
|
gte: "gte";
|
|
537
537
|
contains: "contains";
|
|
538
538
|
}>>;
|
|
539
|
-
},
|
|
539
|
+
}, better_auth463.$strip>;
|
|
540
540
|
metadata: {
|
|
541
541
|
openapi: {
|
|
542
542
|
operationId: string;
|
|
@@ -575,7 +575,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
575
575
|
};
|
|
576
576
|
};
|
|
577
577
|
}, {
|
|
578
|
-
users:
|
|
578
|
+
users: better_auth_plugins65.UserWithRole[];
|
|
579
579
|
total: number;
|
|
580
580
|
limit: number | undefined;
|
|
581
581
|
offset: number | undefined;
|
|
@@ -583,17 +583,17 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
583
583
|
users: never[];
|
|
584
584
|
total: number;
|
|
585
585
|
}>;
|
|
586
|
-
listUserSessions:
|
|
586
|
+
listUserSessions: better_auth463.StrictEndpoint<"/admin/list-user-sessions", {
|
|
587
587
|
method: "POST";
|
|
588
|
-
use: ((inputContext:
|
|
588
|
+
use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
|
|
589
589
|
session: {
|
|
590
|
-
user:
|
|
591
|
-
session:
|
|
590
|
+
user: better_auth_plugins65.UserWithRole;
|
|
591
|
+
session: better_auth463.Session;
|
|
592
592
|
};
|
|
593
593
|
}>)[];
|
|
594
594
|
body: zod0.ZodObject<{
|
|
595
595
|
userId: zod0.ZodCoercedString<unknown>;
|
|
596
|
-
},
|
|
596
|
+
}, better_auth463.$strip>;
|
|
597
597
|
metadata: {
|
|
598
598
|
openapi: {
|
|
599
599
|
operationId: string;
|
|
@@ -622,17 +622,17 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
622
622
|
};
|
|
623
623
|
};
|
|
624
624
|
}, {
|
|
625
|
-
sessions:
|
|
625
|
+
sessions: better_auth_plugins65.SessionWithImpersonatedBy[];
|
|
626
626
|
}>;
|
|
627
|
-
unbanUser:
|
|
627
|
+
unbanUser: better_auth463.StrictEndpoint<"/admin/unban-user", {
|
|
628
628
|
method: "POST";
|
|
629
629
|
body: zod0.ZodObject<{
|
|
630
630
|
userId: zod0.ZodCoercedString<unknown>;
|
|
631
|
-
},
|
|
632
|
-
use: ((inputContext:
|
|
631
|
+
}, better_auth463.$strip>;
|
|
632
|
+
use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
|
|
633
633
|
session: {
|
|
634
|
-
user:
|
|
635
|
-
session:
|
|
634
|
+
user: better_auth_plugins65.UserWithRole;
|
|
635
|
+
session: better_auth463.Session;
|
|
636
636
|
};
|
|
637
637
|
}>)[];
|
|
638
638
|
metadata: {
|
|
@@ -660,19 +660,19 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
660
660
|
};
|
|
661
661
|
};
|
|
662
662
|
}, {
|
|
663
|
-
user:
|
|
663
|
+
user: better_auth_plugins65.UserWithRole;
|
|
664
664
|
}>;
|
|
665
|
-
banUser:
|
|
665
|
+
banUser: better_auth463.StrictEndpoint<"/admin/ban-user", {
|
|
666
666
|
method: "POST";
|
|
667
667
|
body: zod0.ZodObject<{
|
|
668
668
|
userId: zod0.ZodCoercedString<unknown>;
|
|
669
669
|
banReason: zod0.ZodOptional<zod0.ZodString>;
|
|
670
670
|
banExpiresIn: zod0.ZodOptional<zod0.ZodNumber>;
|
|
671
|
-
},
|
|
672
|
-
use: ((inputContext:
|
|
671
|
+
}, better_auth463.$strip>;
|
|
672
|
+
use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
|
|
673
673
|
session: {
|
|
674
|
-
user:
|
|
675
|
-
session:
|
|
674
|
+
user: better_auth_plugins65.UserWithRole;
|
|
675
|
+
session: better_auth463.Session;
|
|
676
676
|
};
|
|
677
677
|
}>)[];
|
|
678
678
|
metadata: {
|
|
@@ -700,17 +700,17 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
700
700
|
};
|
|
701
701
|
};
|
|
702
702
|
}, {
|
|
703
|
-
user:
|
|
703
|
+
user: better_auth_plugins65.UserWithRole;
|
|
704
704
|
}>;
|
|
705
|
-
impersonateUser:
|
|
705
|
+
impersonateUser: better_auth463.StrictEndpoint<"/admin/impersonate-user", {
|
|
706
706
|
method: "POST";
|
|
707
707
|
body: zod0.ZodObject<{
|
|
708
708
|
userId: zod0.ZodCoercedString<unknown>;
|
|
709
|
-
},
|
|
710
|
-
use: ((inputContext:
|
|
709
|
+
}, better_auth463.$strip>;
|
|
710
|
+
use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
|
|
711
711
|
session: {
|
|
712
|
-
user:
|
|
713
|
-
session:
|
|
712
|
+
user: better_auth_plugins65.UserWithRole;
|
|
713
|
+
session: better_auth463.Session;
|
|
714
714
|
};
|
|
715
715
|
}>)[];
|
|
716
716
|
metadata: {
|
|
@@ -751,9 +751,9 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
751
751
|
ipAddress?: string | null | undefined;
|
|
752
752
|
userAgent?: string | null | undefined;
|
|
753
753
|
};
|
|
754
|
-
user:
|
|
754
|
+
user: better_auth_plugins65.UserWithRole;
|
|
755
755
|
}>;
|
|
756
|
-
stopImpersonating:
|
|
756
|
+
stopImpersonating: better_auth463.StrictEndpoint<"/admin/stop-impersonating", {
|
|
757
757
|
method: "POST";
|
|
758
758
|
requireHeaders: true;
|
|
759
759
|
}, {
|
|
@@ -777,15 +777,15 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
777
777
|
image?: string | null | undefined;
|
|
778
778
|
} & Record<string, any>;
|
|
779
779
|
}>;
|
|
780
|
-
revokeUserSession:
|
|
780
|
+
revokeUserSession: better_auth463.StrictEndpoint<"/admin/revoke-user-session", {
|
|
781
781
|
method: "POST";
|
|
782
782
|
body: zod0.ZodObject<{
|
|
783
783
|
sessionToken: zod0.ZodString;
|
|
784
|
-
},
|
|
785
|
-
use: ((inputContext:
|
|
784
|
+
}, better_auth463.$strip>;
|
|
785
|
+
use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
|
|
786
786
|
session: {
|
|
787
|
-
user:
|
|
788
|
-
session:
|
|
787
|
+
user: better_auth_plugins65.UserWithRole;
|
|
788
|
+
session: better_auth463.Session;
|
|
789
789
|
};
|
|
790
790
|
}>)[];
|
|
791
791
|
metadata: {
|
|
@@ -815,15 +815,15 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
815
815
|
}, {
|
|
816
816
|
success: boolean;
|
|
817
817
|
}>;
|
|
818
|
-
revokeUserSessions:
|
|
818
|
+
revokeUserSessions: better_auth463.StrictEndpoint<"/admin/revoke-user-sessions", {
|
|
819
819
|
method: "POST";
|
|
820
820
|
body: zod0.ZodObject<{
|
|
821
821
|
userId: zod0.ZodCoercedString<unknown>;
|
|
822
|
-
},
|
|
823
|
-
use: ((inputContext:
|
|
822
|
+
}, better_auth463.$strip>;
|
|
823
|
+
use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
|
|
824
824
|
session: {
|
|
825
|
-
user:
|
|
826
|
-
session:
|
|
825
|
+
user: better_auth_plugins65.UserWithRole;
|
|
826
|
+
session: better_auth463.Session;
|
|
827
827
|
};
|
|
828
828
|
}>)[];
|
|
829
829
|
metadata: {
|
|
@@ -853,15 +853,15 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
853
853
|
}, {
|
|
854
854
|
success: boolean;
|
|
855
855
|
}>;
|
|
856
|
-
removeUser:
|
|
856
|
+
removeUser: better_auth463.StrictEndpoint<"/admin/remove-user", {
|
|
857
857
|
method: "POST";
|
|
858
858
|
body: zod0.ZodObject<{
|
|
859
859
|
userId: zod0.ZodCoercedString<unknown>;
|
|
860
|
-
},
|
|
861
|
-
use: ((inputContext:
|
|
860
|
+
}, better_auth463.$strip>;
|
|
861
|
+
use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
|
|
862
862
|
session: {
|
|
863
|
-
user:
|
|
864
|
-
session:
|
|
863
|
+
user: better_auth_plugins65.UserWithRole;
|
|
864
|
+
session: better_auth463.Session;
|
|
865
865
|
};
|
|
866
866
|
}>)[];
|
|
867
867
|
metadata: {
|
|
@@ -891,16 +891,16 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
891
891
|
}, {
|
|
892
892
|
success: boolean;
|
|
893
893
|
}>;
|
|
894
|
-
setUserPassword:
|
|
894
|
+
setUserPassword: better_auth463.StrictEndpoint<"/admin/set-user-password", {
|
|
895
895
|
method: "POST";
|
|
896
896
|
body: zod0.ZodObject<{
|
|
897
897
|
newPassword: zod0.ZodString;
|
|
898
898
|
userId: zod0.ZodCoercedString<unknown>;
|
|
899
|
-
},
|
|
900
|
-
use: ((inputContext:
|
|
899
|
+
}, better_auth463.$strip>;
|
|
900
|
+
use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<{
|
|
901
901
|
session: {
|
|
902
|
-
user:
|
|
903
|
-
session:
|
|
902
|
+
user: better_auth_plugins65.UserWithRole;
|
|
903
|
+
session: better_auth463.Session;
|
|
904
904
|
};
|
|
905
905
|
}>)[];
|
|
906
906
|
metadata: {
|
|
@@ -930,18 +930,18 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
930
930
|
}, {
|
|
931
931
|
status: boolean;
|
|
932
932
|
}>;
|
|
933
|
-
userHasPermission:
|
|
933
|
+
userHasPermission: better_auth463.StrictEndpoint<"/admin/has-permission", {
|
|
934
934
|
method: "POST";
|
|
935
935
|
body: zod0.ZodIntersection<zod0.ZodObject<{
|
|
936
936
|
userId: zod0.ZodOptional<zod0.ZodCoercedString<unknown>>;
|
|
937
937
|
role: zod0.ZodOptional<zod0.ZodString>;
|
|
938
|
-
},
|
|
938
|
+
}, better_auth463.$strip>, zod0.ZodUnion<readonly [zod0.ZodObject<{
|
|
939
939
|
permission: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
|
|
940
940
|
permissions: zod0.ZodUndefined;
|
|
941
|
-
},
|
|
941
|
+
}, better_auth463.$strip>, zod0.ZodObject<{
|
|
942
942
|
permission: zod0.ZodUndefined;
|
|
943
943
|
permissions: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
|
|
944
|
-
},
|
|
944
|
+
}, better_auth463.$strip>]>>;
|
|
945
945
|
metadata: {
|
|
946
946
|
openapi: {
|
|
947
947
|
description: string;
|
|
@@ -1071,13 +1071,13 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1071
1071
|
};
|
|
1072
1072
|
};
|
|
1073
1073
|
options: NoInfer<{
|
|
1074
|
-
ac:
|
|
1074
|
+
ac: better_auth_plugins65.AccessControl<{
|
|
1075
1075
|
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "get", "update"];
|
|
1076
1076
|
readonly session: readonly ["list", "revoke", "delete"];
|
|
1077
1077
|
}>;
|
|
1078
1078
|
roles: {
|
|
1079
|
-
admin:
|
|
1080
|
-
user:
|
|
1079
|
+
admin: better_auth_plugins65.Role;
|
|
1080
|
+
user: better_auth_plugins65.Role;
|
|
1081
1081
|
};
|
|
1082
1082
|
}>;
|
|
1083
1083
|
};
|
|
@@ -1106,8 +1106,8 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1106
1106
|
};
|
|
1107
1107
|
} | {
|
|
1108
1108
|
id: "organization";
|
|
1109
|
-
$InferServerPlugin:
|
|
1110
|
-
ac:
|
|
1109
|
+
$InferServerPlugin: better_auth_plugins65.OrganizationPlugin<{
|
|
1110
|
+
ac: better_auth_plugins65.AccessControl<{
|
|
1111
1111
|
readonly organization: readonly ["update", "delete"];
|
|
1112
1112
|
readonly member: readonly ["create", "update", "delete"];
|
|
1113
1113
|
readonly invitation: readonly ["create", "cancel"];
|
|
@@ -1115,9 +1115,9 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1115
1115
|
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1116
1116
|
}>;
|
|
1117
1117
|
roles: {
|
|
1118
|
-
admin:
|
|
1119
|
-
member:
|
|
1120
|
-
owner:
|
|
1118
|
+
admin: better_auth_plugins65.Role;
|
|
1119
|
+
member: better_auth_plugins65.Role;
|
|
1120
|
+
owner: better_auth_plugins65.Role;
|
|
1121
1121
|
};
|
|
1122
1122
|
teams: {
|
|
1123
1123
|
enabled: false;
|
|
@@ -1125,27 +1125,27 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1125
1125
|
schema: {
|
|
1126
1126
|
organization?: {
|
|
1127
1127
|
additionalFields?: {
|
|
1128
|
-
[key: string]:
|
|
1128
|
+
[key: string]: better_auth463.DBFieldAttribute;
|
|
1129
1129
|
};
|
|
1130
1130
|
};
|
|
1131
1131
|
member?: {
|
|
1132
1132
|
additionalFields?: {
|
|
1133
|
-
[key: string]:
|
|
1133
|
+
[key: string]: better_auth463.DBFieldAttribute;
|
|
1134
1134
|
};
|
|
1135
1135
|
};
|
|
1136
1136
|
invitation?: {
|
|
1137
1137
|
additionalFields?: {
|
|
1138
|
-
[key: string]:
|
|
1138
|
+
[key: string]: better_auth463.DBFieldAttribute;
|
|
1139
1139
|
};
|
|
1140
1140
|
};
|
|
1141
1141
|
team?: {
|
|
1142
1142
|
additionalFields?: {
|
|
1143
|
-
[key: string]:
|
|
1143
|
+
[key: string]: better_auth463.DBFieldAttribute;
|
|
1144
1144
|
};
|
|
1145
1145
|
};
|
|
1146
1146
|
organizationRole?: {
|
|
1147
1147
|
additionalFields?: {
|
|
1148
|
-
[key: string]:
|
|
1148
|
+
[key: string]: better_auth463.DBFieldAttribute;
|
|
1149
1149
|
};
|
|
1150
1150
|
};
|
|
1151
1151
|
} | undefined;
|
|
@@ -1153,7 +1153,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1153
1153
|
enabled: false;
|
|
1154
1154
|
};
|
|
1155
1155
|
}>;
|
|
1156
|
-
getActions: ($fetch:
|
|
1156
|
+
getActions: ($fetch: _better_fetch_fetch271.BetterFetch, _$store: better_auth463.ClientStore, co: BetterAuthClientOptions | undefined) => {
|
|
1157
1157
|
$Infer: {
|
|
1158
1158
|
ActiveOrganization: {
|
|
1159
1159
|
members: {
|
|
@@ -1174,7 +1174,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1174
1174
|
organizationId: string;
|
|
1175
1175
|
email: string;
|
|
1176
1176
|
role: "admin" | "member" | "owner";
|
|
1177
|
-
status:
|
|
1177
|
+
status: better_auth_plugins65.InvitationStatus;
|
|
1178
1178
|
inviterId: string;
|
|
1179
1179
|
expiresAt: Date;
|
|
1180
1180
|
createdAt: Date;
|
|
@@ -1200,7 +1200,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1200
1200
|
organizationId: string;
|
|
1201
1201
|
email: string;
|
|
1202
1202
|
role: "admin" | "member" | "owner";
|
|
1203
|
-
status:
|
|
1203
|
+
status: better_auth_plugins65.InvitationStatus;
|
|
1204
1204
|
inviterId: string;
|
|
1205
1205
|
expiresAt: Date;
|
|
1206
1206
|
createdAt: Date;
|
|
@@ -1250,12 +1250,12 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1250
1250
|
}) => boolean;
|
|
1251
1251
|
};
|
|
1252
1252
|
};
|
|
1253
|
-
getAtoms: ($fetch:
|
|
1254
|
-
$listOrg:
|
|
1255
|
-
$activeOrgSignal:
|
|
1256
|
-
$activeMemberSignal:
|
|
1257
|
-
$activeMemberRoleSignal:
|
|
1258
|
-
activeOrganization:
|
|
1253
|
+
getAtoms: ($fetch: _better_fetch_fetch271.BetterFetch) => {
|
|
1254
|
+
$listOrg: better_auth_react3.PreinitializedWritableAtom<boolean> & object;
|
|
1255
|
+
$activeOrgSignal: better_auth_react3.PreinitializedWritableAtom<boolean> & object;
|
|
1256
|
+
$activeMemberSignal: better_auth_react3.PreinitializedWritableAtom<boolean> & object;
|
|
1257
|
+
$activeMemberRoleSignal: better_auth_react3.PreinitializedWritableAtom<boolean> & object;
|
|
1258
|
+
activeOrganization: better_auth_client3.AuthQueryAtom<better_auth463.Prettify<{
|
|
1259
1259
|
id: string;
|
|
1260
1260
|
name: string;
|
|
1261
1261
|
slug: string;
|
|
@@ -1281,13 +1281,13 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1281
1281
|
organizationId: string;
|
|
1282
1282
|
email: string;
|
|
1283
1283
|
role: "admin" | "member" | "owner";
|
|
1284
|
-
status:
|
|
1284
|
+
status: better_auth_plugins65.InvitationStatus;
|
|
1285
1285
|
inviterId: string;
|
|
1286
1286
|
expiresAt: Date;
|
|
1287
1287
|
createdAt: Date;
|
|
1288
1288
|
}[];
|
|
1289
1289
|
}>>;
|
|
1290
|
-
listOrganizations:
|
|
1290
|
+
listOrganizations: better_auth_client3.AuthQueryAtom<{
|
|
1291
1291
|
id: string;
|
|
1292
1292
|
name: string;
|
|
1293
1293
|
slug: string;
|
|
@@ -1295,14 +1295,14 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1295
1295
|
logo?: string | null | undefined | undefined;
|
|
1296
1296
|
metadata?: any;
|
|
1297
1297
|
}[]>;
|
|
1298
|
-
activeMember:
|
|
1298
|
+
activeMember: better_auth_client3.AuthQueryAtom<{
|
|
1299
1299
|
id: string;
|
|
1300
1300
|
organizationId: string;
|
|
1301
1301
|
userId: string;
|
|
1302
1302
|
role: string;
|
|
1303
1303
|
createdAt: Date;
|
|
1304
1304
|
}>;
|
|
1305
|
-
activeMemberRole:
|
|
1305
|
+
activeMemberRole: better_auth_client3.AuthQueryAtom<{
|
|
1306
1306
|
role: string;
|
|
1307
1307
|
}>;
|
|
1308
1308
|
};
|
|
@@ -1328,13 +1328,13 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1328
1328
|
})[];
|
|
1329
1329
|
} | {
|
|
1330
1330
|
id: "email-otp";
|
|
1331
|
-
$InferServerPlugin: ReturnType<(options:
|
|
1331
|
+
$InferServerPlugin: ReturnType<(options: better_auth_plugins65.EmailOTPOptions) => {
|
|
1332
1332
|
id: "email-otp";
|
|
1333
|
-
init(ctx:
|
|
1333
|
+
init(ctx: better_auth463.AuthContext): {
|
|
1334
1334
|
options: {
|
|
1335
1335
|
emailVerification: {
|
|
1336
1336
|
sendVerificationEmail(data: {
|
|
1337
|
-
user:
|
|
1337
|
+
user: better_auth463.User;
|
|
1338
1338
|
url: string;
|
|
1339
1339
|
token: string;
|
|
1340
1340
|
}, request: Request | undefined): Promise<void>;
|
|
@@ -1342,7 +1342,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1342
1342
|
};
|
|
1343
1343
|
} | undefined;
|
|
1344
1344
|
endpoints: {
|
|
1345
|
-
sendVerificationOTP:
|
|
1345
|
+
sendVerificationOTP: better_auth463.StrictEndpoint<"/email-otp/send-verification-otp", {
|
|
1346
1346
|
method: "POST";
|
|
1347
1347
|
body: zod0.ZodObject<{
|
|
1348
1348
|
email: zod0.ZodString;
|
|
@@ -1351,7 +1351,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1351
1351
|
"email-verification": "email-verification";
|
|
1352
1352
|
"forget-password": "forget-password";
|
|
1353
1353
|
}>;
|
|
1354
|
-
},
|
|
1354
|
+
}, better_auth463.$strip>;
|
|
1355
1355
|
metadata: {
|
|
1356
1356
|
openapi: {
|
|
1357
1357
|
operationId: string;
|
|
@@ -1378,7 +1378,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1378
1378
|
}, {
|
|
1379
1379
|
success: boolean;
|
|
1380
1380
|
}>;
|
|
1381
|
-
createVerificationOTP:
|
|
1381
|
+
createVerificationOTP: better_auth463.StrictEndpoint<string, {
|
|
1382
1382
|
method: "POST";
|
|
1383
1383
|
body: zod0.ZodObject<{
|
|
1384
1384
|
email: zod0.ZodString;
|
|
@@ -1387,7 +1387,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1387
1387
|
"email-verification": "email-verification";
|
|
1388
1388
|
"forget-password": "forget-password";
|
|
1389
1389
|
}>;
|
|
1390
|
-
},
|
|
1390
|
+
}, better_auth463.$strip>;
|
|
1391
1391
|
metadata: {
|
|
1392
1392
|
openapi: {
|
|
1393
1393
|
operationId: string;
|
|
@@ -1407,7 +1407,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1407
1407
|
};
|
|
1408
1408
|
};
|
|
1409
1409
|
}, string>;
|
|
1410
|
-
getVerificationOTP:
|
|
1410
|
+
getVerificationOTP: better_auth463.StrictEndpoint<string, {
|
|
1411
1411
|
method: "GET";
|
|
1412
1412
|
query: zod0.ZodObject<{
|
|
1413
1413
|
email: zod0.ZodString;
|
|
@@ -1416,7 +1416,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1416
1416
|
"email-verification": "email-verification";
|
|
1417
1417
|
"forget-password": "forget-password";
|
|
1418
1418
|
}>;
|
|
1419
|
-
},
|
|
1419
|
+
}, better_auth463.$strip>;
|
|
1420
1420
|
metadata: {
|
|
1421
1421
|
openapi: {
|
|
1422
1422
|
operationId: string;
|
|
@@ -1448,7 +1448,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1448
1448
|
} | {
|
|
1449
1449
|
otp: string;
|
|
1450
1450
|
}>;
|
|
1451
|
-
checkVerificationOTP:
|
|
1451
|
+
checkVerificationOTP: better_auth463.StrictEndpoint<"/email-otp/check-verification-otp", {
|
|
1452
1452
|
method: "POST";
|
|
1453
1453
|
body: zod0.ZodObject<{
|
|
1454
1454
|
email: zod0.ZodString;
|
|
@@ -1458,7 +1458,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1458
1458
|
"forget-password": "forget-password";
|
|
1459
1459
|
}>;
|
|
1460
1460
|
otp: zod0.ZodString;
|
|
1461
|
-
},
|
|
1461
|
+
}, better_auth463.$strip>;
|
|
1462
1462
|
metadata: {
|
|
1463
1463
|
openapi: {
|
|
1464
1464
|
operationId: string;
|
|
@@ -1485,12 +1485,12 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1485
1485
|
}, {
|
|
1486
1486
|
success: boolean;
|
|
1487
1487
|
}>;
|
|
1488
|
-
verifyEmailOTP:
|
|
1488
|
+
verifyEmailOTP: better_auth463.StrictEndpoint<"/email-otp/verify-email", {
|
|
1489
1489
|
method: "POST";
|
|
1490
1490
|
body: zod0.ZodObject<{
|
|
1491
1491
|
email: zod0.ZodString;
|
|
1492
1492
|
otp: zod0.ZodString;
|
|
1493
|
-
},
|
|
1493
|
+
}, better_auth463.$strip>;
|
|
1494
1494
|
metadata: {
|
|
1495
1495
|
openapi: {
|
|
1496
1496
|
description: string;
|
|
@@ -1549,12 +1549,12 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1549
1549
|
image?: string | null | undefined;
|
|
1550
1550
|
} & Record<string, any>;
|
|
1551
1551
|
}>;
|
|
1552
|
-
signInEmailOTP:
|
|
1552
|
+
signInEmailOTP: better_auth463.StrictEndpoint<"/sign-in/email-otp", {
|
|
1553
1553
|
method: "POST";
|
|
1554
1554
|
body: zod0.ZodObject<{
|
|
1555
1555
|
email: zod0.ZodString;
|
|
1556
1556
|
otp: zod0.ZodString;
|
|
1557
|
-
},
|
|
1557
|
+
}, better_auth463.$strip>;
|
|
1558
1558
|
metadata: {
|
|
1559
1559
|
openapi: {
|
|
1560
1560
|
operationId: string;
|
|
@@ -1595,11 +1595,11 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1595
1595
|
image?: string | null | undefined;
|
|
1596
1596
|
};
|
|
1597
1597
|
}>;
|
|
1598
|
-
requestPasswordResetEmailOTP:
|
|
1598
|
+
requestPasswordResetEmailOTP: better_auth463.StrictEndpoint<"/email-otp/request-password-reset", {
|
|
1599
1599
|
method: "POST";
|
|
1600
1600
|
body: zod0.ZodObject<{
|
|
1601
1601
|
email: zod0.ZodString;
|
|
1602
|
-
},
|
|
1602
|
+
}, better_auth463.$strip>;
|
|
1603
1603
|
metadata: {
|
|
1604
1604
|
openapi: {
|
|
1605
1605
|
operationId: string;
|
|
@@ -1627,11 +1627,11 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1627
1627
|
}, {
|
|
1628
1628
|
success: boolean;
|
|
1629
1629
|
}>;
|
|
1630
|
-
forgetPasswordEmailOTP:
|
|
1630
|
+
forgetPasswordEmailOTP: better_auth463.StrictEndpoint<"/forget-password/email-otp", {
|
|
1631
1631
|
method: "POST";
|
|
1632
1632
|
body: zod0.ZodObject<{
|
|
1633
1633
|
email: zod0.ZodString;
|
|
1634
|
-
},
|
|
1634
|
+
}, better_auth463.$strip>;
|
|
1635
1635
|
metadata: {
|
|
1636
1636
|
openapi: {
|
|
1637
1637
|
operationId: string;
|
|
@@ -1659,13 +1659,13 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1659
1659
|
}, {
|
|
1660
1660
|
success: boolean;
|
|
1661
1661
|
}>;
|
|
1662
|
-
resetPasswordEmailOTP:
|
|
1662
|
+
resetPasswordEmailOTP: better_auth463.StrictEndpoint<"/email-otp/reset-password", {
|
|
1663
1663
|
method: "POST";
|
|
1664
1664
|
body: zod0.ZodObject<{
|
|
1665
1665
|
email: zod0.ZodString;
|
|
1666
1666
|
otp: zod0.ZodString;
|
|
1667
1667
|
password: zod0.ZodString;
|
|
1668
|
-
},
|
|
1668
|
+
}, better_auth463.$strip>;
|
|
1669
1669
|
metadata: {
|
|
1670
1670
|
openapi: {
|
|
1671
1671
|
operationId: string;
|
|
@@ -1695,8 +1695,8 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1695
1695
|
};
|
|
1696
1696
|
hooks: {
|
|
1697
1697
|
after: {
|
|
1698
|
-
matcher(context:
|
|
1699
|
-
handler: (inputContext:
|
|
1698
|
+
matcher(context: better_auth463.HookEndpointContext): boolean;
|
|
1699
|
+
handler: (inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<void>;
|
|
1700
1700
|
}[];
|
|
1701
1701
|
};
|
|
1702
1702
|
$ERROR_CODES: {
|
|
@@ -1733,7 +1733,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1733
1733
|
window: number;
|
|
1734
1734
|
max: number;
|
|
1735
1735
|
})[];
|
|
1736
|
-
options:
|
|
1736
|
+
options: better_auth_plugins65.EmailOTPOptions;
|
|
1737
1737
|
}>;
|
|
1738
1738
|
atomListeners: {
|
|
1739
1739
|
matcher: (path: string) => path is "/email-otp/verify-email" | "/sign-in/email-otp";
|
|
@@ -1741,10 +1741,10 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1741
1741
|
}[];
|
|
1742
1742
|
} | {
|
|
1743
1743
|
id: "magic-link";
|
|
1744
|
-
$InferServerPlugin: ReturnType<(options:
|
|
1744
|
+
$InferServerPlugin: ReturnType<(options: better_auth_plugins65.MagicLinkOptions) => {
|
|
1745
1745
|
id: "magic-link";
|
|
1746
1746
|
endpoints: {
|
|
1747
|
-
signInMagicLink:
|
|
1747
|
+
signInMagicLink: better_auth463.StrictEndpoint<"/sign-in/magic-link", {
|
|
1748
1748
|
method: "POST";
|
|
1749
1749
|
requireHeaders: true;
|
|
1750
1750
|
body: zod0.ZodObject<{
|
|
@@ -1753,7 +1753,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1753
1753
|
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
1754
1754
|
newUserCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
1755
1755
|
errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
1756
|
-
},
|
|
1756
|
+
}, better_auth463.$strip>;
|
|
1757
1757
|
metadata: {
|
|
1758
1758
|
openapi: {
|
|
1759
1759
|
operationId: string;
|
|
@@ -1780,15 +1780,15 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1780
1780
|
}, {
|
|
1781
1781
|
status: boolean;
|
|
1782
1782
|
}>;
|
|
1783
|
-
magicLinkVerify:
|
|
1783
|
+
magicLinkVerify: better_auth463.StrictEndpoint<"/magic-link/verify", {
|
|
1784
1784
|
method: "GET";
|
|
1785
1785
|
query: zod0.ZodObject<{
|
|
1786
1786
|
token: zod0.ZodString;
|
|
1787
1787
|
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
1788
1788
|
errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
1789
1789
|
newUserCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
1790
|
-
},
|
|
1791
|
-
use: ((inputContext:
|
|
1790
|
+
}, better_auth463.$strip>;
|
|
1791
|
+
use: ((inputContext: better_auth463.MiddlewareInputContext<better_auth463.MiddlewareOptions>) => Promise<void>)[];
|
|
1792
1792
|
requireHeaders: true;
|
|
1793
1793
|
metadata: {
|
|
1794
1794
|
openapi: {
|
|
@@ -1834,7 +1834,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1834
1834
|
window: number;
|
|
1835
1835
|
max: number;
|
|
1836
1836
|
}[];
|
|
1837
|
-
options:
|
|
1837
|
+
options: better_auth_plugins65.MagicLinkOptions;
|
|
1838
1838
|
}>;
|
|
1839
1839
|
})[];
|
|
1840
1840
|
type SupportedBetterAuthClientPlugins = typeof supportedBetterAuthClientPlugins;
|