@neondatabase/auth 0.1.0-beta.2 → 0.1.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/README.md +112 -18
- package/dist/{adapter-core-C12KoaiU.d.mts → adapter-core-23fYTUxT.d.mts} +175 -627
- package/dist/{adapter-core-BDOw-gBC.mjs → adapter-core-8s6XdCco.mjs} +392 -69
- package/dist/{better-auth-react-adapter-FnBHa2nr.mjs → better-auth-react-adapter-D9tIaEyQ.mjs} +10 -8
- package/dist/better-auth-react-adapter-QFe5RtaM.d.mts +2170 -0
- package/dist/better-auth-types-BUiggBfa.d.mts +9 -0
- package/dist/chunk-VCZJYX65-CLnrj1o7-D6ZQkcc_.mjs +543 -0
- package/dist/constants-2bpp2_-f.mjs +30 -0
- package/dist/index-Bga0CzOO.d.mts +49 -0
- package/dist/index.d.mts +5 -98
- package/dist/index.mjs +2 -1
- package/dist/middleware-C7jHeulu.mjs +303 -0
- package/dist/{neon-auth-C9XTFffv.mjs → neon-auth-2f58U8_-.mjs} +7 -4
- package/dist/neon-auth-CDYpC_O1.d.mts +107 -0
- package/dist/next/index.d.mts +139 -303
- package/dist/next/index.mjs +37 -174
- package/dist/next/server/index.d.mts +389 -0
- package/dist/next/server/index.mjs +432 -0
- package/dist/react/adapters/index.d.mts +5 -4
- package/dist/react/adapters/index.mjs +2 -1
- package/dist/react/index.d.mts +6 -5
- package/dist/react/index.mjs +5 -92
- package/dist/react/ui/index.d.mts +1 -1
- package/dist/react/ui/index.mjs +3 -91
- package/dist/react/ui/server.mjs +1 -1
- package/dist/{supabase-adapter-ggmqWgPe.mjs → supabase-adapter-BYMJSxOT.mjs} +72 -167
- package/dist/supabase-adapter-Dr-pKvPt.d.mts +2258 -0
- package/dist/types/index.d.mts +4 -0
- package/dist/types/index.mjs +3 -0
- package/dist/ui/.safelist.html +3 -0
- package/dist/ui/css.css +2 -2
- package/dist/ui/tailwind.css +3 -2
- package/dist/ui/theme-inline.css +39 -0
- package/dist/ui/theme.css +125 -49
- package/dist/ui-Cg1EZzGG.mjs +12104 -0
- package/dist/vanilla/adapters/index.d.mts +4 -3
- package/dist/vanilla/adapters/index.mjs +2 -1
- package/dist/vanilla/index.d.mts +4 -3
- package/dist/vanilla/index.mjs +2 -1
- package/llms.txt +172 -0
- package/package.json +21 -10
- package/dist/better-auth-react-adapter-BXL48HIU.d.mts +0 -722
- package/dist/supabase-adapter-crabDnl2.d.mts +0 -128
- package/dist/ui-CNFBSekF.mjs +0 -401
- /package/dist/{adapters-Dkx0zoMR.mjs → adapters-B7YKkjaL.mjs} +0 -0
- /package/dist/{index-C-svZlpj.d.mts → index-BHI9uOzY.d.mts} +0 -0
- /package/dist/{index-DuDD6cIY.d.mts → index-CSe4aQIZ.d.mts} +0 -0
- /package/dist/{index-UW23fDSn.d.mts → index-LhFpnU-f.d.mts} +0 -0
|
@@ -1,21 +1,54 @@
|
|
|
1
1
|
import { createAuthClient } from "better-auth/react";
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import * as better_auth_client_plugins7 from "better-auth/client/plugins";
|
|
5
|
-
import * as jose0 from "jose";
|
|
6
|
-
import * as better_auth220 from "better-auth";
|
|
7
|
-
import * as _better_fetch_fetch138 from "@better-fetch/fetch";
|
|
8
|
-
import * as nanostores1 from "nanostores";
|
|
9
|
-
import * as better_call0 from "better-call";
|
|
2
|
+
import * as better_auth_client35 from "better-auth/client";
|
|
3
|
+
import { BetterAuthClientOptions, createAuthClient as createAuthClient$1 } from "better-auth/client";
|
|
10
4
|
import * as zod0 from "zod";
|
|
5
|
+
import * as jose2 from "jose";
|
|
6
|
+
import * as better_auth454 from "better-auth";
|
|
7
|
+
import * as _better_fetch_fetch266 from "@better-fetch/fetch";
|
|
8
|
+
import { BetterFetchError as BetterFetchError$1 } from "@better-fetch/fetch";
|
|
9
|
+
import * as better_auth_plugins17 from "better-auth/plugins";
|
|
10
|
+
import * as nanostores7 from "nanostores";
|
|
11
|
+
import * as better_call0 from "better-call";
|
|
12
|
+
import { Invitation, InvitationInput, InvitationStatus, Member, MemberInput, Organization, OrganizationInput, OrganizationRole, Team, TeamInput, TeamMember, TeamMemberInput } from "better-auth/plugins/organization";
|
|
13
|
+
import { JWKOptions, JWSAlgorithms, Jwk, JwtOptions } from "better-auth/plugins/jwt";
|
|
14
|
+
import { AdminOptions, InferAdminRolesFromOption, SessionWithImpersonatedBy, UserWithRole } from "better-auth/plugins/admin";
|
|
15
|
+
import { EmailOTPOptions } from "better-auth/plugins/email-otp";
|
|
11
16
|
|
|
17
|
+
//#region src/types/index.d.ts
|
|
18
|
+
type BetterAuthInstance = ReturnType<typeof createAuthClient$1<{
|
|
19
|
+
plugins: SupportedBetterAuthClientPlugins;
|
|
20
|
+
}> | typeof createAuthClient<{
|
|
21
|
+
plugins: SupportedBetterAuthClientPlugins;
|
|
22
|
+
}>>;
|
|
23
|
+
//#endregion
|
|
12
24
|
//#region src/core/adapter-core.d.ts
|
|
13
25
|
interface NeonAuthAdapterCoreAuthOptions extends Omit<BetterAuthClientOptions, 'plugins'> {}
|
|
14
26
|
declare const supportedBetterAuthClientPlugins: ({
|
|
27
|
+
id: "anonymous-token";
|
|
28
|
+
pathMethods: {
|
|
29
|
+
"/token/anonymous": "GET";
|
|
30
|
+
};
|
|
31
|
+
getActions: ($fetch: _better_fetch_fetch266.BetterFetch) => {
|
|
32
|
+
getAnonymousToken: (fetchOptions?: any) => Promise<{
|
|
33
|
+
data: {
|
|
34
|
+
token: string;
|
|
35
|
+
expires_at: number;
|
|
36
|
+
};
|
|
37
|
+
error: null;
|
|
38
|
+
} | {
|
|
39
|
+
data: null;
|
|
40
|
+
error: {
|
|
41
|
+
message?: string | undefined;
|
|
42
|
+
status: number;
|
|
43
|
+
statusText: string;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
};
|
|
47
|
+
} | {
|
|
15
48
|
id: "better-auth-client";
|
|
16
|
-
$InferServerPlugin: ReturnType<(options?:
|
|
49
|
+
$InferServerPlugin: ReturnType<(options?: better_auth_plugins17.JwtOptions | undefined) => {
|
|
17
50
|
id: "jwt";
|
|
18
|
-
options:
|
|
51
|
+
options: better_auth_plugins17.JwtOptions | undefined;
|
|
19
52
|
endpoints: {
|
|
20
53
|
getJwks: better_call0.StrictEndpoint<string, {
|
|
21
54
|
method: "GET";
|
|
@@ -95,7 +128,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
95
128
|
};
|
|
96
129
|
} & {
|
|
97
130
|
use: any[];
|
|
98
|
-
},
|
|
131
|
+
}, jose2.JSONWebKeySet>;
|
|
99
132
|
getToken: better_call0.StrictEndpoint<"/token", {
|
|
100
133
|
method: "GET";
|
|
101
134
|
requireHeaders: true;
|
|
@@ -156,15 +189,15 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
156
189
|
SERVER_ONLY: true;
|
|
157
190
|
$Infer: {
|
|
158
191
|
body: {
|
|
159
|
-
payload:
|
|
160
|
-
overrideOptions?:
|
|
192
|
+
payload: jose2.JWTPayload;
|
|
193
|
+
overrideOptions?: better_auth_plugins17.JwtOptions | undefined;
|
|
161
194
|
};
|
|
162
195
|
};
|
|
163
196
|
};
|
|
164
197
|
body: zod0.ZodObject<{
|
|
165
198
|
payload: zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>;
|
|
166
199
|
overrideOptions: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
167
|
-
},
|
|
200
|
+
}, better_auth454.$strip>;
|
|
168
201
|
} & {
|
|
169
202
|
use: any[];
|
|
170
203
|
}, {
|
|
@@ -191,16 +224,16 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
191
224
|
body: zod0.ZodObject<{
|
|
192
225
|
token: zod0.ZodString;
|
|
193
226
|
issuer: zod0.ZodOptional<zod0.ZodString>;
|
|
194
|
-
},
|
|
227
|
+
}, better_auth454.$strip>;
|
|
195
228
|
} & {
|
|
196
229
|
use: any[];
|
|
197
230
|
}, {
|
|
198
|
-
payload: (
|
|
231
|
+
payload: (jose2.JWTPayload & Required<Pick<jose2.JWTPayload, "sub" | "aud">>) | null;
|
|
199
232
|
}>;
|
|
200
233
|
};
|
|
201
234
|
hooks: {
|
|
202
235
|
after: {
|
|
203
|
-
matcher(context:
|
|
236
|
+
matcher(context: better_auth454.HookEndpointContext): boolean;
|
|
204
237
|
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
|
|
205
238
|
}[];
|
|
206
239
|
};
|
|
@@ -230,7 +263,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
230
263
|
pathMethods: {
|
|
231
264
|
[x: string]: "GET";
|
|
232
265
|
};
|
|
233
|
-
getActions: ($fetch:
|
|
266
|
+
getActions: ($fetch: _better_fetch_fetch266.BetterFetch) => {
|
|
234
267
|
jwks: (fetchOptions?: any) => Promise<{
|
|
235
268
|
data: null;
|
|
236
269
|
error: {
|
|
@@ -239,7 +272,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
239
272
|
statusText: string;
|
|
240
273
|
};
|
|
241
274
|
} | {
|
|
242
|
-
data:
|
|
275
|
+
data: jose2.JSONWebKeySet;
|
|
243
276
|
error: null;
|
|
244
277
|
}>;
|
|
245
278
|
};
|
|
@@ -285,7 +318,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
285
318
|
token: string;
|
|
286
319
|
ipAddress?: string | null | undefined;
|
|
287
320
|
userAgent?: string | null | undefined;
|
|
288
|
-
} & Record<string, unknown>, ctx:
|
|
321
|
+
} & Record<string, unknown>, ctx: better_auth454.GenericEndpointContext | null): Promise<void>;
|
|
289
322
|
};
|
|
290
323
|
};
|
|
291
324
|
};
|
|
@@ -293,8 +326,8 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
293
326
|
};
|
|
294
327
|
hooks: {
|
|
295
328
|
after: {
|
|
296
|
-
matcher(context:
|
|
297
|
-
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<
|
|
329
|
+
matcher(context: better_auth454.HookEndpointContext): boolean;
|
|
330
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<better_auth_plugins17.SessionWithImpersonatedBy[] | undefined>;
|
|
298
331
|
}[];
|
|
299
332
|
};
|
|
300
333
|
endpoints: {
|
|
@@ -303,12 +336,12 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
303
336
|
body: zod0.ZodObject<{
|
|
304
337
|
userId: zod0.ZodCoercedString<unknown>;
|
|
305
338
|
role: zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>;
|
|
306
|
-
},
|
|
339
|
+
}, better_auth454.$strip>;
|
|
307
340
|
requireHeaders: true;
|
|
308
341
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
309
342
|
session: {
|
|
310
|
-
user:
|
|
311
|
-
session:
|
|
343
|
+
user: better_auth_plugins17.UserWithRole;
|
|
344
|
+
session: better_auth454.Session;
|
|
312
345
|
};
|
|
313
346
|
}>)[];
|
|
314
347
|
metadata: {
|
|
@@ -344,17 +377,17 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
344
377
|
} & {
|
|
345
378
|
use: any[];
|
|
346
379
|
}, {
|
|
347
|
-
user:
|
|
380
|
+
user: better_auth_plugins17.UserWithRole;
|
|
348
381
|
}>;
|
|
349
382
|
getUser: better_call0.StrictEndpoint<"/admin/get-user", {
|
|
350
383
|
method: "GET";
|
|
351
384
|
query: zod0.ZodObject<{
|
|
352
385
|
id: zod0.ZodString;
|
|
353
|
-
},
|
|
386
|
+
}, better_auth454.$strip>;
|
|
354
387
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
355
388
|
session: {
|
|
356
|
-
user:
|
|
357
|
-
session:
|
|
389
|
+
user: better_auth_plugins17.UserWithRole;
|
|
390
|
+
session: better_auth454.Session;
|
|
358
391
|
};
|
|
359
392
|
}>)[];
|
|
360
393
|
metadata: {
|
|
@@ -400,7 +433,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
400
433
|
name: zod0.ZodString;
|
|
401
434
|
role: zod0.ZodOptional<zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>>;
|
|
402
435
|
data: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
403
|
-
},
|
|
436
|
+
}, better_auth454.$strip>;
|
|
404
437
|
metadata: {
|
|
405
438
|
openapi: {
|
|
406
439
|
operationId: string;
|
|
@@ -437,18 +470,18 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
437
470
|
} & {
|
|
438
471
|
use: any[];
|
|
439
472
|
}, {
|
|
440
|
-
user:
|
|
473
|
+
user: better_auth_plugins17.UserWithRole;
|
|
441
474
|
}>;
|
|
442
475
|
adminUpdateUser: better_call0.StrictEndpoint<"/admin/update-user", {
|
|
443
476
|
method: "POST";
|
|
444
477
|
body: zod0.ZodObject<{
|
|
445
478
|
userId: zod0.ZodCoercedString<unknown>;
|
|
446
479
|
data: zod0.ZodRecord<zod0.ZodAny, zod0.ZodAny>;
|
|
447
|
-
},
|
|
480
|
+
}, better_auth454.$strip>;
|
|
448
481
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
449
482
|
session: {
|
|
450
|
-
user:
|
|
451
|
-
session:
|
|
483
|
+
user: better_auth_plugins17.UserWithRole;
|
|
484
|
+
session: better_auth454.Session;
|
|
452
485
|
};
|
|
453
486
|
}>)[];
|
|
454
487
|
metadata: {
|
|
@@ -477,13 +510,13 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
477
510
|
};
|
|
478
511
|
} & {
|
|
479
512
|
use: any[];
|
|
480
|
-
},
|
|
513
|
+
}, better_auth_plugins17.UserWithRole>;
|
|
481
514
|
listUsers: better_call0.StrictEndpoint<"/admin/list-users", {
|
|
482
515
|
method: "GET";
|
|
483
516
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
484
517
|
session: {
|
|
485
|
-
user:
|
|
486
|
-
session:
|
|
518
|
+
user: better_auth_plugins17.UserWithRole;
|
|
519
|
+
session: better_auth454.Session;
|
|
487
520
|
};
|
|
488
521
|
}>)[];
|
|
489
522
|
query: zod0.ZodObject<{
|
|
@@ -515,7 +548,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
515
548
|
gte: "gte";
|
|
516
549
|
contains: "contains";
|
|
517
550
|
}>>;
|
|
518
|
-
},
|
|
551
|
+
}, better_auth454.$strip>;
|
|
519
552
|
metadata: {
|
|
520
553
|
openapi: {
|
|
521
554
|
operationId: string;
|
|
@@ -556,7 +589,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
556
589
|
} & {
|
|
557
590
|
use: any[];
|
|
558
591
|
}, {
|
|
559
|
-
users:
|
|
592
|
+
users: better_auth_plugins17.UserWithRole[];
|
|
560
593
|
total: number;
|
|
561
594
|
limit: number | undefined;
|
|
562
595
|
offset: number | undefined;
|
|
@@ -568,13 +601,13 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
568
601
|
method: "POST";
|
|
569
602
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
570
603
|
session: {
|
|
571
|
-
user:
|
|
572
|
-
session:
|
|
604
|
+
user: better_auth_plugins17.UserWithRole;
|
|
605
|
+
session: better_auth454.Session;
|
|
573
606
|
};
|
|
574
607
|
}>)[];
|
|
575
608
|
body: zod0.ZodObject<{
|
|
576
609
|
userId: zod0.ZodCoercedString<unknown>;
|
|
577
|
-
},
|
|
610
|
+
}, better_auth454.$strip>;
|
|
578
611
|
metadata: {
|
|
579
612
|
openapi: {
|
|
580
613
|
operationId: string;
|
|
@@ -605,17 +638,17 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
605
638
|
} & {
|
|
606
639
|
use: any[];
|
|
607
640
|
}, {
|
|
608
|
-
sessions:
|
|
641
|
+
sessions: better_auth_plugins17.SessionWithImpersonatedBy[];
|
|
609
642
|
}>;
|
|
610
643
|
unbanUser: better_call0.StrictEndpoint<"/admin/unban-user", {
|
|
611
644
|
method: "POST";
|
|
612
645
|
body: zod0.ZodObject<{
|
|
613
646
|
userId: zod0.ZodCoercedString<unknown>;
|
|
614
|
-
},
|
|
647
|
+
}, better_auth454.$strip>;
|
|
615
648
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
616
649
|
session: {
|
|
617
|
-
user:
|
|
618
|
-
session:
|
|
650
|
+
user: better_auth_plugins17.UserWithRole;
|
|
651
|
+
session: better_auth454.Session;
|
|
619
652
|
};
|
|
620
653
|
}>)[];
|
|
621
654
|
metadata: {
|
|
@@ -661,11 +694,11 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
661
694
|
userId: zod0.ZodCoercedString<unknown>;
|
|
662
695
|
banReason: zod0.ZodOptional<zod0.ZodString>;
|
|
663
696
|
banExpiresIn: zod0.ZodOptional<zod0.ZodNumber>;
|
|
664
|
-
},
|
|
697
|
+
}, better_auth454.$strip>;
|
|
665
698
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
666
699
|
session: {
|
|
667
|
-
user:
|
|
668
|
-
session:
|
|
700
|
+
user: better_auth_plugins17.UserWithRole;
|
|
701
|
+
session: better_auth454.Session;
|
|
669
702
|
};
|
|
670
703
|
}>)[];
|
|
671
704
|
metadata: {
|
|
@@ -709,11 +742,11 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
709
742
|
method: "POST";
|
|
710
743
|
body: zod0.ZodObject<{
|
|
711
744
|
userId: zod0.ZodCoercedString<unknown>;
|
|
712
|
-
},
|
|
745
|
+
}, better_auth454.$strip>;
|
|
713
746
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
714
747
|
session: {
|
|
715
|
-
user:
|
|
716
|
-
session:
|
|
748
|
+
user: better_auth_plugins17.UserWithRole;
|
|
749
|
+
session: better_auth454.Session;
|
|
717
750
|
};
|
|
718
751
|
}>)[];
|
|
719
752
|
metadata: {
|
|
@@ -756,15 +789,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
756
789
|
ipAddress?: string | null | undefined;
|
|
757
790
|
userAgent?: string | null | undefined;
|
|
758
791
|
};
|
|
759
|
-
user:
|
|
760
|
-
id: string;
|
|
761
|
-
createdAt: Date;
|
|
762
|
-
updatedAt: Date;
|
|
763
|
-
email: string;
|
|
764
|
-
emailVerified: boolean;
|
|
765
|
-
name: string;
|
|
766
|
-
image?: string | null | undefined;
|
|
767
|
-
};
|
|
792
|
+
user: better_auth_plugins17.UserWithRole;
|
|
768
793
|
}>;
|
|
769
794
|
stopImpersonating: better_call0.StrictEndpoint<"/admin/stop-impersonating", {
|
|
770
795
|
method: "POST";
|
|
@@ -772,18 +797,18 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
772
797
|
} & {
|
|
773
798
|
use: any[];
|
|
774
799
|
}, {
|
|
775
|
-
session:
|
|
776
|
-
user:
|
|
800
|
+
session: better_auth454.Session & Record<string, any>;
|
|
801
|
+
user: better_auth454.User & Record<string, any>;
|
|
777
802
|
}>;
|
|
778
803
|
revokeUserSession: better_call0.StrictEndpoint<"/admin/revoke-user-session", {
|
|
779
804
|
method: "POST";
|
|
780
805
|
body: zod0.ZodObject<{
|
|
781
806
|
sessionToken: zod0.ZodString;
|
|
782
|
-
},
|
|
807
|
+
}, better_auth454.$strip>;
|
|
783
808
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
784
809
|
session: {
|
|
785
|
-
user:
|
|
786
|
-
session:
|
|
810
|
+
user: better_auth_plugins17.UserWithRole;
|
|
811
|
+
session: better_auth454.Session;
|
|
787
812
|
};
|
|
788
813
|
}>)[];
|
|
789
814
|
metadata: {
|
|
@@ -819,11 +844,11 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
819
844
|
method: "POST";
|
|
820
845
|
body: zod0.ZodObject<{
|
|
821
846
|
userId: zod0.ZodCoercedString<unknown>;
|
|
822
|
-
},
|
|
847
|
+
}, better_auth454.$strip>;
|
|
823
848
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
824
849
|
session: {
|
|
825
|
-
user:
|
|
826
|
-
session:
|
|
850
|
+
user: better_auth_plugins17.UserWithRole;
|
|
851
|
+
session: better_auth454.Session;
|
|
827
852
|
};
|
|
828
853
|
}>)[];
|
|
829
854
|
metadata: {
|
|
@@ -859,11 +884,11 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
859
884
|
method: "POST";
|
|
860
885
|
body: zod0.ZodObject<{
|
|
861
886
|
userId: zod0.ZodCoercedString<unknown>;
|
|
862
|
-
},
|
|
887
|
+
}, better_auth454.$strip>;
|
|
863
888
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
864
889
|
session: {
|
|
865
|
-
user:
|
|
866
|
-
session:
|
|
890
|
+
user: better_auth_plugins17.UserWithRole;
|
|
891
|
+
session: better_auth454.Session;
|
|
867
892
|
};
|
|
868
893
|
}>)[];
|
|
869
894
|
metadata: {
|
|
@@ -900,11 +925,11 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
900
925
|
body: zod0.ZodObject<{
|
|
901
926
|
newPassword: zod0.ZodString;
|
|
902
927
|
userId: zod0.ZodCoercedString<unknown>;
|
|
903
|
-
},
|
|
928
|
+
}, better_auth454.$strip>;
|
|
904
929
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
905
930
|
session: {
|
|
906
|
-
user:
|
|
907
|
-
session:
|
|
931
|
+
user: better_auth_plugins17.UserWithRole;
|
|
932
|
+
session: better_auth454.Session;
|
|
908
933
|
};
|
|
909
934
|
}>)[];
|
|
910
935
|
metadata: {
|
|
@@ -941,13 +966,13 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
941
966
|
body: zod0.ZodIntersection<zod0.ZodObject<{
|
|
942
967
|
userId: zod0.ZodOptional<zod0.ZodCoercedString<unknown>>;
|
|
943
968
|
role: zod0.ZodOptional<zod0.ZodString>;
|
|
944
|
-
},
|
|
969
|
+
}, better_auth454.$strip>, zod0.ZodUnion<readonly [zod0.ZodObject<{
|
|
945
970
|
permission: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
|
|
946
971
|
permissions: zod0.ZodUndefined;
|
|
947
|
-
},
|
|
972
|
+
}, better_auth454.$strip>, zod0.ZodObject<{
|
|
948
973
|
permission: zod0.ZodUndefined;
|
|
949
974
|
permissions: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
|
|
950
|
-
},
|
|
975
|
+
}, better_auth454.$strip>]>>;
|
|
951
976
|
metadata: {
|
|
952
977
|
openapi: {
|
|
953
978
|
description: string;
|
|
@@ -997,14 +1022,14 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
997
1022
|
$Infer: {
|
|
998
1023
|
body: ({
|
|
999
1024
|
permission: {
|
|
1000
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
1001
|
-
readonly session?: ("
|
|
1025
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
1026
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1002
1027
|
};
|
|
1003
1028
|
permissions?: never | undefined;
|
|
1004
1029
|
} | {
|
|
1005
1030
|
permissions: {
|
|
1006
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
1007
|
-
readonly session?: ("
|
|
1031
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
1032
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1008
1033
|
};
|
|
1009
1034
|
permission?: never | undefined;
|
|
1010
1035
|
}) & {
|
|
@@ -1040,6 +1065,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1040
1065
|
readonly YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS: "You are not allowed to update users";
|
|
1041
1066
|
readonly YOU_CANNOT_REMOVE_YOURSELF: "You cannot remove yourself";
|
|
1042
1067
|
readonly YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: "You are not allowed to set a non-existent role value";
|
|
1068
|
+
readonly YOU_CANNOT_IMPERSONATE_ADMINS: "You cannot impersonate admins";
|
|
1043
1069
|
};
|
|
1044
1070
|
schema: {
|
|
1045
1071
|
user: {
|
|
@@ -1082,14 +1108,14 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1082
1108
|
admin: {
|
|
1083
1109
|
checkRolePermission: <R extends "user" | "admin">(data: ({
|
|
1084
1110
|
permission: {
|
|
1085
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
1086
|
-
readonly session?: ("
|
|
1111
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
1112
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1087
1113
|
};
|
|
1088
1114
|
permissions?: never | undefined;
|
|
1089
1115
|
} | {
|
|
1090
1116
|
permissions: {
|
|
1091
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
1092
|
-
readonly session?: ("
|
|
1117
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
1118
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1093
1119
|
};
|
|
1094
1120
|
permission?: never | undefined;
|
|
1095
1121
|
}) & {
|
|
@@ -1103,8 +1129,8 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1103
1129
|
};
|
|
1104
1130
|
} | {
|
|
1105
1131
|
id: "organization";
|
|
1106
|
-
$InferServerPlugin:
|
|
1107
|
-
ac:
|
|
1132
|
+
$InferServerPlugin: better_auth_client35.OrganizationPlugin<{
|
|
1133
|
+
ac: better_auth_client35.AccessControl<{
|
|
1108
1134
|
readonly organization: readonly ["update", "delete"];
|
|
1109
1135
|
readonly member: readonly ["create", "update", "delete"];
|
|
1110
1136
|
readonly invitation: readonly ["create", "cancel"];
|
|
@@ -1112,9 +1138,9 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1112
1138
|
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
1113
1139
|
}>;
|
|
1114
1140
|
roles: {
|
|
1115
|
-
admin:
|
|
1116
|
-
member:
|
|
1117
|
-
owner:
|
|
1141
|
+
admin: better_auth_client35.Role;
|
|
1142
|
+
member: better_auth_client35.Role;
|
|
1143
|
+
owner: better_auth_client35.Role;
|
|
1118
1144
|
};
|
|
1119
1145
|
teams: {
|
|
1120
1146
|
enabled: false;
|
|
@@ -1122,27 +1148,27 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1122
1148
|
schema: {
|
|
1123
1149
|
organization?: {
|
|
1124
1150
|
additionalFields?: {
|
|
1125
|
-
[key: string]:
|
|
1151
|
+
[key: string]: better_auth454.DBFieldAttribute;
|
|
1126
1152
|
};
|
|
1127
1153
|
};
|
|
1128
1154
|
member?: {
|
|
1129
1155
|
additionalFields?: {
|
|
1130
|
-
[key: string]:
|
|
1156
|
+
[key: string]: better_auth454.DBFieldAttribute;
|
|
1131
1157
|
};
|
|
1132
1158
|
};
|
|
1133
1159
|
invitation?: {
|
|
1134
1160
|
additionalFields?: {
|
|
1135
|
-
[key: string]:
|
|
1161
|
+
[key: string]: better_auth454.DBFieldAttribute;
|
|
1136
1162
|
};
|
|
1137
1163
|
};
|
|
1138
1164
|
team?: {
|
|
1139
1165
|
additionalFields?: {
|
|
1140
|
-
[key: string]:
|
|
1166
|
+
[key: string]: better_auth454.DBFieldAttribute;
|
|
1141
1167
|
};
|
|
1142
1168
|
};
|
|
1143
1169
|
organizationRole?: {
|
|
1144
1170
|
additionalFields?: {
|
|
1145
|
-
[key: string]:
|
|
1171
|
+
[key: string]: better_auth454.DBFieldAttribute;
|
|
1146
1172
|
};
|
|
1147
1173
|
};
|
|
1148
1174
|
} | undefined;
|
|
@@ -1150,7 +1176,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1150
1176
|
enabled: false;
|
|
1151
1177
|
};
|
|
1152
1178
|
}>;
|
|
1153
|
-
getActions: ($fetch:
|
|
1179
|
+
getActions: ($fetch: _better_fetch_fetch266.BetterFetch, _$store: better_auth454.ClientStore, co: BetterAuthClientOptions | undefined) => {
|
|
1154
1180
|
$Infer: {
|
|
1155
1181
|
ActiveOrganization: {
|
|
1156
1182
|
members: {
|
|
@@ -1171,7 +1197,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1171
1197
|
organizationId: string;
|
|
1172
1198
|
email: string;
|
|
1173
1199
|
role: "admin" | "member" | "owner";
|
|
1174
|
-
status:
|
|
1200
|
+
status: better_auth_client35.InvitationStatus;
|
|
1175
1201
|
inviterId: string;
|
|
1176
1202
|
expiresAt: Date;
|
|
1177
1203
|
createdAt: Date;
|
|
@@ -1197,7 +1223,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1197
1223
|
organizationId: string;
|
|
1198
1224
|
email: string;
|
|
1199
1225
|
role: "admin" | "member" | "owner";
|
|
1200
|
-
status:
|
|
1226
|
+
status: better_auth_client35.InvitationStatus;
|
|
1201
1227
|
inviterId: string;
|
|
1202
1228
|
expiresAt: Date;
|
|
1203
1229
|
createdAt: Date;
|
|
@@ -1227,19 +1253,19 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1227
1253
|
checkRolePermission: <R extends "admin" | "member" | "owner">(data: ({
|
|
1228
1254
|
permission: {
|
|
1229
1255
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1230
|
-
readonly member?: ("
|
|
1231
|
-
readonly invitation?: ("
|
|
1232
|
-
readonly team?: ("
|
|
1233
|
-
readonly ac?: ("
|
|
1256
|
+
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
1257
|
+
readonly invitation?: ("cancel" | "create")[] | undefined;
|
|
1258
|
+
readonly team?: ("delete" | "create" | "update")[] | undefined;
|
|
1259
|
+
readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
|
|
1234
1260
|
};
|
|
1235
1261
|
permissions?: never | undefined;
|
|
1236
1262
|
} | {
|
|
1237
1263
|
permissions: {
|
|
1238
1264
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1239
|
-
readonly member?: ("
|
|
1240
|
-
readonly invitation?: ("
|
|
1241
|
-
readonly team?: ("
|
|
1242
|
-
readonly ac?: ("
|
|
1265
|
+
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
1266
|
+
readonly invitation?: ("cancel" | "create")[] | undefined;
|
|
1267
|
+
readonly team?: ("delete" | "create" | "update")[] | undefined;
|
|
1268
|
+
readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
|
|
1243
1269
|
};
|
|
1244
1270
|
permission?: never | undefined;
|
|
1245
1271
|
}) & {
|
|
@@ -1247,13 +1273,13 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1247
1273
|
}) => boolean;
|
|
1248
1274
|
};
|
|
1249
1275
|
};
|
|
1250
|
-
getAtoms: ($fetch:
|
|
1251
|
-
$listOrg:
|
|
1252
|
-
$activeOrgSignal:
|
|
1253
|
-
$activeMemberSignal:
|
|
1254
|
-
$activeMemberRoleSignal:
|
|
1255
|
-
activeOrganization:
|
|
1256
|
-
data:
|
|
1276
|
+
getAtoms: ($fetch: _better_fetch_fetch266.BetterFetch) => {
|
|
1277
|
+
$listOrg: nanostores7.PreinitializedWritableAtom<boolean> & object;
|
|
1278
|
+
$activeOrgSignal: nanostores7.PreinitializedWritableAtom<boolean> & object;
|
|
1279
|
+
$activeMemberSignal: nanostores7.PreinitializedWritableAtom<boolean> & object;
|
|
1280
|
+
$activeMemberRoleSignal: nanostores7.PreinitializedWritableAtom<boolean> & object;
|
|
1281
|
+
activeOrganization: nanostores7.PreinitializedWritableAtom<{
|
|
1282
|
+
data: better_auth454.Prettify<{
|
|
1257
1283
|
id: string;
|
|
1258
1284
|
name: string;
|
|
1259
1285
|
slug: string;
|
|
@@ -1279,20 +1305,20 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1279
1305
|
organizationId: string;
|
|
1280
1306
|
email: string;
|
|
1281
1307
|
role: "admin" | "member" | "owner";
|
|
1282
|
-
status:
|
|
1308
|
+
status: better_auth_client35.InvitationStatus;
|
|
1283
1309
|
inviterId: string;
|
|
1284
1310
|
expiresAt: Date;
|
|
1285
1311
|
createdAt: Date;
|
|
1286
1312
|
}[];
|
|
1287
1313
|
}> | null;
|
|
1288
|
-
error: null |
|
|
1314
|
+
error: null | _better_fetch_fetch266.BetterFetchError;
|
|
1289
1315
|
isPending: boolean;
|
|
1290
1316
|
isRefetching: boolean;
|
|
1291
1317
|
refetch: (queryParams?: {
|
|
1292
|
-
query?:
|
|
1318
|
+
query?: better_auth454.SessionQueryParams;
|
|
1293
1319
|
} | undefined) => Promise<void>;
|
|
1294
1320
|
}> & object;
|
|
1295
|
-
listOrganizations:
|
|
1321
|
+
listOrganizations: nanostores7.PreinitializedWritableAtom<{
|
|
1296
1322
|
data: {
|
|
1297
1323
|
id: string;
|
|
1298
1324
|
name: string;
|
|
@@ -1301,14 +1327,14 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1301
1327
|
logo?: string | null | undefined | undefined;
|
|
1302
1328
|
metadata?: any;
|
|
1303
1329
|
}[] | null;
|
|
1304
|
-
error: null |
|
|
1330
|
+
error: null | _better_fetch_fetch266.BetterFetchError;
|
|
1305
1331
|
isPending: boolean;
|
|
1306
1332
|
isRefetching: boolean;
|
|
1307
1333
|
refetch: (queryParams?: {
|
|
1308
|
-
query?:
|
|
1334
|
+
query?: better_auth454.SessionQueryParams;
|
|
1309
1335
|
} | undefined) => Promise<void>;
|
|
1310
1336
|
}> & object;
|
|
1311
|
-
activeMember:
|
|
1337
|
+
activeMember: nanostores7.PreinitializedWritableAtom<{
|
|
1312
1338
|
data: {
|
|
1313
1339
|
id: string;
|
|
1314
1340
|
organizationId: string;
|
|
@@ -1316,22 +1342,22 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1316
1342
|
role: string;
|
|
1317
1343
|
createdAt: Date;
|
|
1318
1344
|
} | null;
|
|
1319
|
-
error: null |
|
|
1345
|
+
error: null | _better_fetch_fetch266.BetterFetchError;
|
|
1320
1346
|
isPending: boolean;
|
|
1321
1347
|
isRefetching: boolean;
|
|
1322
1348
|
refetch: (queryParams?: {
|
|
1323
|
-
query?:
|
|
1349
|
+
query?: better_auth454.SessionQueryParams;
|
|
1324
1350
|
} | undefined) => Promise<void>;
|
|
1325
1351
|
}> & object;
|
|
1326
|
-
activeMemberRole:
|
|
1352
|
+
activeMemberRole: nanostores7.PreinitializedWritableAtom<{
|
|
1327
1353
|
data: {
|
|
1328
1354
|
role: string;
|
|
1329
1355
|
} | null;
|
|
1330
|
-
error: null |
|
|
1356
|
+
error: null | _better_fetch_fetch266.BetterFetchError;
|
|
1331
1357
|
isPending: boolean;
|
|
1332
1358
|
isRefetching: boolean;
|
|
1333
1359
|
refetch: (queryParams?: {
|
|
1334
|
-
query?:
|
|
1360
|
+
query?: better_auth454.SessionQueryParams;
|
|
1335
1361
|
} | undefined) => Promise<void>;
|
|
1336
1362
|
}> & object;
|
|
1337
1363
|
};
|
|
@@ -1357,13 +1383,13 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1357
1383
|
})[];
|
|
1358
1384
|
} | {
|
|
1359
1385
|
id: "email-otp";
|
|
1360
|
-
$InferServerPlugin: {
|
|
1386
|
+
$InferServerPlugin: ReturnType<(options: better_auth_plugins17.EmailOTPOptions) => {
|
|
1361
1387
|
id: "email-otp";
|
|
1362
|
-
init(ctx:
|
|
1388
|
+
init(ctx: better_auth454.AuthContext): {
|
|
1363
1389
|
options: {
|
|
1364
1390
|
emailVerification: {
|
|
1365
1391
|
sendVerificationEmail(data: {
|
|
1366
|
-
user:
|
|
1392
|
+
user: better_auth454.User;
|
|
1367
1393
|
url: string;
|
|
1368
1394
|
token: string;
|
|
1369
1395
|
}, request: Request | undefined): Promise<void>;
|
|
@@ -1380,7 +1406,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1380
1406
|
"email-verification": "email-verification";
|
|
1381
1407
|
"forget-password": "forget-password";
|
|
1382
1408
|
}>;
|
|
1383
|
-
},
|
|
1409
|
+
}, better_auth454.$strip>;
|
|
1384
1410
|
metadata: {
|
|
1385
1411
|
openapi: {
|
|
1386
1412
|
operationId: string;
|
|
@@ -1418,7 +1444,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1418
1444
|
"email-verification": "email-verification";
|
|
1419
1445
|
"forget-password": "forget-password";
|
|
1420
1446
|
}>;
|
|
1421
|
-
},
|
|
1447
|
+
}, better_auth454.$strip>;
|
|
1422
1448
|
metadata: {
|
|
1423
1449
|
SERVER_ONLY: true;
|
|
1424
1450
|
openapi: {
|
|
@@ -1450,7 +1476,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1450
1476
|
"email-verification": "email-verification";
|
|
1451
1477
|
"forget-password": "forget-password";
|
|
1452
1478
|
}>;
|
|
1453
|
-
},
|
|
1479
|
+
}, better_auth454.$strip>;
|
|
1454
1480
|
metadata: {
|
|
1455
1481
|
SERVER_ONLY: true;
|
|
1456
1482
|
openapi: {
|
|
@@ -1495,7 +1521,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1495
1521
|
"forget-password": "forget-password";
|
|
1496
1522
|
}>;
|
|
1497
1523
|
otp: zod0.ZodString;
|
|
1498
|
-
},
|
|
1524
|
+
}, better_auth454.$strip>;
|
|
1499
1525
|
metadata: {
|
|
1500
1526
|
openapi: {
|
|
1501
1527
|
operationId: string;
|
|
@@ -1529,7 +1555,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1529
1555
|
body: zod0.ZodObject<{
|
|
1530
1556
|
email: zod0.ZodString;
|
|
1531
1557
|
otp: zod0.ZodString;
|
|
1532
|
-
},
|
|
1558
|
+
}, better_auth454.$strip>;
|
|
1533
1559
|
metadata: {
|
|
1534
1560
|
openapi: {
|
|
1535
1561
|
description: string;
|
|
@@ -1595,7 +1621,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1595
1621
|
body: zod0.ZodObject<{
|
|
1596
1622
|
email: zod0.ZodString;
|
|
1597
1623
|
otp: zod0.ZodString;
|
|
1598
|
-
},
|
|
1624
|
+
}, better_auth454.$strip>;
|
|
1599
1625
|
metadata: {
|
|
1600
1626
|
openapi: {
|
|
1601
1627
|
operationId: string;
|
|
@@ -1642,7 +1668,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1642
1668
|
method: "POST";
|
|
1643
1669
|
body: zod0.ZodObject<{
|
|
1644
1670
|
email: zod0.ZodString;
|
|
1645
|
-
},
|
|
1671
|
+
}, better_auth454.$strip>;
|
|
1646
1672
|
metadata: {
|
|
1647
1673
|
openapi: {
|
|
1648
1674
|
operationId: string;
|
|
@@ -1678,7 +1704,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1678
1704
|
email: zod0.ZodString;
|
|
1679
1705
|
otp: zod0.ZodString;
|
|
1680
1706
|
password: zod0.ZodString;
|
|
1681
|
-
},
|
|
1707
|
+
}, better_auth454.$strip>;
|
|
1682
1708
|
metadata: {
|
|
1683
1709
|
openapi: {
|
|
1684
1710
|
operationId: string;
|
|
@@ -1710,7 +1736,7 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1710
1736
|
};
|
|
1711
1737
|
hooks: {
|
|
1712
1738
|
after: {
|
|
1713
|
-
matcher(context:
|
|
1739
|
+
matcher(context: better_auth454.HookEndpointContext): boolean;
|
|
1714
1740
|
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
|
|
1715
1741
|
}[];
|
|
1716
1742
|
};
|
|
@@ -1736,496 +1762,11 @@ declare const supportedBetterAuthClientPlugins: ({
|
|
|
1736
1762
|
window: number;
|
|
1737
1763
|
max: number;
|
|
1738
1764
|
})[];
|
|
1739
|
-
};
|
|
1740
|
-
atomListeners: {
|
|
1741
|
-
matcher: (path: string) => path is "/email-otp/verify-email" | "/sign-in/email-otp";
|
|
1742
|
-
signal: "$sessionSignal";
|
|
1743
|
-
}[];
|
|
1744
|
-
} | {
|
|
1745
|
-
id: "anonymous";
|
|
1746
|
-
$InferServerPlugin: ReturnType<(options?: better_auth_client_plugins7.AnonymousOptions | undefined) => {
|
|
1747
|
-
id: "anonymous";
|
|
1748
|
-
endpoints: {
|
|
1749
|
-
signInAnonymous: better_call0.StrictEndpoint<"/sign-in/anonymous", {
|
|
1750
|
-
method: "POST";
|
|
1751
|
-
metadata: {
|
|
1752
|
-
openapi: {
|
|
1753
|
-
description: string;
|
|
1754
|
-
responses: {
|
|
1755
|
-
200: {
|
|
1756
|
-
description: string;
|
|
1757
|
-
content: {
|
|
1758
|
-
"application/json": {
|
|
1759
|
-
schema: {
|
|
1760
|
-
type: "object";
|
|
1761
|
-
properties: {
|
|
1762
|
-
user: {
|
|
1763
|
-
$ref: string;
|
|
1764
|
-
};
|
|
1765
|
-
session: {
|
|
1766
|
-
$ref: string;
|
|
1767
|
-
};
|
|
1768
|
-
};
|
|
1769
|
-
};
|
|
1770
|
-
};
|
|
1771
|
-
};
|
|
1772
|
-
};
|
|
1773
|
-
};
|
|
1774
|
-
};
|
|
1775
|
-
};
|
|
1776
|
-
} & {
|
|
1777
|
-
use: any[];
|
|
1778
|
-
}, {
|
|
1779
|
-
token: string;
|
|
1780
|
-
user: {
|
|
1781
|
-
id: string;
|
|
1782
|
-
email: string;
|
|
1783
|
-
emailVerified: boolean;
|
|
1784
|
-
name: string;
|
|
1785
|
-
createdAt: Date;
|
|
1786
|
-
updatedAt: Date;
|
|
1787
|
-
};
|
|
1788
|
-
} | null>;
|
|
1789
|
-
};
|
|
1790
|
-
hooks: {
|
|
1791
|
-
after: {
|
|
1792
|
-
matcher(ctx: better_auth220.HookEndpointContext): boolean;
|
|
1793
|
-
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
|
|
1794
|
-
}[];
|
|
1795
|
-
};
|
|
1796
|
-
schema: {
|
|
1797
|
-
user: {
|
|
1798
|
-
fields: {
|
|
1799
|
-
isAnonymous: {
|
|
1800
|
-
type: "boolean";
|
|
1801
|
-
required: false;
|
|
1802
|
-
input: false;
|
|
1803
|
-
defaultValue: false;
|
|
1804
|
-
};
|
|
1805
|
-
};
|
|
1806
|
-
};
|
|
1807
|
-
};
|
|
1808
|
-
$ERROR_CODES: {
|
|
1809
|
-
readonly INVALID_EMAIL_FORMAT: "Email was not generated in a valid format";
|
|
1810
|
-
readonly FAILED_TO_CREATE_USER: "Failed to create user";
|
|
1811
|
-
readonly COULD_NOT_CREATE_SESSION: "Could not create session";
|
|
1812
|
-
readonly ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY: "Anonymous users cannot sign in again anonymously";
|
|
1813
|
-
};
|
|
1814
|
-
}>;
|
|
1815
|
-
pathMethods: {
|
|
1816
|
-
"/sign-in/anonymous": "POST";
|
|
1817
|
-
};
|
|
1818
|
-
atomListeners: {
|
|
1819
|
-
matcher: (path: string) => path is "/sign-in/anonymous";
|
|
1820
|
-
signal: "$sessionSignal";
|
|
1821
|
-
}[];
|
|
1822
|
-
} | {
|
|
1823
|
-
id: "phoneNumber";
|
|
1824
|
-
$InferServerPlugin: ReturnType<(options?: better_auth_client_plugins7.PhoneNumberOptions | undefined) => {
|
|
1825
|
-
id: "phone-number";
|
|
1826
|
-
hooks: {
|
|
1827
|
-
before: {
|
|
1828
|
-
matcher: (ctx: better_auth220.HookEndpointContext) => boolean;
|
|
1829
|
-
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<never>;
|
|
1830
|
-
}[];
|
|
1831
|
-
};
|
|
1832
|
-
endpoints: {
|
|
1833
|
-
signInPhoneNumber: better_call0.StrictEndpoint<"/sign-in/phone-number", {
|
|
1834
|
-
method: "POST";
|
|
1835
|
-
body: zod0.ZodObject<{
|
|
1836
|
-
phoneNumber: zod0.ZodString;
|
|
1837
|
-
password: zod0.ZodString;
|
|
1838
|
-
rememberMe: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1839
|
-
}, better_auth220.$strip>;
|
|
1840
|
-
metadata: {
|
|
1841
|
-
openapi: {
|
|
1842
|
-
summary: string;
|
|
1843
|
-
description: string;
|
|
1844
|
-
responses: {
|
|
1845
|
-
200: {
|
|
1846
|
-
description: string;
|
|
1847
|
-
content: {
|
|
1848
|
-
"application/json": {
|
|
1849
|
-
schema: {
|
|
1850
|
-
type: "object";
|
|
1851
|
-
properties: {
|
|
1852
|
-
user: {
|
|
1853
|
-
$ref: string;
|
|
1854
|
-
};
|
|
1855
|
-
session: {
|
|
1856
|
-
$ref: string;
|
|
1857
|
-
};
|
|
1858
|
-
};
|
|
1859
|
-
};
|
|
1860
|
-
};
|
|
1861
|
-
};
|
|
1862
|
-
};
|
|
1863
|
-
400: {
|
|
1864
|
-
description: string;
|
|
1865
|
-
};
|
|
1866
|
-
};
|
|
1867
|
-
};
|
|
1868
|
-
};
|
|
1869
|
-
} & {
|
|
1870
|
-
use: any[];
|
|
1871
|
-
}, {
|
|
1872
|
-
token: string;
|
|
1873
|
-
user: better_auth_client_plugins7.UserWithPhoneNumber;
|
|
1874
|
-
}>;
|
|
1875
|
-
sendPhoneNumberOTP: better_call0.StrictEndpoint<"/phone-number/send-otp", {
|
|
1876
|
-
method: "POST";
|
|
1877
|
-
body: zod0.ZodObject<{
|
|
1878
|
-
phoneNumber: zod0.ZodString;
|
|
1879
|
-
}, better_auth220.$strip>;
|
|
1880
|
-
metadata: {
|
|
1881
|
-
openapi: {
|
|
1882
|
-
summary: string;
|
|
1883
|
-
description: string;
|
|
1884
|
-
responses: {
|
|
1885
|
-
200: {
|
|
1886
|
-
description: string;
|
|
1887
|
-
content: {
|
|
1888
|
-
"application/json": {
|
|
1889
|
-
schema: {
|
|
1890
|
-
type: "object";
|
|
1891
|
-
properties: {
|
|
1892
|
-
message: {
|
|
1893
|
-
type: string;
|
|
1894
|
-
};
|
|
1895
|
-
};
|
|
1896
|
-
};
|
|
1897
|
-
};
|
|
1898
|
-
};
|
|
1899
|
-
};
|
|
1900
|
-
};
|
|
1901
|
-
};
|
|
1902
|
-
};
|
|
1903
|
-
} & {
|
|
1904
|
-
use: any[];
|
|
1905
|
-
}, {
|
|
1906
|
-
message: string;
|
|
1907
|
-
}>;
|
|
1908
|
-
verifyPhoneNumber: better_call0.StrictEndpoint<"/phone-number/verify", {
|
|
1909
|
-
method: "POST";
|
|
1910
|
-
body: zod0.ZodObject<{
|
|
1911
|
-
phoneNumber: zod0.ZodString;
|
|
1912
|
-
code: zod0.ZodString;
|
|
1913
|
-
disableSession: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1914
|
-
updatePhoneNumber: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1915
|
-
}, better_auth220.$strip>;
|
|
1916
|
-
metadata: {
|
|
1917
|
-
openapi: {
|
|
1918
|
-
summary: string;
|
|
1919
|
-
description: string;
|
|
1920
|
-
responses: {
|
|
1921
|
-
"200": {
|
|
1922
|
-
description: string;
|
|
1923
|
-
content: {
|
|
1924
|
-
"application/json": {
|
|
1925
|
-
schema: {
|
|
1926
|
-
type: "object";
|
|
1927
|
-
properties: {
|
|
1928
|
-
status: {
|
|
1929
|
-
type: string;
|
|
1930
|
-
description: string;
|
|
1931
|
-
enum: boolean[];
|
|
1932
|
-
};
|
|
1933
|
-
token: {
|
|
1934
|
-
type: string;
|
|
1935
|
-
nullable: boolean;
|
|
1936
|
-
description: string;
|
|
1937
|
-
};
|
|
1938
|
-
user: {
|
|
1939
|
-
type: string;
|
|
1940
|
-
nullable: boolean;
|
|
1941
|
-
properties: {
|
|
1942
|
-
id: {
|
|
1943
|
-
type: string;
|
|
1944
|
-
description: string;
|
|
1945
|
-
};
|
|
1946
|
-
email: {
|
|
1947
|
-
type: string;
|
|
1948
|
-
format: string;
|
|
1949
|
-
nullable: boolean;
|
|
1950
|
-
description: string;
|
|
1951
|
-
};
|
|
1952
|
-
emailVerified: {
|
|
1953
|
-
type: string;
|
|
1954
|
-
nullable: boolean;
|
|
1955
|
-
description: string;
|
|
1956
|
-
};
|
|
1957
|
-
name: {
|
|
1958
|
-
type: string;
|
|
1959
|
-
nullable: boolean;
|
|
1960
|
-
description: string;
|
|
1961
|
-
};
|
|
1962
|
-
image: {
|
|
1963
|
-
type: string;
|
|
1964
|
-
format: string;
|
|
1965
|
-
nullable: boolean;
|
|
1966
|
-
description: string;
|
|
1967
|
-
};
|
|
1968
|
-
phoneNumber: {
|
|
1969
|
-
type: string;
|
|
1970
|
-
description: string;
|
|
1971
|
-
};
|
|
1972
|
-
phoneNumberVerified: {
|
|
1973
|
-
type: string;
|
|
1974
|
-
description: string;
|
|
1975
|
-
};
|
|
1976
|
-
createdAt: {
|
|
1977
|
-
type: string;
|
|
1978
|
-
format: string;
|
|
1979
|
-
description: string;
|
|
1980
|
-
};
|
|
1981
|
-
updatedAt: {
|
|
1982
|
-
type: string;
|
|
1983
|
-
format: string;
|
|
1984
|
-
description: string;
|
|
1985
|
-
};
|
|
1986
|
-
};
|
|
1987
|
-
required: string[];
|
|
1988
|
-
description: string;
|
|
1989
|
-
};
|
|
1990
|
-
};
|
|
1991
|
-
required: string[];
|
|
1992
|
-
};
|
|
1993
|
-
};
|
|
1994
|
-
};
|
|
1995
|
-
};
|
|
1996
|
-
400: {
|
|
1997
|
-
description: string;
|
|
1998
|
-
};
|
|
1999
|
-
};
|
|
2000
|
-
};
|
|
2001
|
-
};
|
|
2002
|
-
} & {
|
|
2003
|
-
use: any[];
|
|
2004
|
-
}, {
|
|
2005
|
-
status: boolean;
|
|
2006
|
-
token: string;
|
|
2007
|
-
user: better_auth_client_plugins7.UserWithPhoneNumber;
|
|
2008
|
-
} | {
|
|
2009
|
-
status: boolean;
|
|
2010
|
-
token: null;
|
|
2011
|
-
user: better_auth_client_plugins7.UserWithPhoneNumber;
|
|
2012
|
-
}>;
|
|
2013
|
-
requestPasswordResetPhoneNumber: better_call0.StrictEndpoint<"/phone-number/request-password-reset", {
|
|
2014
|
-
method: "POST";
|
|
2015
|
-
body: zod0.ZodObject<{
|
|
2016
|
-
phoneNumber: zod0.ZodString;
|
|
2017
|
-
}, better_auth220.$strip>;
|
|
2018
|
-
metadata: {
|
|
2019
|
-
openapi: {
|
|
2020
|
-
description: string;
|
|
2021
|
-
responses: {
|
|
2022
|
-
"200": {
|
|
2023
|
-
description: string;
|
|
2024
|
-
content: {
|
|
2025
|
-
"application/json": {
|
|
2026
|
-
schema: {
|
|
2027
|
-
type: "object";
|
|
2028
|
-
properties: {
|
|
2029
|
-
status: {
|
|
2030
|
-
type: string;
|
|
2031
|
-
description: string;
|
|
2032
|
-
enum: boolean[];
|
|
2033
|
-
};
|
|
2034
|
-
};
|
|
2035
|
-
required: string[];
|
|
2036
|
-
};
|
|
2037
|
-
};
|
|
2038
|
-
};
|
|
2039
|
-
};
|
|
2040
|
-
};
|
|
2041
|
-
};
|
|
2042
|
-
};
|
|
2043
|
-
} & {
|
|
2044
|
-
use: any[];
|
|
2045
|
-
}, {
|
|
2046
|
-
status: boolean;
|
|
2047
|
-
}>;
|
|
2048
|
-
resetPasswordPhoneNumber: better_call0.StrictEndpoint<"/phone-number/reset-password", {
|
|
2049
|
-
method: "POST";
|
|
2050
|
-
body: zod0.ZodObject<{
|
|
2051
|
-
otp: zod0.ZodString;
|
|
2052
|
-
phoneNumber: zod0.ZodString;
|
|
2053
|
-
newPassword: zod0.ZodString;
|
|
2054
|
-
}, better_auth220.$strip>;
|
|
2055
|
-
metadata: {
|
|
2056
|
-
openapi: {
|
|
2057
|
-
description: string;
|
|
2058
|
-
responses: {
|
|
2059
|
-
"200": {
|
|
2060
|
-
description: string;
|
|
2061
|
-
content: {
|
|
2062
|
-
"application/json": {
|
|
2063
|
-
schema: {
|
|
2064
|
-
type: "object";
|
|
2065
|
-
properties: {
|
|
2066
|
-
status: {
|
|
2067
|
-
type: string;
|
|
2068
|
-
description: string;
|
|
2069
|
-
enum: boolean[];
|
|
2070
|
-
};
|
|
2071
|
-
};
|
|
2072
|
-
required: string[];
|
|
2073
|
-
};
|
|
2074
|
-
};
|
|
2075
|
-
};
|
|
2076
|
-
};
|
|
2077
|
-
};
|
|
2078
|
-
};
|
|
2079
|
-
};
|
|
2080
|
-
} & {
|
|
2081
|
-
use: any[];
|
|
2082
|
-
}, {
|
|
2083
|
-
status: boolean;
|
|
2084
|
-
}>;
|
|
2085
|
-
};
|
|
2086
|
-
schema: {
|
|
2087
|
-
user: {
|
|
2088
|
-
fields: {
|
|
2089
|
-
phoneNumber: {
|
|
2090
|
-
type: "string";
|
|
2091
|
-
required: false;
|
|
2092
|
-
unique: true;
|
|
2093
|
-
sortable: true;
|
|
2094
|
-
returned: true;
|
|
2095
|
-
};
|
|
2096
|
-
phoneNumberVerified: {
|
|
2097
|
-
type: "boolean";
|
|
2098
|
-
required: false;
|
|
2099
|
-
returned: true;
|
|
2100
|
-
input: false;
|
|
2101
|
-
};
|
|
2102
|
-
};
|
|
2103
|
-
};
|
|
2104
|
-
};
|
|
2105
|
-
rateLimit: {
|
|
2106
|
-
pathMatcher(path: string): boolean;
|
|
2107
|
-
window: number;
|
|
2108
|
-
max: number;
|
|
2109
|
-
}[];
|
|
2110
|
-
$ERROR_CODES: {
|
|
2111
|
-
readonly INVALID_PHONE_NUMBER: "Invalid phone number";
|
|
2112
|
-
readonly PHONE_NUMBER_EXIST: "Phone number already exists";
|
|
2113
|
-
readonly PHONE_NUMBER_NOT_EXIST: "phone number isn't registered";
|
|
2114
|
-
readonly INVALID_PHONE_NUMBER_OR_PASSWORD: "Invalid phone number or password";
|
|
2115
|
-
readonly UNEXPECTED_ERROR: "Unexpected error";
|
|
2116
|
-
readonly OTP_NOT_FOUND: "OTP not found";
|
|
2117
|
-
readonly OTP_EXPIRED: "OTP expired";
|
|
2118
|
-
readonly INVALID_OTP: "Invalid OTP";
|
|
2119
|
-
readonly PHONE_NUMBER_NOT_VERIFIED: "Phone number not verified";
|
|
2120
|
-
readonly PHONE_NUMBER_CANNOT_BE_UPDATED: "Phone number cannot be updated";
|
|
2121
|
-
readonly SEND_OTP_NOT_IMPLEMENTED: "sendOTP not implemented";
|
|
2122
|
-
readonly TOO_MANY_ATTEMPTS: "Too many attempts";
|
|
2123
|
-
};
|
|
2124
1765
|
}>;
|
|
2125
1766
|
atomListeners: {
|
|
2126
|
-
matcher(path: string)
|
|
1767
|
+
matcher: (path: string) => path is "/email-otp/verify-email" | "/sign-in/email-otp";
|
|
2127
1768
|
signal: "$sessionSignal";
|
|
2128
1769
|
}[];
|
|
2129
|
-
} | {
|
|
2130
|
-
id: "magic-link";
|
|
2131
|
-
$InferServerPlugin: {
|
|
2132
|
-
id: "magic-link";
|
|
2133
|
-
endpoints: {
|
|
2134
|
-
signInMagicLink: better_call0.StrictEndpoint<"/sign-in/magic-link", {
|
|
2135
|
-
method: "POST";
|
|
2136
|
-
requireHeaders: true;
|
|
2137
|
-
body: zod0.ZodObject<{
|
|
2138
|
-
email: zod0.ZodEmail;
|
|
2139
|
-
name: zod0.ZodOptional<zod0.ZodString>;
|
|
2140
|
-
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2141
|
-
newUserCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2142
|
-
errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2143
|
-
}, better_auth220.$strip>;
|
|
2144
|
-
metadata: {
|
|
2145
|
-
openapi: {
|
|
2146
|
-
operationId: string;
|
|
2147
|
-
description: string;
|
|
2148
|
-
responses: {
|
|
2149
|
-
200: {
|
|
2150
|
-
description: string;
|
|
2151
|
-
content: {
|
|
2152
|
-
"application/json": {
|
|
2153
|
-
schema: {
|
|
2154
|
-
type: "object";
|
|
2155
|
-
properties: {
|
|
2156
|
-
status: {
|
|
2157
|
-
type: string;
|
|
2158
|
-
};
|
|
2159
|
-
};
|
|
2160
|
-
};
|
|
2161
|
-
};
|
|
2162
|
-
};
|
|
2163
|
-
};
|
|
2164
|
-
};
|
|
2165
|
-
};
|
|
2166
|
-
};
|
|
2167
|
-
} & {
|
|
2168
|
-
use: any[];
|
|
2169
|
-
}, {
|
|
2170
|
-
status: boolean;
|
|
2171
|
-
}>;
|
|
2172
|
-
magicLinkVerify: better_call0.StrictEndpoint<"/magic-link/verify", {
|
|
2173
|
-
method: "GET";
|
|
2174
|
-
query: zod0.ZodObject<{
|
|
2175
|
-
token: zod0.ZodString;
|
|
2176
|
-
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2177
|
-
errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2178
|
-
newUserCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2179
|
-
}, better_auth220.$strip>;
|
|
2180
|
-
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>)[];
|
|
2181
|
-
requireHeaders: true;
|
|
2182
|
-
metadata: {
|
|
2183
|
-
openapi: {
|
|
2184
|
-
operationId: string;
|
|
2185
|
-
description: string;
|
|
2186
|
-
responses: {
|
|
2187
|
-
200: {
|
|
2188
|
-
description: string;
|
|
2189
|
-
content: {
|
|
2190
|
-
"application/json": {
|
|
2191
|
-
schema: {
|
|
2192
|
-
type: "object";
|
|
2193
|
-
properties: {
|
|
2194
|
-
session: {
|
|
2195
|
-
$ref: string;
|
|
2196
|
-
};
|
|
2197
|
-
user: {
|
|
2198
|
-
$ref: string;
|
|
2199
|
-
};
|
|
2200
|
-
};
|
|
2201
|
-
};
|
|
2202
|
-
};
|
|
2203
|
-
};
|
|
2204
|
-
};
|
|
2205
|
-
};
|
|
2206
|
-
};
|
|
2207
|
-
};
|
|
2208
|
-
} & {
|
|
2209
|
-
use: any[];
|
|
2210
|
-
}, {
|
|
2211
|
-
token: string;
|
|
2212
|
-
user: {
|
|
2213
|
-
id: string;
|
|
2214
|
-
email: string;
|
|
2215
|
-
emailVerified: boolean;
|
|
2216
|
-
name: string;
|
|
2217
|
-
image: string | null | undefined;
|
|
2218
|
-
createdAt: Date;
|
|
2219
|
-
updatedAt: Date;
|
|
2220
|
-
};
|
|
2221
|
-
}>;
|
|
2222
|
-
};
|
|
2223
|
-
rateLimit: {
|
|
2224
|
-
pathMatcher(path: string): boolean;
|
|
2225
|
-
window: number;
|
|
2226
|
-
max: number;
|
|
2227
|
-
}[];
|
|
2228
|
-
};
|
|
2229
1770
|
})[];
|
|
2230
1771
|
type SupportedBetterAuthClientPlugins = typeof supportedBetterAuthClientPlugins;
|
|
2231
1772
|
declare abstract class NeonAuthAdapterCore {
|
|
@@ -2240,8 +1781,15 @@ declare abstract class NeonAuthAdapterCore {
|
|
|
2240
1781
|
* See CLAUDE.md for architecture details and API mappings.
|
|
2241
1782
|
*/
|
|
2242
1783
|
constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
|
|
2243
|
-
abstract getBetterAuthInstance
|
|
2244
|
-
|
|
1784
|
+
abstract getBetterAuthInstance(): BetterAuthInstance;
|
|
1785
|
+
/**
|
|
1786
|
+
* Get JWT token for authenticated or anonymous access.
|
|
1787
|
+
* Single source of truth for token retrieval logic.
|
|
1788
|
+
*
|
|
1789
|
+
* @param allowAnonymous - When true, fetches anonymous token if no session exists
|
|
1790
|
+
* @returns JWT token string or null if unavailable
|
|
1791
|
+
*/
|
|
1792
|
+
getJWTToken(allowAnonymous: boolean): Promise<string | null>;
|
|
2245
1793
|
}
|
|
2246
1794
|
//#endregion
|
|
2247
|
-
export { NeonAuthAdapterCoreAuthOptions as n, SupportedBetterAuthClientPlugins as r, NeonAuthAdapterCore as t };
|
|
1795
|
+
export { TeamInput as C, UserWithRole as E, Team as S, TeamMemberInput as T, MemberInput as _, BetterAuthInstance as a, OrganizationRole as b, InferAdminRolesFromOption as c, InvitationStatus as d, JWKOptions as f, Member as g, JwtOptions as h, AdminOptions as i, Invitation as l, Jwk as m, NeonAuthAdapterCoreAuthOptions as n, BetterFetchError$1 as o, JWSAlgorithms as p, SupportedBetterAuthClientPlugins as r, EmailOTPOptions as s, NeonAuthAdapterCore as t, InvitationInput as u, Organization as v, TeamMember as w, SessionWithImpersonatedBy as x, OrganizationInput as y };
|