better-auth 1.4.7-beta.2 → 1.4.7-beta.4
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/api/index.d.mts +103 -221
- package/dist/api/index.mjs +1 -1
- package/dist/api/index.mjs.map +1 -1
- package/dist/api/routes/account.d.mts +11 -23
- package/dist/api/routes/callback.d.mts +3 -5
- package/dist/api/routes/email-verification.d.mts +4 -8
- package/dist/api/routes/error.d.mts +3 -5
- package/dist/api/routes/ok.d.mts +3 -5
- package/dist/api/routes/reset-password.d.mts +5 -11
- package/dist/api/routes/session.d.mts +17 -25
- package/dist/api/routes/session.mjs +8 -0
- package/dist/api/routes/session.mjs.map +1 -1
- package/dist/api/routes/sign-in.d.mts +3 -7
- package/dist/api/routes/sign-out.d.mts +2 -4
- package/dist/api/routes/sign-up.d.mts +2 -4
- package/dist/api/routes/update-user.d.mts +13 -28
- package/dist/api/routes/update-user.mjs +1 -2
- package/dist/api/routes/update-user.mjs.map +1 -1
- package/dist/api/to-auth-endpoints.mjs.map +1 -1
- package/dist/client/lynx/index.d.mts +1 -1
- package/dist/client/path-to-object.d.mts +4 -0
- package/dist/client/react/index.d.mts +1 -1
- package/dist/client/solid/index.d.mts +1 -1
- package/dist/client/svelte/index.d.mts +1 -1
- package/dist/client/vanilla.d.mts +15 -15
- package/dist/client/vue/index.d.mts +1 -1
- package/dist/cookies/index.mjs +2 -2
- package/dist/cookies/index.mjs.map +1 -1
- package/dist/db/field.d.mts +5 -5
- package/dist/integrations/next-js.d.mts +4 -4
- package/dist/integrations/svelte-kit.d.mts +2 -2
- package/dist/integrations/tanstack-start.d.mts +4 -4
- package/dist/plugins/admin/admin.d.mts +118 -147
- package/dist/plugins/admin/admin.mjs.map +1 -1
- package/dist/plugins/admin/error-codes.mjs +2 -1
- package/dist/plugins/admin/error-codes.mjs.map +1 -1
- package/dist/plugins/admin/routes.mjs +15 -1
- package/dist/plugins/admin/routes.mjs.map +1 -1
- package/dist/plugins/anonymous/index.d.mts +5 -7
- package/dist/plugins/api-key/index.d.mts +59 -79
- package/dist/plugins/api-key/routes/delete-all-expired-api-keys.mjs +1 -4
- package/dist/plugins/api-key/routes/delete-all-expired-api-keys.mjs.map +1 -1
- package/dist/plugins/api-key/routes/verify-api-key.mjs +26 -5
- package/dist/plugins/api-key/routes/verify-api-key.mjs.map +1 -1
- package/dist/plugins/bearer/index.d.mts +6 -6
- package/dist/plugins/captcha/index.d.mts +2 -2
- package/dist/plugins/custom-session/index.d.mts +3 -5
- package/dist/plugins/device-authorization/index.d.mts +9 -19
- package/dist/plugins/device-authorization/index.mjs +6 -5
- package/dist/plugins/device-authorization/index.mjs.map +1 -1
- package/dist/plugins/device-authorization/routes.mjs +1 -1
- package/dist/plugins/device-authorization/routes.mjs.map +1 -1
- package/dist/plugins/email-otp/index.d.mts +13 -31
- package/dist/plugins/email-otp/routes.mjs +26 -32
- package/dist/plugins/email-otp/routes.mjs.map +1 -1
- package/dist/plugins/generic-oauth/index.d.mts +6 -12
- package/dist/plugins/haveibeenpwned/index.d.mts +3 -3
- package/dist/plugins/jwt/client.d.mts +2 -2
- package/dist/plugins/jwt/index.d.mts +11 -21
- package/dist/plugins/jwt/index.mjs +7 -13
- package/dist/plugins/jwt/index.mjs.map +1 -1
- package/dist/plugins/jwt/utils.mjs +2 -2
- package/dist/plugins/jwt/utils.mjs.map +1 -1
- package/dist/plugins/last-login-method/index.d.mts +4 -4
- package/dist/plugins/magic-link/index.d.mts +4 -8
- package/dist/plugins/mcp/index.d.mts +13 -27
- package/dist/plugins/mcp/index.mjs +3 -3
- package/dist/plugins/mcp/index.mjs.map +1 -1
- package/dist/plugins/multi-session/index.d.mts +14 -20
- package/dist/plugins/oauth-proxy/index.d.mts +10 -12
- package/dist/plugins/oauth-proxy/index.mjs.map +1 -1
- package/dist/plugins/oidc-provider/index.d.mts +19 -35
- package/dist/plugins/oidc-provider/index.mjs +6 -4
- package/dist/plugins/oidc-provider/index.mjs.map +1 -1
- package/dist/plugins/one-tap/client.d.mts +4 -4
- package/dist/plugins/one-tap/index.d.mts +2 -4
- package/dist/plugins/one-time-token/index.d.mts +4 -8
- package/dist/plugins/open-api/generator.mjs +2 -2
- package/dist/plugins/open-api/generator.mjs.map +1 -1
- package/dist/plugins/open-api/index.d.mts +4 -8
- package/dist/plugins/open-api/index.mjs +3 -1
- package/dist/plugins/open-api/index.mjs.map +1 -1
- package/dist/plugins/organization/client.d.mts +17 -17
- package/dist/plugins/organization/organization.d.mts +3 -5
- package/dist/plugins/organization/routes/crud-access-control.d.mts +22 -32
- package/dist/plugins/organization/routes/crud-invites.d.mts +58 -72
- package/dist/plugins/organization/routes/crud-members.d.mts +62 -77
- package/dist/plugins/organization/routes/crud-members.mjs +1 -2
- package/dist/plugins/organization/routes/crud-members.mjs.map +1 -1
- package/dist/plugins/organization/routes/crud-org.d.mts +0 -14
- package/dist/plugins/organization/routes/crud-team.d.mts +76 -94
- package/dist/plugins/phone-number/index.d.mts +9 -19
- package/dist/plugins/siwe/index.d.mts +3 -7
- package/dist/plugins/two-factor/backup-codes/index.d.mts +1 -10
- package/dist/plugins/two-factor/backup-codes/index.mjs +2 -3
- package/dist/plugins/two-factor/backup-codes/index.mjs.map +1 -1
- package/dist/plugins/two-factor/index.d.mts +20 -44
- package/dist/plugins/two-factor/index.mjs.map +1 -1
- package/dist/plugins/two-factor/otp/index.d.mts +0 -4
- package/dist/plugins/two-factor/totp/index.d.mts +1 -8
- package/dist/plugins/two-factor/totp/index.mjs +12 -15
- package/dist/plugins/two-factor/totp/index.mjs.map +1 -1
- package/dist/plugins/username/index.d.mts +9 -13
- package/dist/plugins/username/schema.d.mts +3 -3
- package/dist/test-utils/test-instance.d.mts +1173 -1593
- package/dist/utils/hide-metadata.d.mts +1 -1
- package/dist/utils/hide-metadata.mjs +1 -1
- package/dist/utils/hide-metadata.mjs.map +1 -1
- package/dist/utils/time.d.mts +21 -0
- package/dist/utils/time.mjs +85 -44
- package/dist/utils/time.mjs.map +1 -1
- package/package.json +5 -6
package/dist/api/index.d.mts
CHANGED
|
@@ -25,7 +25,7 @@ import { AuthContext, BetterAuthOptions, BetterAuthPlugin } from "@better-auth/c
|
|
|
25
25
|
import { InternalLogger } from "@better-auth/core/env";
|
|
26
26
|
import * as _better_auth_core_oauth20 from "@better-auth/core/oauth2";
|
|
27
27
|
import * as zod0 from "zod";
|
|
28
|
-
import * as
|
|
28
|
+
import * as better_call4 from "better-call";
|
|
29
29
|
import { APIError } from "better-call";
|
|
30
30
|
import { AuthEndpoint, AuthMiddleware, createAuthEndpoint, createAuthMiddleware, optionsMiddleware } from "@better-auth/core/api";
|
|
31
31
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
@@ -34,7 +34,7 @@ import * as zod_v4_core0 from "zod/v4/core";
|
|
|
34
34
|
declare function checkEndpointConflicts(options: BetterAuthOptions, logger: InternalLogger): void;
|
|
35
35
|
declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<AuthContext> | AuthContext, options: Option): {
|
|
36
36
|
api: {
|
|
37
|
-
readonly ok:
|
|
37
|
+
readonly ok: better_call4.StrictEndpoint<"/ok", {
|
|
38
38
|
method: "GET";
|
|
39
39
|
metadata: {
|
|
40
40
|
openapi: {
|
|
@@ -59,14 +59,12 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
|
-
|
|
62
|
+
scope: "server";
|
|
63
63
|
};
|
|
64
|
-
} & {
|
|
65
|
-
use: any[];
|
|
66
64
|
}, {
|
|
67
65
|
ok: boolean;
|
|
68
66
|
}>;
|
|
69
|
-
readonly error:
|
|
67
|
+
readonly error: better_call4.StrictEndpoint<"/error", {
|
|
70
68
|
method: "GET";
|
|
71
69
|
metadata: {
|
|
72
70
|
openapi: {
|
|
@@ -85,12 +83,10 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
85
83
|
};
|
|
86
84
|
};
|
|
87
85
|
};
|
|
88
|
-
|
|
86
|
+
scope: "server";
|
|
89
87
|
};
|
|
90
|
-
} & {
|
|
91
|
-
use: any[];
|
|
92
88
|
}, Response>;
|
|
93
|
-
readonly signInSocial:
|
|
89
|
+
readonly signInSocial: better_call4.StrictEndpoint<"/sign-in/social", {
|
|
94
90
|
method: "POST";
|
|
95
91
|
operationId: string;
|
|
96
92
|
body: zod0.ZodObject<{
|
|
@@ -181,8 +177,6 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
181
177
|
};
|
|
182
178
|
};
|
|
183
179
|
};
|
|
184
|
-
} & {
|
|
185
|
-
use: any[];
|
|
186
180
|
}, {
|
|
187
181
|
redirect: boolean;
|
|
188
182
|
url: string;
|
|
@@ -200,7 +194,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
200
194
|
image?: string | null | undefined;
|
|
201
195
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
202
196
|
}>;
|
|
203
|
-
readonly callbackOAuth:
|
|
197
|
+
readonly callbackOAuth: better_call4.StrictEndpoint<"/callback/:id", {
|
|
204
198
|
method: ("GET" | "POST")[];
|
|
205
199
|
operationId: string;
|
|
206
200
|
body: zod0.ZodOptional<zod0.ZodObject<{
|
|
@@ -221,12 +215,10 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
221
215
|
}, zod_v4_core0.$strip>>;
|
|
222
216
|
metadata: {
|
|
223
217
|
allowedMediaTypes: string[];
|
|
224
|
-
|
|
218
|
+
scope: "server";
|
|
225
219
|
};
|
|
226
|
-
} & {
|
|
227
|
-
use: any[];
|
|
228
220
|
}, void>;
|
|
229
|
-
readonly getSession:
|
|
221
|
+
readonly getSession: better_call4.StrictEndpoint<"/get-session", {
|
|
230
222
|
method: "GET";
|
|
231
223
|
operationId: string;
|
|
232
224
|
query: zod0.ZodOptional<zod0.ZodObject<{
|
|
@@ -262,8 +254,6 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
262
254
|
};
|
|
263
255
|
};
|
|
264
256
|
};
|
|
265
|
-
} & {
|
|
266
|
-
use: any[];
|
|
267
257
|
}, {
|
|
268
258
|
session: UnionToIntersection<StripEmptyObjects<{
|
|
269
259
|
id: string;
|
|
@@ -285,7 +275,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
285
275
|
image?: string | null | undefined;
|
|
286
276
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
287
277
|
} | null>;
|
|
288
|
-
readonly signOut:
|
|
278
|
+
readonly signOut: better_call4.StrictEndpoint<"/sign-out", {
|
|
289
279
|
method: "POST";
|
|
290
280
|
operationId: string;
|
|
291
281
|
requireHeaders: true;
|
|
@@ -312,12 +302,10 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
312
302
|
};
|
|
313
303
|
};
|
|
314
304
|
};
|
|
315
|
-
} & {
|
|
316
|
-
use: any[];
|
|
317
305
|
}, {
|
|
318
306
|
success: boolean;
|
|
319
307
|
}>;
|
|
320
|
-
readonly signUpEmail:
|
|
308
|
+
readonly signUpEmail: better_call4.StrictEndpoint<"/sign-up/email", {
|
|
321
309
|
method: "POST";
|
|
322
310
|
operationId: string;
|
|
323
311
|
body: zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>;
|
|
@@ -459,8 +447,6 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
459
447
|
};
|
|
460
448
|
};
|
|
461
449
|
};
|
|
462
|
-
} & {
|
|
463
|
-
use: any[];
|
|
464
450
|
}, {
|
|
465
451
|
token: null;
|
|
466
452
|
user: UnionToIntersection<StripEmptyObjects<{
|
|
@@ -484,7 +470,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
484
470
|
image?: string | null | undefined;
|
|
485
471
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
486
472
|
}>;
|
|
487
|
-
readonly signInEmail:
|
|
473
|
+
readonly signInEmail: better_call4.StrictEndpoint<"/sign-in/email", {
|
|
488
474
|
method: "POST";
|
|
489
475
|
operationId: string;
|
|
490
476
|
body: zod0.ZodObject<{
|
|
@@ -553,8 +539,6 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
553
539
|
};
|
|
554
540
|
};
|
|
555
541
|
};
|
|
556
|
-
} & {
|
|
557
|
-
use: any[];
|
|
558
542
|
}, {
|
|
559
543
|
redirect: boolean;
|
|
560
544
|
token: string;
|
|
@@ -569,7 +553,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
569
553
|
image?: string | null | undefined;
|
|
570
554
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
571
555
|
}>;
|
|
572
|
-
readonly resetPassword:
|
|
556
|
+
readonly resetPassword: better_call4.StrictEndpoint<"/reset-password", {
|
|
573
557
|
method: "POST";
|
|
574
558
|
operationId: string;
|
|
575
559
|
query: zod0.ZodOptional<zod0.ZodObject<{
|
|
@@ -602,19 +586,17 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
602
586
|
};
|
|
603
587
|
};
|
|
604
588
|
};
|
|
605
|
-
} & {
|
|
606
|
-
use: any[];
|
|
607
589
|
}, {
|
|
608
590
|
status: boolean;
|
|
609
591
|
}>;
|
|
610
|
-
readonly verifyEmail:
|
|
592
|
+
readonly verifyEmail: better_call4.StrictEndpoint<"/verify-email", {
|
|
611
593
|
method: "GET";
|
|
612
594
|
operationId: string;
|
|
613
595
|
query: zod0.ZodObject<{
|
|
614
596
|
token: zod0.ZodString;
|
|
615
597
|
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
616
598
|
}, zod_v4_core0.$strip>;
|
|
617
|
-
use: ((inputContext:
|
|
599
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<void>)[];
|
|
618
600
|
metadata: {
|
|
619
601
|
openapi: {
|
|
620
602
|
description: string;
|
|
@@ -660,12 +642,10 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
660
642
|
};
|
|
661
643
|
};
|
|
662
644
|
};
|
|
663
|
-
} & {
|
|
664
|
-
use: any[];
|
|
665
645
|
}, void | {
|
|
666
646
|
status: boolean;
|
|
667
647
|
}>;
|
|
668
|
-
readonly sendVerificationEmail:
|
|
648
|
+
readonly sendVerificationEmail: better_call4.StrictEndpoint<"/send-verification-email", {
|
|
669
649
|
method: "POST";
|
|
670
650
|
operationId: string;
|
|
671
651
|
body: zod0.ZodObject<{
|
|
@@ -737,18 +717,16 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
737
717
|
};
|
|
738
718
|
};
|
|
739
719
|
};
|
|
740
|
-
} & {
|
|
741
|
-
use: any[];
|
|
742
720
|
}, {
|
|
743
721
|
status: boolean;
|
|
744
722
|
}>;
|
|
745
|
-
readonly changeEmail:
|
|
723
|
+
readonly changeEmail: better_call4.StrictEndpoint<"/change-email", {
|
|
746
724
|
method: "POST";
|
|
747
725
|
body: zod0.ZodObject<{
|
|
748
726
|
newEmail: zod0.ZodEmail;
|
|
749
727
|
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
750
728
|
}, zod_v4_core0.$strip>;
|
|
751
|
-
use: ((inputContext:
|
|
729
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
752
730
|
session: {
|
|
753
731
|
session: Record<string, any> & {
|
|
754
732
|
id: string;
|
|
@@ -820,12 +798,10 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
820
798
|
};
|
|
821
799
|
};
|
|
822
800
|
};
|
|
823
|
-
} & {
|
|
824
|
-
use: any[];
|
|
825
801
|
}, {
|
|
826
802
|
status: boolean;
|
|
827
803
|
}>;
|
|
828
|
-
readonly changePassword:
|
|
804
|
+
readonly changePassword: better_call4.StrictEndpoint<"/change-password", {
|
|
829
805
|
method: "POST";
|
|
830
806
|
operationId: string;
|
|
831
807
|
body: zod0.ZodObject<{
|
|
@@ -833,7 +809,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
833
809
|
currentPassword: zod0.ZodString;
|
|
834
810
|
revokeOtherSessions: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
835
811
|
}, zod_v4_core0.$strip>;
|
|
836
|
-
use: ((inputContext:
|
|
812
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
837
813
|
session: {
|
|
838
814
|
session: Record<string, any> & {
|
|
839
815
|
id: string;
|
|
@@ -921,8 +897,6 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
921
897
|
};
|
|
922
898
|
};
|
|
923
899
|
};
|
|
924
|
-
} & {
|
|
925
|
-
use: any[];
|
|
926
900
|
}, {
|
|
927
901
|
token: string | null;
|
|
928
902
|
user: {
|
|
@@ -935,15 +909,12 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
935
909
|
updatedAt: Date;
|
|
936
910
|
};
|
|
937
911
|
}>;
|
|
938
|
-
readonly setPassword:
|
|
912
|
+
readonly setPassword: better_call4.StrictEndpoint<string, {
|
|
939
913
|
method: "POST";
|
|
940
914
|
body: zod0.ZodObject<{
|
|
941
915
|
newPassword: zod0.ZodString;
|
|
942
916
|
}, zod_v4_core0.$strip>;
|
|
943
|
-
|
|
944
|
-
SERVER_ONLY: true;
|
|
945
|
-
};
|
|
946
|
-
use: ((inputContext: better_call2.MiddlewareInputContext<better_call2.MiddlewareOptions>) => Promise<{
|
|
917
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
947
918
|
session: {
|
|
948
919
|
session: Record<string, any> & {
|
|
949
920
|
id: string;
|
|
@@ -966,16 +937,14 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
966
937
|
};
|
|
967
938
|
};
|
|
968
939
|
}>)[];
|
|
969
|
-
} & {
|
|
970
|
-
use: any[];
|
|
971
940
|
}, {
|
|
972
941
|
status: boolean;
|
|
973
942
|
}>;
|
|
974
|
-
readonly updateUser:
|
|
943
|
+
readonly updateUser: better_call4.StrictEndpoint<"/update-user", {
|
|
975
944
|
method: "POST";
|
|
976
945
|
operationId: string;
|
|
977
946
|
body: zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>;
|
|
978
|
-
use: ((inputContext:
|
|
947
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
979
948
|
session: {
|
|
980
949
|
session: Record<string, any> & {
|
|
981
950
|
id: string;
|
|
@@ -1048,14 +1017,12 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1048
1017
|
};
|
|
1049
1018
|
};
|
|
1050
1019
|
};
|
|
1051
|
-
} & {
|
|
1052
|
-
use: any[];
|
|
1053
1020
|
}, {
|
|
1054
1021
|
status: boolean;
|
|
1055
1022
|
}>;
|
|
1056
|
-
readonly deleteUser:
|
|
1023
|
+
readonly deleteUser: better_call4.StrictEndpoint<"/delete-user", {
|
|
1057
1024
|
method: "POST";
|
|
1058
|
-
use: ((inputContext:
|
|
1025
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
1059
1026
|
session: {
|
|
1060
1027
|
session: Record<string, any> & {
|
|
1061
1028
|
id: string;
|
|
@@ -1136,13 +1103,11 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1136
1103
|
};
|
|
1137
1104
|
};
|
|
1138
1105
|
};
|
|
1139
|
-
} & {
|
|
1140
|
-
use: any[];
|
|
1141
1106
|
}, {
|
|
1142
1107
|
success: boolean;
|
|
1143
1108
|
message: string;
|
|
1144
1109
|
}>;
|
|
1145
|
-
readonly requestPasswordReset:
|
|
1110
|
+
readonly requestPasswordReset: better_call4.StrictEndpoint<"/request-password-reset", {
|
|
1146
1111
|
method: "POST";
|
|
1147
1112
|
body: zod0.ZodObject<{
|
|
1148
1113
|
email: zod0.ZodEmail;
|
|
@@ -1174,19 +1139,17 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1174
1139
|
};
|
|
1175
1140
|
};
|
|
1176
1141
|
};
|
|
1177
|
-
} & {
|
|
1178
|
-
use: any[];
|
|
1179
1142
|
}, {
|
|
1180
1143
|
status: boolean;
|
|
1181
1144
|
message: string;
|
|
1182
1145
|
}>;
|
|
1183
|
-
readonly requestPasswordResetCallback:
|
|
1146
|
+
readonly requestPasswordResetCallback: better_call4.StrictEndpoint<"/reset-password/:token", {
|
|
1184
1147
|
method: "GET";
|
|
1185
1148
|
operationId: string;
|
|
1186
1149
|
query: zod0.ZodObject<{
|
|
1187
1150
|
callbackURL: zod0.ZodString;
|
|
1188
1151
|
}, zod_v4_core0.$strip>;
|
|
1189
|
-
use: ((inputContext:
|
|
1152
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<void>)[];
|
|
1190
1153
|
metadata: {
|
|
1191
1154
|
openapi: {
|
|
1192
1155
|
operationId: string;
|
|
@@ -1227,13 +1190,11 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1227
1190
|
};
|
|
1228
1191
|
};
|
|
1229
1192
|
};
|
|
1230
|
-
} & {
|
|
1231
|
-
use: any[];
|
|
1232
1193
|
}, never>;
|
|
1233
|
-
readonly listSessions:
|
|
1194
|
+
readonly listSessions: better_call4.StrictEndpoint<"/list-sessions", {
|
|
1234
1195
|
method: "GET";
|
|
1235
1196
|
operationId: string;
|
|
1236
|
-
use: ((inputContext:
|
|
1197
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
1237
1198
|
session: {
|
|
1238
1199
|
session: Record<string, any> & {
|
|
1239
1200
|
id: string;
|
|
@@ -1278,8 +1239,6 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1278
1239
|
};
|
|
1279
1240
|
};
|
|
1280
1241
|
};
|
|
1281
|
-
} & {
|
|
1282
|
-
use: any[];
|
|
1283
1242
|
}, Prettify$1<UnionToIntersection<StripEmptyObjects<{
|
|
1284
1243
|
id: string;
|
|
1285
1244
|
createdAt: Date;
|
|
@@ -1289,13 +1248,15 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1289
1248
|
token: string;
|
|
1290
1249
|
ipAddress?: string | null | undefined;
|
|
1291
1250
|
userAgent?: string | null | undefined;
|
|
1292
|
-
} & (Option extends BetterAuthOptions ? AdditionalSessionFieldsOutput<Option> : Option extends Auth ? AdditionalSessionFieldsOutput<Option["options"]> : {})
|
|
1293
|
-
|
|
1251
|
+
} & (Option extends BetterAuthOptions ? AdditionalSessionFieldsOutput<Option> : Option extends Auth ? AdditionalSessionFieldsOutput<Option["options"]> : {})>> & {
|
|
1252
|
+
token: undefined;
|
|
1253
|
+
}>[]>;
|
|
1254
|
+
readonly revokeSession: better_call4.StrictEndpoint<"/revoke-session", {
|
|
1294
1255
|
method: "POST";
|
|
1295
1256
|
body: zod0.ZodObject<{
|
|
1296
1257
|
token: zod0.ZodString;
|
|
1297
1258
|
}, zod_v4_core0.$strip>;
|
|
1298
|
-
use: ((inputContext:
|
|
1259
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
1299
1260
|
session: {
|
|
1300
1261
|
session: Record<string, any> & {
|
|
1301
1262
|
id: string;
|
|
@@ -1359,14 +1320,12 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1359
1320
|
};
|
|
1360
1321
|
};
|
|
1361
1322
|
};
|
|
1362
|
-
} & {
|
|
1363
|
-
use: any[];
|
|
1364
1323
|
}, {
|
|
1365
1324
|
status: boolean;
|
|
1366
1325
|
}>;
|
|
1367
|
-
readonly revokeSessions:
|
|
1326
|
+
readonly revokeSessions: better_call4.StrictEndpoint<"/revoke-sessions", {
|
|
1368
1327
|
method: "POST";
|
|
1369
|
-
use: ((inputContext:
|
|
1328
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
1370
1329
|
session: {
|
|
1371
1330
|
session: Record<string, any> & {
|
|
1372
1331
|
id: string;
|
|
@@ -1414,15 +1373,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1414
1373
|
};
|
|
1415
1374
|
};
|
|
1416
1375
|
};
|
|
1417
|
-
} & {
|
|
1418
|
-
use: any[];
|
|
1419
1376
|
}, {
|
|
1420
1377
|
status: boolean;
|
|
1421
1378
|
}>;
|
|
1422
|
-
readonly revokeOtherSessions:
|
|
1379
|
+
readonly revokeOtherSessions: better_call4.StrictEndpoint<"/revoke-other-sessions", {
|
|
1423
1380
|
method: "POST";
|
|
1424
1381
|
requireHeaders: true;
|
|
1425
|
-
use: ((inputContext:
|
|
1382
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
1426
1383
|
session: {
|
|
1427
1384
|
session: Record<string, any> & {
|
|
1428
1385
|
id: string;
|
|
@@ -1469,12 +1426,10 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1469
1426
|
};
|
|
1470
1427
|
};
|
|
1471
1428
|
};
|
|
1472
|
-
} & {
|
|
1473
|
-
use: any[];
|
|
1474
1429
|
}, {
|
|
1475
1430
|
status: boolean;
|
|
1476
1431
|
}>;
|
|
1477
|
-
readonly linkSocialAccount:
|
|
1432
|
+
readonly linkSocialAccount: better_call4.StrictEndpoint<"/link-social", {
|
|
1478
1433
|
method: "POST";
|
|
1479
1434
|
requireHeaders: true;
|
|
1480
1435
|
body: zod0.ZodObject<{
|
|
@@ -1493,7 +1448,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1493
1448
|
disableRedirect: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1494
1449
|
additionalData: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
1495
1450
|
}, zod_v4_core0.$strip>;
|
|
1496
|
-
use: ((inputContext:
|
|
1451
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
1497
1452
|
session: {
|
|
1498
1453
|
session: Record<string, any> & {
|
|
1499
1454
|
id: string;
|
|
@@ -1548,15 +1503,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1548
1503
|
};
|
|
1549
1504
|
};
|
|
1550
1505
|
};
|
|
1551
|
-
} & {
|
|
1552
|
-
use: any[];
|
|
1553
1506
|
}, {
|
|
1554
1507
|
url: string;
|
|
1555
1508
|
redirect: boolean;
|
|
1556
1509
|
}>;
|
|
1557
|
-
readonly listUserAccounts:
|
|
1510
|
+
readonly listUserAccounts: better_call4.StrictEndpoint<"/list-accounts", {
|
|
1558
1511
|
method: "GET";
|
|
1559
|
-
use: ((inputContext:
|
|
1512
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
1560
1513
|
session: {
|
|
1561
1514
|
session: Record<string, any> & {
|
|
1562
1515
|
id: string;
|
|
@@ -1629,8 +1582,6 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1629
1582
|
};
|
|
1630
1583
|
};
|
|
1631
1584
|
};
|
|
1632
|
-
} & {
|
|
1633
|
-
use: any[];
|
|
1634
1585
|
}, {
|
|
1635
1586
|
id: string;
|
|
1636
1587
|
providerId: string;
|
|
@@ -1640,13 +1591,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1640
1591
|
userId: string;
|
|
1641
1592
|
scopes: string[];
|
|
1642
1593
|
}[]>;
|
|
1643
|
-
readonly deleteUserCallback:
|
|
1594
|
+
readonly deleteUserCallback: better_call4.StrictEndpoint<"/delete-user/callback", {
|
|
1644
1595
|
method: "GET";
|
|
1645
1596
|
query: zod0.ZodObject<{
|
|
1646
1597
|
token: zod0.ZodString;
|
|
1647
1598
|
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
1648
1599
|
}, zod_v4_core0.$strip>;
|
|
1649
|
-
use: ((inputContext:
|
|
1600
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<void>)[];
|
|
1650
1601
|
metadata: {
|
|
1651
1602
|
openapi: {
|
|
1652
1603
|
description: string;
|
|
@@ -1676,19 +1627,17 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1676
1627
|
};
|
|
1677
1628
|
};
|
|
1678
1629
|
};
|
|
1679
|
-
} & {
|
|
1680
|
-
use: any[];
|
|
1681
1630
|
}, {
|
|
1682
1631
|
success: boolean;
|
|
1683
1632
|
message: string;
|
|
1684
1633
|
}>;
|
|
1685
|
-
readonly unlinkAccount:
|
|
1634
|
+
readonly unlinkAccount: better_call4.StrictEndpoint<"/unlink-account", {
|
|
1686
1635
|
method: "POST";
|
|
1687
1636
|
body: zod0.ZodObject<{
|
|
1688
1637
|
providerId: zod0.ZodString;
|
|
1689
1638
|
accountId: zod0.ZodOptional<zod0.ZodString>;
|
|
1690
1639
|
}, zod_v4_core0.$strip>;
|
|
1691
|
-
use: ((inputContext:
|
|
1640
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
1692
1641
|
session: {
|
|
1693
1642
|
session: Record<string, any> & {
|
|
1694
1643
|
id: string;
|
|
@@ -1733,12 +1682,10 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1733
1682
|
};
|
|
1734
1683
|
};
|
|
1735
1684
|
};
|
|
1736
|
-
} & {
|
|
1737
|
-
use: any[];
|
|
1738
1685
|
}, {
|
|
1739
1686
|
status: boolean;
|
|
1740
1687
|
}>;
|
|
1741
|
-
readonly refreshToken:
|
|
1688
|
+
readonly refreshToken: better_call4.StrictEndpoint<"/refresh-token", {
|
|
1742
1689
|
method: "POST";
|
|
1743
1690
|
body: zod0.ZodObject<{
|
|
1744
1691
|
providerId: zod0.ZodString;
|
|
@@ -1787,8 +1734,6 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1787
1734
|
};
|
|
1788
1735
|
};
|
|
1789
1736
|
};
|
|
1790
|
-
} & {
|
|
1791
|
-
use: any[];
|
|
1792
1737
|
}, {
|
|
1793
1738
|
accessToken: string | undefined;
|
|
1794
1739
|
refreshToken: string | undefined;
|
|
@@ -1799,7 +1744,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1799
1744
|
providerId: string;
|
|
1800
1745
|
accountId: string;
|
|
1801
1746
|
}>;
|
|
1802
|
-
readonly getAccessToken:
|
|
1747
|
+
readonly getAccessToken: better_call4.StrictEndpoint<"/get-access-token", {
|
|
1803
1748
|
method: "POST";
|
|
1804
1749
|
body: zod0.ZodObject<{
|
|
1805
1750
|
providerId: zod0.ZodString;
|
|
@@ -1848,17 +1793,15 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1848
1793
|
};
|
|
1849
1794
|
};
|
|
1850
1795
|
};
|
|
1851
|
-
} & {
|
|
1852
|
-
use: any[];
|
|
1853
1796
|
}, {
|
|
1854
1797
|
accessToken: string;
|
|
1855
1798
|
accessTokenExpiresAt: Date | undefined;
|
|
1856
1799
|
scopes: string[];
|
|
1857
1800
|
idToken: string | undefined;
|
|
1858
1801
|
}>;
|
|
1859
|
-
readonly accountInfo:
|
|
1802
|
+
readonly accountInfo: better_call4.StrictEndpoint<"/account-info", {
|
|
1860
1803
|
method: "GET";
|
|
1861
|
-
use: ((inputContext:
|
|
1804
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
1862
1805
|
session: {
|
|
1863
1806
|
session: Record<string, any> & {
|
|
1864
1807
|
id: string;
|
|
@@ -1931,8 +1874,6 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1931
1874
|
query: zod0.ZodOptional<zod0.ZodObject<{
|
|
1932
1875
|
accountId: zod0.ZodOptional<zod0.ZodString>;
|
|
1933
1876
|
}, zod_v4_core0.$strip>>;
|
|
1934
|
-
} & {
|
|
1935
|
-
use: any[];
|
|
1936
1877
|
}, {
|
|
1937
1878
|
user: _better_auth_core_oauth20.OAuth2UserInfo;
|
|
1938
1879
|
data: Record<string, any>;
|
|
@@ -1948,7 +1889,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Promise<Aut
|
|
|
1948
1889
|
declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, options: Option) => {
|
|
1949
1890
|
handler: (request: Request) => Promise<Response>;
|
|
1950
1891
|
endpoints: {
|
|
1951
|
-
readonly ok:
|
|
1892
|
+
readonly ok: better_call4.StrictEndpoint<"/ok", {
|
|
1952
1893
|
method: "GET";
|
|
1953
1894
|
metadata: {
|
|
1954
1895
|
openapi: {
|
|
@@ -1973,14 +1914,12 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
1973
1914
|
};
|
|
1974
1915
|
};
|
|
1975
1916
|
};
|
|
1976
|
-
|
|
1917
|
+
scope: "server";
|
|
1977
1918
|
};
|
|
1978
|
-
} & {
|
|
1979
|
-
use: any[];
|
|
1980
1919
|
}, {
|
|
1981
1920
|
ok: boolean;
|
|
1982
1921
|
}>;
|
|
1983
|
-
readonly error:
|
|
1922
|
+
readonly error: better_call4.StrictEndpoint<"/error", {
|
|
1984
1923
|
method: "GET";
|
|
1985
1924
|
metadata: {
|
|
1986
1925
|
openapi: {
|
|
@@ -1999,12 +1938,10 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
1999
1938
|
};
|
|
2000
1939
|
};
|
|
2001
1940
|
};
|
|
2002
|
-
|
|
1941
|
+
scope: "server";
|
|
2003
1942
|
};
|
|
2004
|
-
} & {
|
|
2005
|
-
use: any[];
|
|
2006
1943
|
}, Response>;
|
|
2007
|
-
readonly signInSocial:
|
|
1944
|
+
readonly signInSocial: better_call4.StrictEndpoint<"/sign-in/social", {
|
|
2008
1945
|
method: "POST";
|
|
2009
1946
|
operationId: string;
|
|
2010
1947
|
body: zod0.ZodObject<{
|
|
@@ -2095,8 +2032,6 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2095
2032
|
};
|
|
2096
2033
|
};
|
|
2097
2034
|
};
|
|
2098
|
-
} & {
|
|
2099
|
-
use: any[];
|
|
2100
2035
|
}, {
|
|
2101
2036
|
redirect: boolean;
|
|
2102
2037
|
url: string;
|
|
@@ -2114,7 +2049,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2114
2049
|
image?: string | null | undefined;
|
|
2115
2050
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
2116
2051
|
}>;
|
|
2117
|
-
readonly callbackOAuth:
|
|
2052
|
+
readonly callbackOAuth: better_call4.StrictEndpoint<"/callback/:id", {
|
|
2118
2053
|
method: ("GET" | "POST")[];
|
|
2119
2054
|
operationId: string;
|
|
2120
2055
|
body: zod0.ZodOptional<zod0.ZodObject<{
|
|
@@ -2135,12 +2070,10 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2135
2070
|
}, zod_v4_core0.$strip>>;
|
|
2136
2071
|
metadata: {
|
|
2137
2072
|
allowedMediaTypes: string[];
|
|
2138
|
-
|
|
2073
|
+
scope: "server";
|
|
2139
2074
|
};
|
|
2140
|
-
} & {
|
|
2141
|
-
use: any[];
|
|
2142
2075
|
}, void>;
|
|
2143
|
-
readonly getSession:
|
|
2076
|
+
readonly getSession: better_call4.StrictEndpoint<"/get-session", {
|
|
2144
2077
|
method: "GET";
|
|
2145
2078
|
operationId: string;
|
|
2146
2079
|
query: zod0.ZodOptional<zod0.ZodObject<{
|
|
@@ -2176,8 +2109,6 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2176
2109
|
};
|
|
2177
2110
|
};
|
|
2178
2111
|
};
|
|
2179
|
-
} & {
|
|
2180
|
-
use: any[];
|
|
2181
2112
|
}, {
|
|
2182
2113
|
session: UnionToIntersection<StripEmptyObjects<{
|
|
2183
2114
|
id: string;
|
|
@@ -2199,7 +2130,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2199
2130
|
image?: string | null | undefined;
|
|
2200
2131
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
2201
2132
|
} | null>;
|
|
2202
|
-
readonly signOut:
|
|
2133
|
+
readonly signOut: better_call4.StrictEndpoint<"/sign-out", {
|
|
2203
2134
|
method: "POST";
|
|
2204
2135
|
operationId: string;
|
|
2205
2136
|
requireHeaders: true;
|
|
@@ -2226,12 +2157,10 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2226
2157
|
};
|
|
2227
2158
|
};
|
|
2228
2159
|
};
|
|
2229
|
-
} & {
|
|
2230
|
-
use: any[];
|
|
2231
2160
|
}, {
|
|
2232
2161
|
success: boolean;
|
|
2233
2162
|
}>;
|
|
2234
|
-
readonly signUpEmail:
|
|
2163
|
+
readonly signUpEmail: better_call4.StrictEndpoint<"/sign-up/email", {
|
|
2235
2164
|
method: "POST";
|
|
2236
2165
|
operationId: string;
|
|
2237
2166
|
body: zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>;
|
|
@@ -2373,8 +2302,6 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2373
2302
|
};
|
|
2374
2303
|
};
|
|
2375
2304
|
};
|
|
2376
|
-
} & {
|
|
2377
|
-
use: any[];
|
|
2378
2305
|
}, {
|
|
2379
2306
|
token: null;
|
|
2380
2307
|
user: UnionToIntersection<StripEmptyObjects<{
|
|
@@ -2398,7 +2325,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2398
2325
|
image?: string | null | undefined;
|
|
2399
2326
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
2400
2327
|
}>;
|
|
2401
|
-
readonly signInEmail:
|
|
2328
|
+
readonly signInEmail: better_call4.StrictEndpoint<"/sign-in/email", {
|
|
2402
2329
|
method: "POST";
|
|
2403
2330
|
operationId: string;
|
|
2404
2331
|
body: zod0.ZodObject<{
|
|
@@ -2467,8 +2394,6 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2467
2394
|
};
|
|
2468
2395
|
};
|
|
2469
2396
|
};
|
|
2470
|
-
} & {
|
|
2471
|
-
use: any[];
|
|
2472
2397
|
}, {
|
|
2473
2398
|
redirect: boolean;
|
|
2474
2399
|
token: string;
|
|
@@ -2483,7 +2408,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2483
2408
|
image?: string | null | undefined;
|
|
2484
2409
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
2485
2410
|
}>;
|
|
2486
|
-
readonly resetPassword:
|
|
2411
|
+
readonly resetPassword: better_call4.StrictEndpoint<"/reset-password", {
|
|
2487
2412
|
method: "POST";
|
|
2488
2413
|
operationId: string;
|
|
2489
2414
|
query: zod0.ZodOptional<zod0.ZodObject<{
|
|
@@ -2516,19 +2441,17 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2516
2441
|
};
|
|
2517
2442
|
};
|
|
2518
2443
|
};
|
|
2519
|
-
} & {
|
|
2520
|
-
use: any[];
|
|
2521
2444
|
}, {
|
|
2522
2445
|
status: boolean;
|
|
2523
2446
|
}>;
|
|
2524
|
-
readonly verifyEmail:
|
|
2447
|
+
readonly verifyEmail: better_call4.StrictEndpoint<"/verify-email", {
|
|
2525
2448
|
method: "GET";
|
|
2526
2449
|
operationId: string;
|
|
2527
2450
|
query: zod0.ZodObject<{
|
|
2528
2451
|
token: zod0.ZodString;
|
|
2529
2452
|
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2530
2453
|
}, zod_v4_core0.$strip>;
|
|
2531
|
-
use: ((inputContext:
|
|
2454
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<void>)[];
|
|
2532
2455
|
metadata: {
|
|
2533
2456
|
openapi: {
|
|
2534
2457
|
description: string;
|
|
@@ -2574,12 +2497,10 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2574
2497
|
};
|
|
2575
2498
|
};
|
|
2576
2499
|
};
|
|
2577
|
-
} & {
|
|
2578
|
-
use: any[];
|
|
2579
2500
|
}, void | {
|
|
2580
2501
|
status: boolean;
|
|
2581
2502
|
}>;
|
|
2582
|
-
readonly sendVerificationEmail:
|
|
2503
|
+
readonly sendVerificationEmail: better_call4.StrictEndpoint<"/send-verification-email", {
|
|
2583
2504
|
method: "POST";
|
|
2584
2505
|
operationId: string;
|
|
2585
2506
|
body: zod0.ZodObject<{
|
|
@@ -2651,18 +2572,16 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2651
2572
|
};
|
|
2652
2573
|
};
|
|
2653
2574
|
};
|
|
2654
|
-
} & {
|
|
2655
|
-
use: any[];
|
|
2656
2575
|
}, {
|
|
2657
2576
|
status: boolean;
|
|
2658
2577
|
}>;
|
|
2659
|
-
readonly changeEmail:
|
|
2578
|
+
readonly changeEmail: better_call4.StrictEndpoint<"/change-email", {
|
|
2660
2579
|
method: "POST";
|
|
2661
2580
|
body: zod0.ZodObject<{
|
|
2662
2581
|
newEmail: zod0.ZodEmail;
|
|
2663
2582
|
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2664
2583
|
}, zod_v4_core0.$strip>;
|
|
2665
|
-
use: ((inputContext:
|
|
2584
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
2666
2585
|
session: {
|
|
2667
2586
|
session: Record<string, any> & {
|
|
2668
2587
|
id: string;
|
|
@@ -2734,12 +2653,10 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2734
2653
|
};
|
|
2735
2654
|
};
|
|
2736
2655
|
};
|
|
2737
|
-
} & {
|
|
2738
|
-
use: any[];
|
|
2739
2656
|
}, {
|
|
2740
2657
|
status: boolean;
|
|
2741
2658
|
}>;
|
|
2742
|
-
readonly changePassword:
|
|
2659
|
+
readonly changePassword: better_call4.StrictEndpoint<"/change-password", {
|
|
2743
2660
|
method: "POST";
|
|
2744
2661
|
operationId: string;
|
|
2745
2662
|
body: zod0.ZodObject<{
|
|
@@ -2747,7 +2664,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2747
2664
|
currentPassword: zod0.ZodString;
|
|
2748
2665
|
revokeOtherSessions: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2749
2666
|
}, zod_v4_core0.$strip>;
|
|
2750
|
-
use: ((inputContext:
|
|
2667
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
2751
2668
|
session: {
|
|
2752
2669
|
session: Record<string, any> & {
|
|
2753
2670
|
id: string;
|
|
@@ -2835,8 +2752,6 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2835
2752
|
};
|
|
2836
2753
|
};
|
|
2837
2754
|
};
|
|
2838
|
-
} & {
|
|
2839
|
-
use: any[];
|
|
2840
2755
|
}, {
|
|
2841
2756
|
token: string | null;
|
|
2842
2757
|
user: {
|
|
@@ -2849,15 +2764,12 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2849
2764
|
updatedAt: Date;
|
|
2850
2765
|
};
|
|
2851
2766
|
}>;
|
|
2852
|
-
readonly setPassword:
|
|
2767
|
+
readonly setPassword: better_call4.StrictEndpoint<string, {
|
|
2853
2768
|
method: "POST";
|
|
2854
2769
|
body: zod0.ZodObject<{
|
|
2855
2770
|
newPassword: zod0.ZodString;
|
|
2856
2771
|
}, zod_v4_core0.$strip>;
|
|
2857
|
-
|
|
2858
|
-
SERVER_ONLY: true;
|
|
2859
|
-
};
|
|
2860
|
-
use: ((inputContext: better_call2.MiddlewareInputContext<better_call2.MiddlewareOptions>) => Promise<{
|
|
2772
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
2861
2773
|
session: {
|
|
2862
2774
|
session: Record<string, any> & {
|
|
2863
2775
|
id: string;
|
|
@@ -2880,16 +2792,14 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2880
2792
|
};
|
|
2881
2793
|
};
|
|
2882
2794
|
}>)[];
|
|
2883
|
-
} & {
|
|
2884
|
-
use: any[];
|
|
2885
2795
|
}, {
|
|
2886
2796
|
status: boolean;
|
|
2887
2797
|
}>;
|
|
2888
|
-
readonly updateUser:
|
|
2798
|
+
readonly updateUser: better_call4.StrictEndpoint<"/update-user", {
|
|
2889
2799
|
method: "POST";
|
|
2890
2800
|
operationId: string;
|
|
2891
2801
|
body: zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>;
|
|
2892
|
-
use: ((inputContext:
|
|
2802
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
2893
2803
|
session: {
|
|
2894
2804
|
session: Record<string, any> & {
|
|
2895
2805
|
id: string;
|
|
@@ -2962,14 +2872,12 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2962
2872
|
};
|
|
2963
2873
|
};
|
|
2964
2874
|
};
|
|
2965
|
-
} & {
|
|
2966
|
-
use: any[];
|
|
2967
2875
|
}, {
|
|
2968
2876
|
status: boolean;
|
|
2969
2877
|
}>;
|
|
2970
|
-
readonly deleteUser:
|
|
2878
|
+
readonly deleteUser: better_call4.StrictEndpoint<"/delete-user", {
|
|
2971
2879
|
method: "POST";
|
|
2972
|
-
use: ((inputContext:
|
|
2880
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
2973
2881
|
session: {
|
|
2974
2882
|
session: Record<string, any> & {
|
|
2975
2883
|
id: string;
|
|
@@ -3050,13 +2958,11 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3050
2958
|
};
|
|
3051
2959
|
};
|
|
3052
2960
|
};
|
|
3053
|
-
} & {
|
|
3054
|
-
use: any[];
|
|
3055
2961
|
}, {
|
|
3056
2962
|
success: boolean;
|
|
3057
2963
|
message: string;
|
|
3058
2964
|
}>;
|
|
3059
|
-
readonly requestPasswordReset:
|
|
2965
|
+
readonly requestPasswordReset: better_call4.StrictEndpoint<"/request-password-reset", {
|
|
3060
2966
|
method: "POST";
|
|
3061
2967
|
body: zod0.ZodObject<{
|
|
3062
2968
|
email: zod0.ZodEmail;
|
|
@@ -3088,19 +2994,17 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3088
2994
|
};
|
|
3089
2995
|
};
|
|
3090
2996
|
};
|
|
3091
|
-
} & {
|
|
3092
|
-
use: any[];
|
|
3093
2997
|
}, {
|
|
3094
2998
|
status: boolean;
|
|
3095
2999
|
message: string;
|
|
3096
3000
|
}>;
|
|
3097
|
-
readonly requestPasswordResetCallback:
|
|
3001
|
+
readonly requestPasswordResetCallback: better_call4.StrictEndpoint<"/reset-password/:token", {
|
|
3098
3002
|
method: "GET";
|
|
3099
3003
|
operationId: string;
|
|
3100
3004
|
query: zod0.ZodObject<{
|
|
3101
3005
|
callbackURL: zod0.ZodString;
|
|
3102
3006
|
}, zod_v4_core0.$strip>;
|
|
3103
|
-
use: ((inputContext:
|
|
3007
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<void>)[];
|
|
3104
3008
|
metadata: {
|
|
3105
3009
|
openapi: {
|
|
3106
3010
|
operationId: string;
|
|
@@ -3141,13 +3045,11 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3141
3045
|
};
|
|
3142
3046
|
};
|
|
3143
3047
|
};
|
|
3144
|
-
} & {
|
|
3145
|
-
use: any[];
|
|
3146
3048
|
}, never>;
|
|
3147
|
-
readonly listSessions:
|
|
3049
|
+
readonly listSessions: better_call4.StrictEndpoint<"/list-sessions", {
|
|
3148
3050
|
method: "GET";
|
|
3149
3051
|
operationId: string;
|
|
3150
|
-
use: ((inputContext:
|
|
3052
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
3151
3053
|
session: {
|
|
3152
3054
|
session: Record<string, any> & {
|
|
3153
3055
|
id: string;
|
|
@@ -3192,8 +3094,6 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3192
3094
|
};
|
|
3193
3095
|
};
|
|
3194
3096
|
};
|
|
3195
|
-
} & {
|
|
3196
|
-
use: any[];
|
|
3197
3097
|
}, Prettify$1<UnionToIntersection<StripEmptyObjects<{
|
|
3198
3098
|
id: string;
|
|
3199
3099
|
createdAt: Date;
|
|
@@ -3203,13 +3103,15 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3203
3103
|
token: string;
|
|
3204
3104
|
ipAddress?: string | null | undefined;
|
|
3205
3105
|
userAgent?: string | null | undefined;
|
|
3206
|
-
} & (Option extends BetterAuthOptions ? AdditionalSessionFieldsOutput<Option> : Option extends Auth ? AdditionalSessionFieldsOutput<Option["options"]> : {})
|
|
3207
|
-
|
|
3106
|
+
} & (Option extends BetterAuthOptions ? AdditionalSessionFieldsOutput<Option> : Option extends Auth ? AdditionalSessionFieldsOutput<Option["options"]> : {})>> & {
|
|
3107
|
+
token: undefined;
|
|
3108
|
+
}>[]>;
|
|
3109
|
+
readonly revokeSession: better_call4.StrictEndpoint<"/revoke-session", {
|
|
3208
3110
|
method: "POST";
|
|
3209
3111
|
body: zod0.ZodObject<{
|
|
3210
3112
|
token: zod0.ZodString;
|
|
3211
3113
|
}, zod_v4_core0.$strip>;
|
|
3212
|
-
use: ((inputContext:
|
|
3114
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
3213
3115
|
session: {
|
|
3214
3116
|
session: Record<string, any> & {
|
|
3215
3117
|
id: string;
|
|
@@ -3273,14 +3175,12 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3273
3175
|
};
|
|
3274
3176
|
};
|
|
3275
3177
|
};
|
|
3276
|
-
} & {
|
|
3277
|
-
use: any[];
|
|
3278
3178
|
}, {
|
|
3279
3179
|
status: boolean;
|
|
3280
3180
|
}>;
|
|
3281
|
-
readonly revokeSessions:
|
|
3181
|
+
readonly revokeSessions: better_call4.StrictEndpoint<"/revoke-sessions", {
|
|
3282
3182
|
method: "POST";
|
|
3283
|
-
use: ((inputContext:
|
|
3183
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
3284
3184
|
session: {
|
|
3285
3185
|
session: Record<string, any> & {
|
|
3286
3186
|
id: string;
|
|
@@ -3328,15 +3228,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3328
3228
|
};
|
|
3329
3229
|
};
|
|
3330
3230
|
};
|
|
3331
|
-
} & {
|
|
3332
|
-
use: any[];
|
|
3333
3231
|
}, {
|
|
3334
3232
|
status: boolean;
|
|
3335
3233
|
}>;
|
|
3336
|
-
readonly revokeOtherSessions:
|
|
3234
|
+
readonly revokeOtherSessions: better_call4.StrictEndpoint<"/revoke-other-sessions", {
|
|
3337
3235
|
method: "POST";
|
|
3338
3236
|
requireHeaders: true;
|
|
3339
|
-
use: ((inputContext:
|
|
3237
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
3340
3238
|
session: {
|
|
3341
3239
|
session: Record<string, any> & {
|
|
3342
3240
|
id: string;
|
|
@@ -3383,12 +3281,10 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3383
3281
|
};
|
|
3384
3282
|
};
|
|
3385
3283
|
};
|
|
3386
|
-
} & {
|
|
3387
|
-
use: any[];
|
|
3388
3284
|
}, {
|
|
3389
3285
|
status: boolean;
|
|
3390
3286
|
}>;
|
|
3391
|
-
readonly linkSocialAccount:
|
|
3287
|
+
readonly linkSocialAccount: better_call4.StrictEndpoint<"/link-social", {
|
|
3392
3288
|
method: "POST";
|
|
3393
3289
|
requireHeaders: true;
|
|
3394
3290
|
body: zod0.ZodObject<{
|
|
@@ -3407,7 +3303,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3407
3303
|
disableRedirect: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
3408
3304
|
additionalData: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
3409
3305
|
}, zod_v4_core0.$strip>;
|
|
3410
|
-
use: ((inputContext:
|
|
3306
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
3411
3307
|
session: {
|
|
3412
3308
|
session: Record<string, any> & {
|
|
3413
3309
|
id: string;
|
|
@@ -3462,15 +3358,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3462
3358
|
};
|
|
3463
3359
|
};
|
|
3464
3360
|
};
|
|
3465
|
-
} & {
|
|
3466
|
-
use: any[];
|
|
3467
3361
|
}, {
|
|
3468
3362
|
url: string;
|
|
3469
3363
|
redirect: boolean;
|
|
3470
3364
|
}>;
|
|
3471
|
-
readonly listUserAccounts:
|
|
3365
|
+
readonly listUserAccounts: better_call4.StrictEndpoint<"/list-accounts", {
|
|
3472
3366
|
method: "GET";
|
|
3473
|
-
use: ((inputContext:
|
|
3367
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
3474
3368
|
session: {
|
|
3475
3369
|
session: Record<string, any> & {
|
|
3476
3370
|
id: string;
|
|
@@ -3543,8 +3437,6 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3543
3437
|
};
|
|
3544
3438
|
};
|
|
3545
3439
|
};
|
|
3546
|
-
} & {
|
|
3547
|
-
use: any[];
|
|
3548
3440
|
}, {
|
|
3549
3441
|
id: string;
|
|
3550
3442
|
providerId: string;
|
|
@@ -3554,13 +3446,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3554
3446
|
userId: string;
|
|
3555
3447
|
scopes: string[];
|
|
3556
3448
|
}[]>;
|
|
3557
|
-
readonly deleteUserCallback:
|
|
3449
|
+
readonly deleteUserCallback: better_call4.StrictEndpoint<"/delete-user/callback", {
|
|
3558
3450
|
method: "GET";
|
|
3559
3451
|
query: zod0.ZodObject<{
|
|
3560
3452
|
token: zod0.ZodString;
|
|
3561
3453
|
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
3562
3454
|
}, zod_v4_core0.$strip>;
|
|
3563
|
-
use: ((inputContext:
|
|
3455
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<void>)[];
|
|
3564
3456
|
metadata: {
|
|
3565
3457
|
openapi: {
|
|
3566
3458
|
description: string;
|
|
@@ -3590,19 +3482,17 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3590
3482
|
};
|
|
3591
3483
|
};
|
|
3592
3484
|
};
|
|
3593
|
-
} & {
|
|
3594
|
-
use: any[];
|
|
3595
3485
|
}, {
|
|
3596
3486
|
success: boolean;
|
|
3597
3487
|
message: string;
|
|
3598
3488
|
}>;
|
|
3599
|
-
readonly unlinkAccount:
|
|
3489
|
+
readonly unlinkAccount: better_call4.StrictEndpoint<"/unlink-account", {
|
|
3600
3490
|
method: "POST";
|
|
3601
3491
|
body: zod0.ZodObject<{
|
|
3602
3492
|
providerId: zod0.ZodString;
|
|
3603
3493
|
accountId: zod0.ZodOptional<zod0.ZodString>;
|
|
3604
3494
|
}, zod_v4_core0.$strip>;
|
|
3605
|
-
use: ((inputContext:
|
|
3495
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
3606
3496
|
session: {
|
|
3607
3497
|
session: Record<string, any> & {
|
|
3608
3498
|
id: string;
|
|
@@ -3647,12 +3537,10 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3647
3537
|
};
|
|
3648
3538
|
};
|
|
3649
3539
|
};
|
|
3650
|
-
} & {
|
|
3651
|
-
use: any[];
|
|
3652
3540
|
}, {
|
|
3653
3541
|
status: boolean;
|
|
3654
3542
|
}>;
|
|
3655
|
-
readonly refreshToken:
|
|
3543
|
+
readonly refreshToken: better_call4.StrictEndpoint<"/refresh-token", {
|
|
3656
3544
|
method: "POST";
|
|
3657
3545
|
body: zod0.ZodObject<{
|
|
3658
3546
|
providerId: zod0.ZodString;
|
|
@@ -3701,8 +3589,6 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3701
3589
|
};
|
|
3702
3590
|
};
|
|
3703
3591
|
};
|
|
3704
|
-
} & {
|
|
3705
|
-
use: any[];
|
|
3706
3592
|
}, {
|
|
3707
3593
|
accessToken: string | undefined;
|
|
3708
3594
|
refreshToken: string | undefined;
|
|
@@ -3713,7 +3599,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3713
3599
|
providerId: string;
|
|
3714
3600
|
accountId: string;
|
|
3715
3601
|
}>;
|
|
3716
|
-
readonly getAccessToken:
|
|
3602
|
+
readonly getAccessToken: better_call4.StrictEndpoint<"/get-access-token", {
|
|
3717
3603
|
method: "POST";
|
|
3718
3604
|
body: zod0.ZodObject<{
|
|
3719
3605
|
providerId: zod0.ZodString;
|
|
@@ -3762,17 +3648,15 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3762
3648
|
};
|
|
3763
3649
|
};
|
|
3764
3650
|
};
|
|
3765
|
-
} & {
|
|
3766
|
-
use: any[];
|
|
3767
3651
|
}, {
|
|
3768
3652
|
accessToken: string;
|
|
3769
3653
|
accessTokenExpiresAt: Date | undefined;
|
|
3770
3654
|
scopes: string[];
|
|
3771
3655
|
idToken: string | undefined;
|
|
3772
3656
|
}>;
|
|
3773
|
-
readonly accountInfo:
|
|
3657
|
+
readonly accountInfo: better_call4.StrictEndpoint<"/account-info", {
|
|
3774
3658
|
method: "GET";
|
|
3775
|
-
use: ((inputContext:
|
|
3659
|
+
use: ((inputContext: better_call4.MiddlewareInputContext<better_call4.MiddlewareOptions>) => Promise<{
|
|
3776
3660
|
session: {
|
|
3777
3661
|
session: Record<string, any> & {
|
|
3778
3662
|
id: string;
|
|
@@ -3845,8 +3729,6 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3845
3729
|
query: zod0.ZodOptional<zod0.ZodObject<{
|
|
3846
3730
|
accountId: zod0.ZodOptional<zod0.ZodString>;
|
|
3847
3731
|
}, zod_v4_core0.$strip>>;
|
|
3848
|
-
} & {
|
|
3849
|
-
use: any[];
|
|
3850
3732
|
}, {
|
|
3851
3733
|
user: _better_auth_core_oauth20.OAuth2UserInfo;
|
|
3852
3734
|
data: Record<string, any>;
|