better-auth 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/drizzle-adapter/index.d.cts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.mts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.ts +2 -2
- package/dist/adapters/index.d.cts +3 -3
- package/dist/adapters/index.d.mts +3 -3
- package/dist/adapters/index.d.ts +3 -3
- package/dist/adapters/kysely-adapter/index.d.cts +2 -2
- package/dist/adapters/kysely-adapter/index.d.mts +2 -2
- package/dist/adapters/kysely-adapter/index.d.ts +2 -2
- package/dist/adapters/memory-adapter/index.d.cts +2 -2
- package/dist/adapters/memory-adapter/index.d.mts +2 -2
- package/dist/adapters/memory-adapter/index.d.ts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.cts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.mts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.ts +2 -2
- package/dist/adapters/prisma-adapter/index.d.cts +2 -2
- package/dist/adapters/prisma-adapter/index.d.mts +2 -2
- package/dist/adapters/prisma-adapter/index.d.ts +2 -2
- package/dist/adapters/test.d.cts +2 -2
- package/dist/adapters/test.d.mts +2 -2
- package/dist/adapters/test.d.ts +2 -2
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +2 -2
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.mjs +2 -2
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.mts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/plugins/index.d.cts +4 -4
- package/dist/client/plugins/index.d.mts +4 -4
- package/dist/client/plugins/index.d.ts +4 -4
- package/dist/client/react/index.d.cts +4 -4
- package/dist/client/react/index.d.mts +4 -4
- package/dist/client/react/index.d.ts +4 -4
- package/dist/client/solid/index.d.cts +4 -4
- package/dist/client/solid/index.d.mts +4 -4
- package/dist/client/solid/index.d.ts +4 -4
- package/dist/client/svelte/index.d.cts +4 -4
- package/dist/client/svelte/index.d.mts +4 -4
- package/dist/client/svelte/index.d.ts +4 -4
- package/dist/client/vue/index.d.cts +4 -4
- package/dist/client/vue/index.d.mts +4 -4
- package/dist/client/vue/index.d.ts +4 -4
- package/dist/cookies/index.d.cts +2 -2
- package/dist/cookies/index.d.mts +2 -2
- package/dist/cookies/index.d.ts +2 -2
- package/dist/db/index.d.cts +12 -12
- package/dist/db/index.d.mts +12 -12
- package/dist/db/index.d.ts +12 -12
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +2 -2
- package/dist/integrations/next-js.cjs +2 -2
- package/dist/integrations/next-js.d.cts +2 -2
- package/dist/integrations/next-js.d.mts +2 -2
- package/dist/integrations/next-js.d.ts +2 -2
- package/dist/integrations/next-js.mjs +2 -2
- package/dist/integrations/node.d.cts +2 -2
- package/dist/integrations/node.d.mts +2 -2
- package/dist/integrations/node.d.ts +2 -2
- package/dist/integrations/react-start.cjs +2 -2
- package/dist/integrations/react-start.d.cts +2 -2
- package/dist/integrations/react-start.d.mts +2 -2
- package/dist/integrations/react-start.d.ts +2 -2
- package/dist/integrations/react-start.mjs +2 -2
- package/dist/integrations/svelte-kit.cjs +1 -1
- package/dist/integrations/svelte-kit.d.cts +2 -2
- package/dist/integrations/svelte-kit.d.mts +2 -2
- package/dist/integrations/svelte-kit.d.ts +2 -2
- package/dist/integrations/svelte-kit.mjs +1 -1
- package/dist/oauth2/index.cjs +1 -1
- package/dist/oauth2/index.d.cts +4 -4
- package/dist/oauth2/index.d.mts +4 -4
- package/dist/oauth2/index.d.ts +4 -4
- package/dist/oauth2/index.mjs +1 -1
- package/dist/plugins/admin/index.cjs +2 -2
- package/dist/plugins/admin/index.d.cts +67 -67
- package/dist/plugins/admin/index.d.mts +67 -67
- package/dist/plugins/admin/index.d.ts +67 -67
- package/dist/plugins/admin/index.mjs +2 -2
- package/dist/plugins/anonymous/index.cjs +1 -1
- package/dist/plugins/anonymous/index.d.cts +2 -2
- package/dist/plugins/anonymous/index.d.mts +2 -2
- package/dist/plugins/anonymous/index.d.ts +2 -2
- package/dist/plugins/anonymous/index.mjs +1 -1
- package/dist/plugins/bearer/index.cjs +1 -1
- package/dist/plugins/bearer/index.d.cts +2 -2
- package/dist/plugins/bearer/index.d.mts +2 -2
- package/dist/plugins/bearer/index.d.ts +2 -2
- package/dist/plugins/bearer/index.mjs +1 -1
- package/dist/plugins/captcha/index.d.cts +2 -2
- package/dist/plugins/captcha/index.d.mts +2 -2
- package/dist/plugins/captcha/index.d.ts +2 -2
- package/dist/plugins/custom-session/index.cjs +1 -1
- package/dist/plugins/custom-session/index.d.cts +7 -7
- package/dist/plugins/custom-session/index.d.mts +7 -7
- package/dist/plugins/custom-session/index.d.ts +7 -7
- package/dist/plugins/custom-session/index.mjs +1 -1
- package/dist/plugins/email-otp/index.cjs +1 -1
- package/dist/plugins/email-otp/index.d.cts +31 -31
- package/dist/plugins/email-otp/index.d.mts +31 -31
- package/dist/plugins/email-otp/index.d.ts +31 -31
- package/dist/plugins/email-otp/index.mjs +1 -1
- package/dist/plugins/generic-oauth/index.cjs +1 -1
- package/dist/plugins/generic-oauth/index.d.cts +24 -24
- package/dist/plugins/generic-oauth/index.d.mts +24 -24
- package/dist/plugins/generic-oauth/index.d.ts +24 -24
- package/dist/plugins/generic-oauth/index.mjs +1 -1
- package/dist/plugins/haveibeenpwned/index.cjs +1 -1
- package/dist/plugins/haveibeenpwned/index.d.cts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.mts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.ts +2 -2
- package/dist/plugins/haveibeenpwned/index.mjs +1 -1
- package/dist/plugins/index.cjs +7 -7
- package/dist/plugins/index.d.cts +26 -26
- package/dist/plugins/index.d.mts +26 -26
- package/dist/plugins/index.d.ts +26 -26
- package/dist/plugins/index.mjs +9 -9
- package/dist/plugins/jwt/index.cjs +2 -2
- package/dist/plugins/jwt/index.d.cts +2 -2
- package/dist/plugins/jwt/index.d.mts +2 -2
- package/dist/plugins/jwt/index.d.ts +2 -2
- package/dist/plugins/jwt/index.mjs +2 -2
- package/dist/plugins/magic-link/index.cjs +1 -1
- package/dist/plugins/magic-link/index.d.cts +14 -14
- package/dist/plugins/magic-link/index.d.mts +14 -14
- package/dist/plugins/magic-link/index.d.ts +14 -14
- package/dist/plugins/magic-link/index.mjs +1 -1
- package/dist/plugins/multi-session/index.cjs +1 -1
- package/dist/plugins/multi-session/index.d.cts +9 -9
- package/dist/plugins/multi-session/index.d.mts +9 -9
- package/dist/plugins/multi-session/index.d.ts +9 -9
- package/dist/plugins/multi-session/index.mjs +1 -1
- package/dist/plugins/oauth-proxy/index.cjs +1 -1
- package/dist/plugins/oauth-proxy/index.d.cts +7 -7
- package/dist/plugins/oauth-proxy/index.d.mts +7 -7
- package/dist/plugins/oauth-proxy/index.d.ts +7 -7
- package/dist/plugins/oauth-proxy/index.mjs +1 -1
- package/dist/plugins/oidc-provider/index.cjs +3 -3
- package/dist/plugins/oidc-provider/index.d.cts +27 -27
- package/dist/plugins/oidc-provider/index.d.mts +27 -27
- package/dist/plugins/oidc-provider/index.d.ts +27 -27
- package/dist/plugins/oidc-provider/index.mjs +3 -3
- package/dist/plugins/one-tap/index.cjs +1 -1
- package/dist/plugins/one-tap/index.d.cts +4 -4
- package/dist/plugins/one-tap/index.d.mts +4 -4
- package/dist/plugins/one-tap/index.d.ts +4 -4
- package/dist/plugins/one-tap/index.mjs +1 -1
- package/dist/plugins/one-time-token/index.cjs +3 -3
- package/dist/plugins/one-time-token/index.d.cts +6 -6
- package/dist/plugins/one-time-token/index.d.mts +6 -6
- package/dist/plugins/one-time-token/index.d.ts +6 -6
- package/dist/plugins/one-time-token/index.mjs +3 -3
- package/dist/plugins/open-api/index.cjs +1 -1
- package/dist/plugins/open-api/index.d.cts +2 -2
- package/dist/plugins/open-api/index.d.mts +2 -2
- package/dist/plugins/open-api/index.d.ts +2 -2
- package/dist/plugins/open-api/index.mjs +1 -1
- package/dist/plugins/organization/index.cjs +3 -3
- package/dist/plugins/organization/index.d.cts +390 -390
- package/dist/plugins/organization/index.d.mts +390 -390
- package/dist/plugins/organization/index.d.ts +390 -390
- package/dist/plugins/organization/index.mjs +3 -3
- package/dist/plugins/passkey/index.cjs +1 -1
- package/dist/plugins/passkey/index.d.cts +23 -23
- package/dist/plugins/passkey/index.d.mts +23 -23
- package/dist/plugins/passkey/index.d.ts +23 -23
- package/dist/plugins/passkey/index.mjs +1 -1
- package/dist/plugins/phone-number/index.cjs +1 -1
- package/dist/plugins/phone-number/index.d.cts +28 -28
- package/dist/plugins/phone-number/index.d.mts +28 -28
- package/dist/plugins/phone-number/index.d.ts +28 -28
- package/dist/plugins/phone-number/index.mjs +1 -1
- package/dist/plugins/siwe/index.cjs +297 -0
- package/dist/plugins/siwe/index.d.cts +195 -0
- package/dist/plugins/siwe/index.d.mts +195 -0
- package/dist/plugins/siwe/index.d.ts +195 -0
- package/dist/plugins/siwe/index.mjs +295 -0
- package/dist/plugins/sso/index.cjs +1 -1
- package/dist/plugins/sso/index.d.cts +45 -45
- package/dist/plugins/sso/index.d.mts +45 -45
- package/dist/plugins/sso/index.d.ts +45 -45
- package/dist/plugins/sso/index.mjs +1 -1
- package/dist/plugins/two-factor/index.cjs +1 -1
- package/dist/plugins/two-factor/index.d.cts +38 -38
- package/dist/plugins/two-factor/index.d.mts +38 -38
- package/dist/plugins/two-factor/index.d.ts +38 -38
- package/dist/plugins/two-factor/index.mjs +1 -1
- package/dist/plugins/username/index.cjs +1 -1
- package/dist/plugins/username/index.d.cts +12 -12
- package/dist/plugins/username/index.d.mts +12 -12
- package/dist/plugins/username/index.d.ts +12 -12
- package/dist/plugins/username/index.mjs +1 -1
- package/dist/shared/{better-auth.C-oNfZPH.d.cts → better-auth.B0e3ZzlM.d.cts} +36 -36
- package/dist/shared/{better-auth.CE16lr3i.d.mts → better-auth.B1VHvePI.d.mts} +36 -36
- package/dist/shared/{better-auth.DoKaQIwy.d.mts → better-auth.BF0l18Af.d.mts} +1 -1
- package/dist/shared/{better-auth.CNTpFj_S.cjs → better-auth.BXW4aAiQ.cjs} +2 -2
- package/dist/shared/{better-auth.DdKZcMVt.d.ts → better-auth.B_G094Aj.d.ts} +1 -1
- package/dist/shared/{better-auth.DQfCK4Nb.mjs → better-auth.Bqt8-7ls.mjs} +2 -2
- package/dist/shared/{better-auth.DevRAmVV.d.ts → better-auth.Bwe61noi.d.ts} +1 -1
- package/dist/shared/{better-auth.B3K6UWYy.d.cts → better-auth.CF-FWRQL.d.cts} +1 -1
- package/dist/shared/{better-auth.D2QnAIyP.d.ts → better-auth.CHvHihjD.d.ts} +36 -36
- package/dist/shared/{better-auth.pnE8EkZO.cjs → better-auth.COsDmM8f.cjs} +1 -1
- package/dist/shared/{better-auth.B8mbk3HM.cjs → better-auth.CSftMZoM.cjs} +1 -1
- package/dist/shared/{better-auth.DG2FJeYI.cjs → better-auth.CU2ZnFFo.cjs} +4 -3
- package/dist/shared/{better-auth.KpzJUkxw.d.mts → better-auth.CePXeKag.d.mts} +515 -515
- package/dist/shared/{better-auth.CnqHgquB.cjs → better-auth.CeY8lCIq.cjs} +33 -11
- package/dist/shared/{better-auth.Cgjn2thr.d.cts → better-auth.CiGummYu.d.cts} +515 -515
- package/dist/shared/{better-auth.BP6KhZxK.mjs → better-auth.D1SaVuxk.mjs} +1 -1
- package/dist/shared/{better-auth.BOumacvv.mjs → better-auth.D4HhkCZJ.mjs} +4 -3
- package/dist/shared/{better-auth.PchrD52N.d.cts → better-auth.DEgvs2nh.d.cts} +1 -1
- package/dist/shared/{better-auth._di0pH6c.mjs → better-auth.DGaVMVAI.mjs} +1 -1
- package/dist/shared/{better-auth.PS9uuCnX.d.ts → better-auth.DPa2nz5L.d.ts} +3 -3
- package/dist/shared/{better-auth.VKKx-2JU.mjs → better-auth.DR6QsC6j.mjs} +33 -11
- package/dist/shared/{better-auth.ByEh_r9h.d.mts → better-auth.DbqVX6sp.d.mts} +1 -1
- package/dist/shared/{better-auth.2lcgvW_O.d.ts → better-auth.Dj2HyOmw.d.ts} +515 -515
- package/dist/shared/{better-auth.Bs90Z5lG.mjs → better-auth.DygEm6OX.mjs} +1 -1
- package/dist/shared/{better-auth.jZedDYFo.mjs → better-auth.HDgvLN7B.mjs} +2 -2
- package/dist/shared/{better-auth.KXK1cTP6.d.mts → better-auth.IegS6fw_.d.mts} +3 -3
- package/dist/shared/{better-auth.B448Gbxg.cjs → better-auth.PIkdXr0U.cjs} +2 -2
- package/dist/shared/{better-auth.DCdVWPIH.cjs → better-auth.TnpcdNJo.cjs} +1 -1
- package/dist/shared/{better-auth.hWM7ExMT.mjs → better-auth.VOBpdwFt.mjs} +1 -1
- package/dist/shared/{better-auth.CtknPsTc.cjs → better-auth.johXc5IC.cjs} +1 -1
- package/dist/shared/{better-auth.DVIqLF8t.d.cts → better-auth.npEvGVS_.d.cts} +3 -3
- package/dist/social-providers/index.cjs +1 -1
- package/dist/social-providers/index.d.cts +1 -1
- package/dist/social-providers/index.d.mts +1 -1
- package/dist/social-providers/index.d.ts +1 -1
- package/dist/social-providers/index.mjs +1 -1
- package/dist/test-utils/index.cjs +3 -3
- package/dist/test-utils/index.d.cts +732 -731
- package/dist/test-utils/index.d.mts +732 -731
- package/dist/test-utils/index.d.ts +732 -731
- package/dist/test-utils/index.mjs +3 -3
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/package.json +14 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import * as
|
|
3
|
-
import { O as OAuth2Tokens } from '../../shared/better-auth.
|
|
4
|
-
import { U as User } from '../../shared/better-auth.
|
|
2
|
+
import * as z from 'zod/v4';
|
|
3
|
+
import { O as OAuth2Tokens } from '../../shared/better-auth.npEvGVS_.cjs';
|
|
4
|
+
import { U as User } from '../../shared/better-auth.CiGummYu.cjs';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
@@ -142,34 +142,34 @@ declare const sso: (options?: SSOOptions) => {
|
|
|
142
142
|
}>;
|
|
143
143
|
options: {
|
|
144
144
|
method: "POST";
|
|
145
|
-
body:
|
|
146
|
-
providerId:
|
|
147
|
-
issuer:
|
|
148
|
-
domain:
|
|
149
|
-
clientId:
|
|
150
|
-
clientSecret:
|
|
151
|
-
authorizationEndpoint:
|
|
152
|
-
tokenEndpoint:
|
|
153
|
-
userInfoEndpoint:
|
|
154
|
-
tokenEndpointAuthentication:
|
|
145
|
+
body: z.ZodObject<{
|
|
146
|
+
providerId: z.ZodString;
|
|
147
|
+
issuer: z.ZodString;
|
|
148
|
+
domain: z.ZodString;
|
|
149
|
+
clientId: z.ZodString;
|
|
150
|
+
clientSecret: z.ZodString;
|
|
151
|
+
authorizationEndpoint: z.ZodOptional<z.ZodString>;
|
|
152
|
+
tokenEndpoint: z.ZodOptional<z.ZodString>;
|
|
153
|
+
userInfoEndpoint: z.ZodOptional<z.ZodString>;
|
|
154
|
+
tokenEndpointAuthentication: z.ZodOptional<z.ZodEnum<{
|
|
155
155
|
client_secret_post: "client_secret_post";
|
|
156
156
|
client_secret_basic: "client_secret_basic";
|
|
157
157
|
}>>;
|
|
158
|
-
jwksEndpoint:
|
|
159
|
-
discoveryEndpoint:
|
|
160
|
-
scopes:
|
|
161
|
-
pkce:
|
|
162
|
-
mapping:
|
|
163
|
-
id:
|
|
164
|
-
email:
|
|
165
|
-
emailVerified:
|
|
166
|
-
name:
|
|
167
|
-
image:
|
|
168
|
-
extraFields:
|
|
169
|
-
},
|
|
170
|
-
organizationId:
|
|
171
|
-
overrideUserInfo:
|
|
172
|
-
},
|
|
158
|
+
jwksEndpoint: z.ZodOptional<z.ZodString>;
|
|
159
|
+
discoveryEndpoint: z.ZodOptional<z.ZodString>;
|
|
160
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
161
|
+
pkce: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
162
|
+
mapping: z.ZodOptional<z.ZodObject<{
|
|
163
|
+
id: z.ZodString;
|
|
164
|
+
email: z.ZodString;
|
|
165
|
+
emailVerified: z.ZodOptional<z.ZodString>;
|
|
166
|
+
name: z.ZodString;
|
|
167
|
+
image: z.ZodOptional<z.ZodString>;
|
|
168
|
+
extraFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
169
|
+
}, z.core.$strip>>;
|
|
170
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
171
|
+
overrideUserInfo: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
173
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
174
174
|
session: {
|
|
175
175
|
session: Record<string, any> & {
|
|
@@ -408,17 +408,17 @@ declare const sso: (options?: SSOOptions) => {
|
|
|
408
408
|
}>;
|
|
409
409
|
options: {
|
|
410
410
|
method: "POST";
|
|
411
|
-
body:
|
|
412
|
-
email:
|
|
413
|
-
organizationSlug:
|
|
414
|
-
providerId:
|
|
415
|
-
domain:
|
|
416
|
-
callbackURL:
|
|
417
|
-
errorCallbackURL:
|
|
418
|
-
newUserCallbackURL:
|
|
419
|
-
scopes:
|
|
420
|
-
requestSignUp:
|
|
421
|
-
},
|
|
411
|
+
body: z.ZodObject<{
|
|
412
|
+
email: z.ZodOptional<z.ZodString>;
|
|
413
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
414
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
415
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
416
|
+
callbackURL: z.ZodString;
|
|
417
|
+
errorCallbackURL: z.ZodOptional<z.ZodString>;
|
|
418
|
+
newUserCallbackURL: z.ZodOptional<z.ZodString>;
|
|
419
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
420
|
+
requestSignUp: z.ZodOptional<z.ZodBoolean>;
|
|
421
|
+
}, z.core.$strip>;
|
|
422
422
|
metadata: {
|
|
423
423
|
openapi: {
|
|
424
424
|
summary: string;
|
|
@@ -525,12 +525,12 @@ declare const sso: (options?: SSOOptions) => {
|
|
|
525
525
|
} : never>;
|
|
526
526
|
options: {
|
|
527
527
|
method: "GET";
|
|
528
|
-
query:
|
|
529
|
-
code:
|
|
530
|
-
state:
|
|
531
|
-
error:
|
|
532
|
-
error_description:
|
|
533
|
-
},
|
|
528
|
+
query: z.ZodObject<{
|
|
529
|
+
code: z.ZodOptional<z.ZodString>;
|
|
530
|
+
state: z.ZodString;
|
|
531
|
+
error: z.ZodOptional<z.ZodString>;
|
|
532
|
+
error_description: z.ZodOptional<z.ZodString>;
|
|
533
|
+
}, z.core.$strip>;
|
|
534
534
|
metadata: {
|
|
535
535
|
isAction: boolean;
|
|
536
536
|
openapi: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import * as
|
|
3
|
-
import { O as OAuth2Tokens } from '../../shared/better-auth.
|
|
4
|
-
import { U as User } from '../../shared/better-auth.
|
|
2
|
+
import * as z from 'zod/v4';
|
|
3
|
+
import { O as OAuth2Tokens } from '../../shared/better-auth.IegS6fw_.mjs';
|
|
4
|
+
import { U as User } from '../../shared/better-auth.CePXeKag.mjs';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
@@ -142,34 +142,34 @@ declare const sso: (options?: SSOOptions) => {
|
|
|
142
142
|
}>;
|
|
143
143
|
options: {
|
|
144
144
|
method: "POST";
|
|
145
|
-
body:
|
|
146
|
-
providerId:
|
|
147
|
-
issuer:
|
|
148
|
-
domain:
|
|
149
|
-
clientId:
|
|
150
|
-
clientSecret:
|
|
151
|
-
authorizationEndpoint:
|
|
152
|
-
tokenEndpoint:
|
|
153
|
-
userInfoEndpoint:
|
|
154
|
-
tokenEndpointAuthentication:
|
|
145
|
+
body: z.ZodObject<{
|
|
146
|
+
providerId: z.ZodString;
|
|
147
|
+
issuer: z.ZodString;
|
|
148
|
+
domain: z.ZodString;
|
|
149
|
+
clientId: z.ZodString;
|
|
150
|
+
clientSecret: z.ZodString;
|
|
151
|
+
authorizationEndpoint: z.ZodOptional<z.ZodString>;
|
|
152
|
+
tokenEndpoint: z.ZodOptional<z.ZodString>;
|
|
153
|
+
userInfoEndpoint: z.ZodOptional<z.ZodString>;
|
|
154
|
+
tokenEndpointAuthentication: z.ZodOptional<z.ZodEnum<{
|
|
155
155
|
client_secret_post: "client_secret_post";
|
|
156
156
|
client_secret_basic: "client_secret_basic";
|
|
157
157
|
}>>;
|
|
158
|
-
jwksEndpoint:
|
|
159
|
-
discoveryEndpoint:
|
|
160
|
-
scopes:
|
|
161
|
-
pkce:
|
|
162
|
-
mapping:
|
|
163
|
-
id:
|
|
164
|
-
email:
|
|
165
|
-
emailVerified:
|
|
166
|
-
name:
|
|
167
|
-
image:
|
|
168
|
-
extraFields:
|
|
169
|
-
},
|
|
170
|
-
organizationId:
|
|
171
|
-
overrideUserInfo:
|
|
172
|
-
},
|
|
158
|
+
jwksEndpoint: z.ZodOptional<z.ZodString>;
|
|
159
|
+
discoveryEndpoint: z.ZodOptional<z.ZodString>;
|
|
160
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
161
|
+
pkce: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
162
|
+
mapping: z.ZodOptional<z.ZodObject<{
|
|
163
|
+
id: z.ZodString;
|
|
164
|
+
email: z.ZodString;
|
|
165
|
+
emailVerified: z.ZodOptional<z.ZodString>;
|
|
166
|
+
name: z.ZodString;
|
|
167
|
+
image: z.ZodOptional<z.ZodString>;
|
|
168
|
+
extraFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
169
|
+
}, z.core.$strip>>;
|
|
170
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
171
|
+
overrideUserInfo: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
173
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
174
174
|
session: {
|
|
175
175
|
session: Record<string, any> & {
|
|
@@ -408,17 +408,17 @@ declare const sso: (options?: SSOOptions) => {
|
|
|
408
408
|
}>;
|
|
409
409
|
options: {
|
|
410
410
|
method: "POST";
|
|
411
|
-
body:
|
|
412
|
-
email:
|
|
413
|
-
organizationSlug:
|
|
414
|
-
providerId:
|
|
415
|
-
domain:
|
|
416
|
-
callbackURL:
|
|
417
|
-
errorCallbackURL:
|
|
418
|
-
newUserCallbackURL:
|
|
419
|
-
scopes:
|
|
420
|
-
requestSignUp:
|
|
421
|
-
},
|
|
411
|
+
body: z.ZodObject<{
|
|
412
|
+
email: z.ZodOptional<z.ZodString>;
|
|
413
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
414
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
415
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
416
|
+
callbackURL: z.ZodString;
|
|
417
|
+
errorCallbackURL: z.ZodOptional<z.ZodString>;
|
|
418
|
+
newUserCallbackURL: z.ZodOptional<z.ZodString>;
|
|
419
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
420
|
+
requestSignUp: z.ZodOptional<z.ZodBoolean>;
|
|
421
|
+
}, z.core.$strip>;
|
|
422
422
|
metadata: {
|
|
423
423
|
openapi: {
|
|
424
424
|
summary: string;
|
|
@@ -525,12 +525,12 @@ declare const sso: (options?: SSOOptions) => {
|
|
|
525
525
|
} : never>;
|
|
526
526
|
options: {
|
|
527
527
|
method: "GET";
|
|
528
|
-
query:
|
|
529
|
-
code:
|
|
530
|
-
state:
|
|
531
|
-
error:
|
|
532
|
-
error_description:
|
|
533
|
-
},
|
|
528
|
+
query: z.ZodObject<{
|
|
529
|
+
code: z.ZodOptional<z.ZodString>;
|
|
530
|
+
state: z.ZodString;
|
|
531
|
+
error: z.ZodOptional<z.ZodString>;
|
|
532
|
+
error_description: z.ZodOptional<z.ZodString>;
|
|
533
|
+
}, z.core.$strip>;
|
|
534
534
|
metadata: {
|
|
535
535
|
isAction: boolean;
|
|
536
536
|
openapi: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import * as
|
|
3
|
-
import { O as OAuth2Tokens } from '../../shared/better-auth.
|
|
4
|
-
import { U as User } from '../../shared/better-auth.
|
|
2
|
+
import * as z from 'zod/v4';
|
|
3
|
+
import { O as OAuth2Tokens } from '../../shared/better-auth.DPa2nz5L.js';
|
|
4
|
+
import { U as User } from '../../shared/better-auth.Dj2HyOmw.js';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.js';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
@@ -142,34 +142,34 @@ declare const sso: (options?: SSOOptions) => {
|
|
|
142
142
|
}>;
|
|
143
143
|
options: {
|
|
144
144
|
method: "POST";
|
|
145
|
-
body:
|
|
146
|
-
providerId:
|
|
147
|
-
issuer:
|
|
148
|
-
domain:
|
|
149
|
-
clientId:
|
|
150
|
-
clientSecret:
|
|
151
|
-
authorizationEndpoint:
|
|
152
|
-
tokenEndpoint:
|
|
153
|
-
userInfoEndpoint:
|
|
154
|
-
tokenEndpointAuthentication:
|
|
145
|
+
body: z.ZodObject<{
|
|
146
|
+
providerId: z.ZodString;
|
|
147
|
+
issuer: z.ZodString;
|
|
148
|
+
domain: z.ZodString;
|
|
149
|
+
clientId: z.ZodString;
|
|
150
|
+
clientSecret: z.ZodString;
|
|
151
|
+
authorizationEndpoint: z.ZodOptional<z.ZodString>;
|
|
152
|
+
tokenEndpoint: z.ZodOptional<z.ZodString>;
|
|
153
|
+
userInfoEndpoint: z.ZodOptional<z.ZodString>;
|
|
154
|
+
tokenEndpointAuthentication: z.ZodOptional<z.ZodEnum<{
|
|
155
155
|
client_secret_post: "client_secret_post";
|
|
156
156
|
client_secret_basic: "client_secret_basic";
|
|
157
157
|
}>>;
|
|
158
|
-
jwksEndpoint:
|
|
159
|
-
discoveryEndpoint:
|
|
160
|
-
scopes:
|
|
161
|
-
pkce:
|
|
162
|
-
mapping:
|
|
163
|
-
id:
|
|
164
|
-
email:
|
|
165
|
-
emailVerified:
|
|
166
|
-
name:
|
|
167
|
-
image:
|
|
168
|
-
extraFields:
|
|
169
|
-
},
|
|
170
|
-
organizationId:
|
|
171
|
-
overrideUserInfo:
|
|
172
|
-
},
|
|
158
|
+
jwksEndpoint: z.ZodOptional<z.ZodString>;
|
|
159
|
+
discoveryEndpoint: z.ZodOptional<z.ZodString>;
|
|
160
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
161
|
+
pkce: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
162
|
+
mapping: z.ZodOptional<z.ZodObject<{
|
|
163
|
+
id: z.ZodString;
|
|
164
|
+
email: z.ZodString;
|
|
165
|
+
emailVerified: z.ZodOptional<z.ZodString>;
|
|
166
|
+
name: z.ZodString;
|
|
167
|
+
image: z.ZodOptional<z.ZodString>;
|
|
168
|
+
extraFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
169
|
+
}, z.core.$strip>>;
|
|
170
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
171
|
+
overrideUserInfo: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
173
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
174
174
|
session: {
|
|
175
175
|
session: Record<string, any> & {
|
|
@@ -408,17 +408,17 @@ declare const sso: (options?: SSOOptions) => {
|
|
|
408
408
|
}>;
|
|
409
409
|
options: {
|
|
410
410
|
method: "POST";
|
|
411
|
-
body:
|
|
412
|
-
email:
|
|
413
|
-
organizationSlug:
|
|
414
|
-
providerId:
|
|
415
|
-
domain:
|
|
416
|
-
callbackURL:
|
|
417
|
-
errorCallbackURL:
|
|
418
|
-
newUserCallbackURL:
|
|
419
|
-
scopes:
|
|
420
|
-
requestSignUp:
|
|
421
|
-
},
|
|
411
|
+
body: z.ZodObject<{
|
|
412
|
+
email: z.ZodOptional<z.ZodString>;
|
|
413
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
414
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
415
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
416
|
+
callbackURL: z.ZodString;
|
|
417
|
+
errorCallbackURL: z.ZodOptional<z.ZodString>;
|
|
418
|
+
newUserCallbackURL: z.ZodOptional<z.ZodString>;
|
|
419
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
420
|
+
requestSignUp: z.ZodOptional<z.ZodBoolean>;
|
|
421
|
+
}, z.core.$strip>;
|
|
422
422
|
metadata: {
|
|
423
423
|
openapi: {
|
|
424
424
|
summary: string;
|
|
@@ -525,12 +525,12 @@ declare const sso: (options?: SSOOptions) => {
|
|
|
525
525
|
} : never>;
|
|
526
526
|
options: {
|
|
527
527
|
method: "GET";
|
|
528
|
-
query:
|
|
529
|
-
code:
|
|
530
|
-
state:
|
|
531
|
-
error:
|
|
532
|
-
error_description:
|
|
533
|
-
},
|
|
528
|
+
query: z.ZodObject<{
|
|
529
|
+
code: z.ZodOptional<z.ZodString>;
|
|
530
|
+
state: z.ZodString;
|
|
531
|
+
error: z.ZodOptional<z.ZodString>;
|
|
532
|
+
error_description: z.ZodOptional<z.ZodString>;
|
|
533
|
+
}, z.core.$strip>;
|
|
534
534
|
metadata: {
|
|
535
535
|
isAction: boolean;
|
|
536
536
|
openapi: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
|
-
import { j as createAuthEndpoint, p as parseState, v as validateAuthorizationCode, a as validateToken, h as handleOAuthUserInfo, s as setTokenUtil, g as generateState, c as createAuthorizationURL, l as sessionMiddleware } from '../../shared/better-auth.
|
|
3
|
+
import { j as createAuthEndpoint, p as parseState, v as validateAuthorizationCode, a as validateToken, h as handleOAuthUserInfo, s as setTokenUtil, g as generateState, c as createAuthorizationURL, l as sessionMiddleware } from '../../shared/better-auth.D4HhkCZJ.mjs';
|
|
4
4
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
5
5
|
import '../../shared/better-auth.n2KFGwjY.mjs';
|
|
6
6
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
4
4
|
const z = require('zod/v4');
|
|
5
|
-
const socialProviders_index = require('../../shared/better-auth.
|
|
5
|
+
const socialProviders_index = require('../../shared/better-auth.CU2ZnFFo.cjs');
|
|
6
6
|
const betterCall = require('better-call');
|
|
7
7
|
const cookies_index = require('../../cookies/index.cjs');
|
|
8
8
|
const schema$1 = require('../../shared/better-auth.BIMq4RPW.cjs');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import * as
|
|
3
|
-
import { U as User, I as InferOptionSchema, l as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import * as z from 'zod/v4';
|
|
3
|
+
import { U as User, I as InferOptionSchema, l as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.CiGummYu.cjs';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import 'kysely';
|
|
7
|
-
import '../../shared/better-auth.
|
|
7
|
+
import '../../shared/better-auth.npEvGVS_.cjs';
|
|
8
8
|
import 'jose';
|
|
9
9
|
import 'zod/v4/core';
|
|
10
10
|
import 'better-sqlite3';
|
|
@@ -286,10 +286,10 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
286
286
|
}>;
|
|
287
287
|
options: {
|
|
288
288
|
method: "POST";
|
|
289
|
-
body:
|
|
290
|
-
password:
|
|
291
|
-
issuer:
|
|
292
|
-
},
|
|
289
|
+
body: z.ZodObject<{
|
|
290
|
+
password: z.ZodString;
|
|
291
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
292
|
+
}, z.core.$strip>;
|
|
293
293
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
294
294
|
session: {
|
|
295
295
|
session: Record<string, any> & {
|
|
@@ -397,9 +397,9 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
397
397
|
}>;
|
|
398
398
|
options: {
|
|
399
399
|
method: "POST";
|
|
400
|
-
body:
|
|
401
|
-
password:
|
|
402
|
-
},
|
|
400
|
+
body: z.ZodObject<{
|
|
401
|
+
password: z.ZodString;
|
|
402
|
+
}, z.core.$strip>;
|
|
403
403
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
404
404
|
session: {
|
|
405
405
|
session: Record<string, any> & {
|
|
@@ -504,11 +504,11 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
504
504
|
}>;
|
|
505
505
|
options: {
|
|
506
506
|
method: "POST";
|
|
507
|
-
body:
|
|
508
|
-
code:
|
|
509
|
-
disableSession:
|
|
510
|
-
trustDevice:
|
|
511
|
-
},
|
|
507
|
+
body: z.ZodObject<{
|
|
508
|
+
code: z.ZodString;
|
|
509
|
+
disableSession: z.ZodOptional<z.ZodBoolean>;
|
|
510
|
+
trustDevice: z.ZodOptional<z.ZodBoolean>;
|
|
511
|
+
}, z.core.$strip>;
|
|
512
512
|
metadata: {
|
|
513
513
|
openapi: {
|
|
514
514
|
description: string;
|
|
@@ -641,9 +641,9 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
641
641
|
}>;
|
|
642
642
|
options: {
|
|
643
643
|
method: "POST";
|
|
644
|
-
body:
|
|
645
|
-
password:
|
|
646
|
-
},
|
|
644
|
+
body: z.ZodObject<{
|
|
645
|
+
password: z.ZodString;
|
|
646
|
+
}, z.core.$strip>;
|
|
647
647
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
648
648
|
session: {
|
|
649
649
|
session: Record<string, any> & {
|
|
@@ -739,9 +739,9 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
739
739
|
}>;
|
|
740
740
|
options: {
|
|
741
741
|
method: "GET";
|
|
742
|
-
body:
|
|
743
|
-
userId:
|
|
744
|
-
},
|
|
742
|
+
body: z.ZodObject<{
|
|
743
|
+
userId: z.ZodCoercedString<unknown>;
|
|
744
|
+
}, z.core.$strip>;
|
|
745
745
|
metadata: {
|
|
746
746
|
SERVER_ONLY: true;
|
|
747
747
|
};
|
|
@@ -783,9 +783,9 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
783
783
|
}>;
|
|
784
784
|
options: {
|
|
785
785
|
method: "POST";
|
|
786
|
-
body:
|
|
787
|
-
trustDevice:
|
|
788
|
-
},
|
|
786
|
+
body: z.ZodOptional<z.ZodObject<{
|
|
787
|
+
trustDevice: z.ZodOptional<z.ZodBoolean>;
|
|
788
|
+
}, z.core.$strip>>;
|
|
789
789
|
metadata: {
|
|
790
790
|
openapi: {
|
|
791
791
|
summary: string;
|
|
@@ -866,10 +866,10 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
866
866
|
}>;
|
|
867
867
|
options: {
|
|
868
868
|
method: "POST";
|
|
869
|
-
body:
|
|
870
|
-
code:
|
|
871
|
-
trustDevice:
|
|
872
|
-
},
|
|
869
|
+
body: z.ZodObject<{
|
|
870
|
+
code: z.ZodString;
|
|
871
|
+
trustDevice: z.ZodOptional<z.ZodBoolean>;
|
|
872
|
+
}, z.core.$strip>;
|
|
873
873
|
metadata: {
|
|
874
874
|
openapi: {
|
|
875
875
|
summary: string;
|
|
@@ -976,9 +976,9 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
976
976
|
}>;
|
|
977
977
|
options: {
|
|
978
978
|
method: "POST";
|
|
979
|
-
body:
|
|
980
|
-
secret:
|
|
981
|
-
},
|
|
979
|
+
body: z.ZodObject<{
|
|
980
|
+
secret: z.ZodString;
|
|
981
|
+
}, z.core.$strip>;
|
|
982
982
|
metadata: {
|
|
983
983
|
openapi: {
|
|
984
984
|
summary: string;
|
|
@@ -1064,9 +1064,9 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
1064
1064
|
};
|
|
1065
1065
|
};
|
|
1066
1066
|
}>)[];
|
|
1067
|
-
body:
|
|
1068
|
-
password:
|
|
1069
|
-
},
|
|
1067
|
+
body: z.ZodObject<{
|
|
1068
|
+
password: z.ZodString;
|
|
1069
|
+
}, z.core.$strip>;
|
|
1070
1070
|
metadata: {
|
|
1071
1071
|
openapi: {
|
|
1072
1072
|
summary: string;
|
|
@@ -1147,10 +1147,10 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
|
|
|
1147
1147
|
}>;
|
|
1148
1148
|
options: {
|
|
1149
1149
|
method: "POST";
|
|
1150
|
-
body:
|
|
1151
|
-
code:
|
|
1152
|
-
trustDevice:
|
|
1153
|
-
},
|
|
1150
|
+
body: z.ZodObject<{
|
|
1151
|
+
code: z.ZodString;
|
|
1152
|
+
trustDevice: z.ZodOptional<z.ZodBoolean>;
|
|
1153
|
+
}, z.core.$strip>;
|
|
1154
1154
|
metadata: {
|
|
1155
1155
|
openapi: {
|
|
1156
1156
|
summary: string;
|