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 { U as User, p as AuthContext } from '../../shared/better-auth.
|
|
3
|
-
import * as
|
|
4
|
-
import { O as OAuth2Tokens, a as OAuthProvider } from '../../shared/better-auth.
|
|
2
|
+
import { U as User, p as AuthContext } from '../../shared/better-auth.CePXeKag.mjs';
|
|
3
|
+
import * as z from 'zod/v4';
|
|
4
|
+
import { O as OAuth2Tokens, a as OAuthProvider } from '../../shared/better-auth.IegS6fw_.mjs';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
@@ -215,15 +215,15 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
215
215
|
}>;
|
|
216
216
|
options: {
|
|
217
217
|
method: "POST";
|
|
218
|
-
body:
|
|
219
|
-
providerId:
|
|
220
|
-
callbackURL:
|
|
221
|
-
errorCallbackURL:
|
|
222
|
-
newUserCallbackURL:
|
|
223
|
-
disableRedirect:
|
|
224
|
-
scopes:
|
|
225
|
-
requestSignUp:
|
|
226
|
-
},
|
|
218
|
+
body: z.ZodObject<{
|
|
219
|
+
providerId: z.ZodString;
|
|
220
|
+
callbackURL: z.ZodOptional<z.ZodString>;
|
|
221
|
+
errorCallbackURL: z.ZodOptional<z.ZodString>;
|
|
222
|
+
newUserCallbackURL: z.ZodOptional<z.ZodString>;
|
|
223
|
+
disableRedirect: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
225
|
+
requestSignUp: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
+
}, z.core.$strip>;
|
|
227
227
|
metadata: {
|
|
228
228
|
openapi: {
|
|
229
229
|
description: string;
|
|
@@ -288,12 +288,12 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
288
288
|
} : void>;
|
|
289
289
|
options: {
|
|
290
290
|
method: "GET";
|
|
291
|
-
query:
|
|
292
|
-
code:
|
|
293
|
-
error:
|
|
294
|
-
error_description:
|
|
295
|
-
state:
|
|
296
|
-
},
|
|
291
|
+
query: z.ZodObject<{
|
|
292
|
+
code: z.ZodOptional<z.ZodString>;
|
|
293
|
+
error: z.ZodOptional<z.ZodString>;
|
|
294
|
+
error_description: z.ZodOptional<z.ZodString>;
|
|
295
|
+
state: z.ZodOptional<z.ZodString>;
|
|
296
|
+
}, z.core.$strip>;
|
|
297
297
|
metadata: {
|
|
298
298
|
client: boolean;
|
|
299
299
|
openapi: {
|
|
@@ -375,12 +375,12 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
375
375
|
}>;
|
|
376
376
|
options: {
|
|
377
377
|
method: "POST";
|
|
378
|
-
body:
|
|
379
|
-
providerId:
|
|
380
|
-
callbackURL:
|
|
381
|
-
scopes:
|
|
382
|
-
errorCallbackURL:
|
|
383
|
-
},
|
|
378
|
+
body: z.ZodObject<{
|
|
379
|
+
providerId: z.ZodString;
|
|
380
|
+
callbackURL: z.ZodString;
|
|
381
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
382
|
+
errorCallbackURL: z.ZodOptional<z.ZodString>;
|
|
383
|
+
}, z.core.$strip>;
|
|
384
384
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
385
385
|
session: {
|
|
386
386
|
session: Record<string, any> & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { U as User, p as AuthContext } from '../../shared/better-auth.
|
|
3
|
-
import * as
|
|
4
|
-
import { O as OAuth2Tokens, a as OAuthProvider } from '../../shared/better-auth.
|
|
2
|
+
import { U as User, p as AuthContext } from '../../shared/better-auth.Dj2HyOmw.js';
|
|
3
|
+
import * as z from 'zod/v4';
|
|
4
|
+
import { O as OAuth2Tokens, a as OAuthProvider } from '../../shared/better-auth.DPa2nz5L.js';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import '../../shared/better-auth.ZSfSbnQT.js';
|
|
7
7
|
import 'zod/v4/core';
|
|
@@ -215,15 +215,15 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
215
215
|
}>;
|
|
216
216
|
options: {
|
|
217
217
|
method: "POST";
|
|
218
|
-
body:
|
|
219
|
-
providerId:
|
|
220
|
-
callbackURL:
|
|
221
|
-
errorCallbackURL:
|
|
222
|
-
newUserCallbackURL:
|
|
223
|
-
disableRedirect:
|
|
224
|
-
scopes:
|
|
225
|
-
requestSignUp:
|
|
226
|
-
},
|
|
218
|
+
body: z.ZodObject<{
|
|
219
|
+
providerId: z.ZodString;
|
|
220
|
+
callbackURL: z.ZodOptional<z.ZodString>;
|
|
221
|
+
errorCallbackURL: z.ZodOptional<z.ZodString>;
|
|
222
|
+
newUserCallbackURL: z.ZodOptional<z.ZodString>;
|
|
223
|
+
disableRedirect: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
225
|
+
requestSignUp: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
+
}, z.core.$strip>;
|
|
227
227
|
metadata: {
|
|
228
228
|
openapi: {
|
|
229
229
|
description: string;
|
|
@@ -288,12 +288,12 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
288
288
|
} : void>;
|
|
289
289
|
options: {
|
|
290
290
|
method: "GET";
|
|
291
|
-
query:
|
|
292
|
-
code:
|
|
293
|
-
error:
|
|
294
|
-
error_description:
|
|
295
|
-
state:
|
|
296
|
-
},
|
|
291
|
+
query: z.ZodObject<{
|
|
292
|
+
code: z.ZodOptional<z.ZodString>;
|
|
293
|
+
error: z.ZodOptional<z.ZodString>;
|
|
294
|
+
error_description: z.ZodOptional<z.ZodString>;
|
|
295
|
+
state: z.ZodOptional<z.ZodString>;
|
|
296
|
+
}, z.core.$strip>;
|
|
297
297
|
metadata: {
|
|
298
298
|
client: boolean;
|
|
299
299
|
openapi: {
|
|
@@ -375,12 +375,12 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
375
375
|
}>;
|
|
376
376
|
options: {
|
|
377
377
|
method: "POST";
|
|
378
|
-
body:
|
|
379
|
-
providerId:
|
|
380
|
-
callbackURL:
|
|
381
|
-
scopes:
|
|
382
|
-
errorCallbackURL:
|
|
383
|
-
},
|
|
378
|
+
body: z.ZodObject<{
|
|
379
|
+
providerId: z.ZodString;
|
|
380
|
+
callbackURL: z.ZodString;
|
|
381
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
382
|
+
errorCallbackURL: z.ZodOptional<z.ZodString>;
|
|
383
|
+
}, z.core.$strip>;
|
|
384
384
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
385
385
|
session: {
|
|
386
386
|
session: Record<string, any> & {
|
|
@@ -2,7 +2,7 @@ import { betterFetch } from '@better-fetch/fetch';
|
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
3
|
import { decodeJwt } from 'jose';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
5
|
-
import { j as createAuthEndpoint, l as sessionMiddleware, B as BASE_ERROR_CODES, g as generateState, c as createAuthorizationURL, p as parseState, v as validateAuthorizationCode, h as handleOAuthUserInfo, r as refreshAccessToken } from '../../shared/better-auth.
|
|
5
|
+
import { j as createAuthEndpoint, l as sessionMiddleware, B as BASE_ERROR_CODES, g as generateState, c as createAuthorizationURL, p as parseState, v as validateAuthorizationCode, h as handleOAuthUserInfo, r as refreshAccessToken } from '../../shared/better-auth.D4HhkCZJ.mjs';
|
|
6
6
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
7
7
|
import '../../shared/better-auth.n2KFGwjY.mjs';
|
|
8
8
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
require('../../shared/better-auth.
|
|
4
|
+
require('../../shared/better-auth.CU2ZnFFo.cjs');
|
|
5
5
|
require('zod/v4');
|
|
6
6
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
7
7
|
require('@better-auth/utils/base64');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as AuthContext, s as checkPassword } from '../../shared/better-auth.
|
|
1
|
+
import { p as AuthContext, s as checkPassword } from '../../shared/better-auth.CiGummYu.cjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.npEvGVS_.cjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as AuthContext, s as checkPassword } from '../../shared/better-auth.
|
|
1
|
+
import { p as AuthContext, s as checkPassword } from '../../shared/better-auth.CePXeKag.mjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.IegS6fw_.mjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as AuthContext, s as checkPassword } from '../../shared/better-auth.
|
|
1
|
+
import { p as AuthContext, s as checkPassword } from '../../shared/better-auth.Dj2HyOmw.js';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.js';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.DPa2nz5L.js';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
package/dist/plugins/index.cjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const organization = require('../shared/better-auth.
|
|
3
|
+
const organization = require('../shared/better-auth.CeY8lCIq.cjs');
|
|
4
4
|
const plugins_twoFactor_index = require('./two-factor/index.cjs');
|
|
5
5
|
const plugins_username_index = require('./username/index.cjs');
|
|
6
6
|
const plugins_bearer_index = require('./bearer/index.cjs');
|
|
7
|
-
const socialProviders_index = require('../shared/better-auth.
|
|
7
|
+
const socialProviders_index = require('../shared/better-auth.CU2ZnFFo.cjs');
|
|
8
8
|
const plugins_magicLink_index = require('./magic-link/index.cjs');
|
|
9
9
|
const plugins_phoneNumber_index = require('./phone-number/index.cjs');
|
|
10
10
|
const plugins_anonymous_index = require('./anonymous/index.cjs');
|
|
11
|
-
const admin = require('../shared/better-auth.
|
|
11
|
+
const admin = require('../shared/better-auth.TnpcdNJo.cjs');
|
|
12
12
|
const plugins_genericOauth_index = require('./generic-oauth/index.cjs');
|
|
13
|
-
const plugins_jwt_index = require('../shared/better-auth.
|
|
13
|
+
const plugins_jwt_index = require('../shared/better-auth.johXc5IC.cjs');
|
|
14
14
|
const plugins_multiSession_index = require('./multi-session/index.cjs');
|
|
15
15
|
const plugins_emailOtp_index = require('./email-otp/index.cjs');
|
|
16
16
|
const plugins_oneTap_index = require('./one-tap/index.cjs');
|
|
17
17
|
const plugins_oauthProxy_index = require('./oauth-proxy/index.cjs');
|
|
18
18
|
const plugins_customSession_index = require('./custom-session/index.cjs');
|
|
19
19
|
const plugins_openApi_index = require('./open-api/index.cjs');
|
|
20
|
-
const plugins_oidcProvider_index = require('../shared/better-auth.
|
|
20
|
+
const plugins_oidcProvider_index = require('../shared/better-auth.BXW4aAiQ.cjs');
|
|
21
21
|
const plugins_captcha_index = require('./captcha/index.cjs');
|
|
22
|
-
const plugins_oneTimeToken_index = require('../shared/better-auth.
|
|
22
|
+
const plugins_oneTimeToken_index = require('../shared/better-auth.PIkdXr0U.cjs');
|
|
23
23
|
const plugins_haveibeenpwned_index = require('./haveibeenpwned/index.cjs');
|
|
24
24
|
const z = require('zod/v4');
|
|
25
25
|
const betterCall = require('better-call');
|
|
@@ -30,7 +30,7 @@ const url = require('../shared/better-auth.C-R0J0n1.cjs');
|
|
|
30
30
|
require('@better-auth/utils/binary');
|
|
31
31
|
const cookies_index = require('../cookies/index.cjs');
|
|
32
32
|
require('../shared/better-auth.BIMq4RPW.cjs');
|
|
33
|
-
require('../shared/better-auth.
|
|
33
|
+
require('../shared/better-auth.CSftMZoM.cjs');
|
|
34
34
|
require('./organization/access/index.cjs');
|
|
35
35
|
require('@better-auth/utils/random');
|
|
36
36
|
const hash = require('@better-auth/utils/hash');
|
package/dist/plugins/index.d.cts
CHANGED
|
@@ -3,8 +3,8 @@ export { adminAc, defaultAc, defaultRoles, defaultStatements, memberAc, ownerAc
|
|
|
3
3
|
export { TWO_FACTOR_ERROR_CODES, TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UserWithTwoFactor, twoFactor, twoFactorClient } from './two-factor/index.cjs';
|
|
4
4
|
export { USERNAME_ERROR_CODES, UsernameOptions, username } from './username/index.cjs';
|
|
5
5
|
export { bearer } from './bearer/index.cjs';
|
|
6
|
-
import { G as GenericEndpointContext, B as BetterAuthOptions } from '../shared/better-auth.
|
|
7
|
-
export { l as AuthEndpoint, m as AuthMiddleware, g as AuthPluginSchema, h as BetterAuthPlugin, I as InferOptionSchema, i as InferPluginErrorCodes, k as createAuthEndpoint, j as createAuthMiddleware, o as optionsMiddleware } from '../shared/better-auth.
|
|
6
|
+
import { G as GenericEndpointContext, B as BetterAuthOptions } from '../shared/better-auth.CiGummYu.cjs';
|
|
7
|
+
export { l as AuthEndpoint, m as AuthMiddleware, g as AuthPluginSchema, h as BetterAuthPlugin, I as InferOptionSchema, i as InferPluginErrorCodes, k as createAuthEndpoint, j as createAuthMiddleware, o as optionsMiddleware } from '../shared/better-auth.CiGummYu.cjs';
|
|
8
8
|
export { H as HIDE_METADATA } from '../shared/better-auth.DEHJp1rk.cjs';
|
|
9
9
|
export { magicLink } from './magic-link/index.cjs';
|
|
10
10
|
export { PhoneNumberOptions, UserWithPhoneNumber, phoneNumber } from './phone-number/index.cjs';
|
|
@@ -21,16 +21,16 @@ export { OpenAPIOptions, Path, generator, openAPI } from './open-api/index.cjs';
|
|
|
21
21
|
import { OIDCOptions, OIDCMetadata, OAuthAccessToken } from './oidc-provider/index.cjs';
|
|
22
22
|
export { AuthorizationQuery, Client, CodeVerificationValue, TokenBody, getClient, getMetadata, oidcProvider } from './oidc-provider/index.cjs';
|
|
23
23
|
export { captcha } from './captcha/index.cjs';
|
|
24
|
-
export { A as API_KEY_TABLE_NAME, E as ERROR_CODES, a as apiKey, d as defaultKeyHasher } from '../shared/better-auth.
|
|
24
|
+
export { A as API_KEY_TABLE_NAME, E as ERROR_CODES, a as apiKey, d as defaultKeyHasher } from '../shared/better-auth.B0e3ZzlM.cjs';
|
|
25
25
|
export { HaveIBeenPwnedOptions, haveIBeenPwned } from './haveibeenpwned/index.cjs';
|
|
26
26
|
export { oneTimeToken } from './one-time-token/index.cjs';
|
|
27
27
|
import * as better_call from 'better-call';
|
|
28
|
-
import * as
|
|
28
|
+
import * as z from 'zod/v4';
|
|
29
29
|
import './access/index.cjs';
|
|
30
30
|
import '../shared/better-auth.ZSfSbnQT.cjs';
|
|
31
31
|
import '@better-fetch/fetch';
|
|
32
32
|
import 'kysely';
|
|
33
|
-
import '../shared/better-auth.
|
|
33
|
+
import '../shared/better-auth.npEvGVS_.cjs';
|
|
34
34
|
import 'jose';
|
|
35
35
|
import 'zod/v4/core';
|
|
36
36
|
import 'better-sqlite3';
|
|
@@ -115,7 +115,7 @@ declare const mcp: (options: MCPOptions) => {
|
|
|
115
115
|
} : void>;
|
|
116
116
|
options: {
|
|
117
117
|
method: "GET";
|
|
118
|
-
query:
|
|
118
|
+
query: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
119
119
|
metadata: {
|
|
120
120
|
openapi: {
|
|
121
121
|
description: string;
|
|
@@ -193,7 +193,7 @@ declare const mcp: (options: MCPOptions) => {
|
|
|
193
193
|
}>;
|
|
194
194
|
options: {
|
|
195
195
|
method: "POST";
|
|
196
|
-
body:
|
|
196
|
+
body: z.ZodRecord<z.ZodAny, z.ZodAny>;
|
|
197
197
|
metadata: {
|
|
198
198
|
isAction: boolean;
|
|
199
199
|
};
|
|
@@ -291,14 +291,14 @@ declare const mcp: (options: MCPOptions) => {
|
|
|
291
291
|
}>;
|
|
292
292
|
options: {
|
|
293
293
|
method: "POST";
|
|
294
|
-
body:
|
|
295
|
-
redirect_uris:
|
|
296
|
-
token_endpoint_auth_method:
|
|
294
|
+
body: z.ZodObject<{
|
|
295
|
+
redirect_uris: z.ZodArray<z.ZodString>;
|
|
296
|
+
token_endpoint_auth_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
297
297
|
none: "none";
|
|
298
298
|
client_secret_basic: "client_secret_basic";
|
|
299
299
|
client_secret_post: "client_secret_post";
|
|
300
300
|
}>>>;
|
|
301
|
-
grant_types:
|
|
301
|
+
grant_types: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
302
302
|
authorization_code: "authorization_code";
|
|
303
303
|
password: "password";
|
|
304
304
|
refresh_token: "refresh_token";
|
|
@@ -307,24 +307,24 @@ declare const mcp: (options: MCPOptions) => {
|
|
|
307
307
|
"urn:ietf:params:oauth:grant-type:jwt-bearer": "urn:ietf:params:oauth:grant-type:jwt-bearer";
|
|
308
308
|
"urn:ietf:params:oauth:grant-type:saml2-bearer": "urn:ietf:params:oauth:grant-type:saml2-bearer";
|
|
309
309
|
}>>>>;
|
|
310
|
-
response_types:
|
|
310
|
+
response_types: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
311
311
|
code: "code";
|
|
312
312
|
token: "token";
|
|
313
313
|
}>>>>;
|
|
314
|
-
client_name:
|
|
315
|
-
client_uri:
|
|
316
|
-
logo_uri:
|
|
317
|
-
scope:
|
|
318
|
-
contacts:
|
|
319
|
-
tos_uri:
|
|
320
|
-
policy_uri:
|
|
321
|
-
jwks_uri:
|
|
322
|
-
jwks:
|
|
323
|
-
metadata:
|
|
324
|
-
software_id:
|
|
325
|
-
software_version:
|
|
326
|
-
software_statement:
|
|
327
|
-
},
|
|
314
|
+
client_name: z.ZodOptional<z.ZodString>;
|
|
315
|
+
client_uri: z.ZodOptional<z.ZodString>;
|
|
316
|
+
logo_uri: z.ZodOptional<z.ZodString>;
|
|
317
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
318
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
319
|
+
tos_uri: z.ZodOptional<z.ZodString>;
|
|
320
|
+
policy_uri: z.ZodOptional<z.ZodString>;
|
|
321
|
+
jwks_uri: z.ZodOptional<z.ZodString>;
|
|
322
|
+
jwks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
323
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
324
|
+
software_id: z.ZodOptional<z.ZodString>;
|
|
325
|
+
software_version: z.ZodOptional<z.ZodString>;
|
|
326
|
+
software_statement: z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
328
|
metadata: {
|
|
329
329
|
openapi: {
|
|
330
330
|
description: string;
|
package/dist/plugins/index.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ export { adminAc, defaultAc, defaultRoles, defaultStatements, memberAc, ownerAc
|
|
|
3
3
|
export { TWO_FACTOR_ERROR_CODES, TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UserWithTwoFactor, twoFactor, twoFactorClient } from './two-factor/index.mjs';
|
|
4
4
|
export { USERNAME_ERROR_CODES, UsernameOptions, username } from './username/index.mjs';
|
|
5
5
|
export { bearer } from './bearer/index.mjs';
|
|
6
|
-
import { G as GenericEndpointContext, B as BetterAuthOptions } from '../shared/better-auth.
|
|
7
|
-
export { l as AuthEndpoint, m as AuthMiddleware, g as AuthPluginSchema, h as BetterAuthPlugin, I as InferOptionSchema, i as InferPluginErrorCodes, k as createAuthEndpoint, j as createAuthMiddleware, o as optionsMiddleware } from '../shared/better-auth.
|
|
6
|
+
import { G as GenericEndpointContext, B as BetterAuthOptions } from '../shared/better-auth.CePXeKag.mjs';
|
|
7
|
+
export { l as AuthEndpoint, m as AuthMiddleware, g as AuthPluginSchema, h as BetterAuthPlugin, I as InferOptionSchema, i as InferPluginErrorCodes, k as createAuthEndpoint, j as createAuthMiddleware, o as optionsMiddleware } from '../shared/better-auth.CePXeKag.mjs';
|
|
8
8
|
export { H as HIDE_METADATA } from '../shared/better-auth.DEHJp1rk.mjs';
|
|
9
9
|
export { magicLink } from './magic-link/index.mjs';
|
|
10
10
|
export { PhoneNumberOptions, UserWithPhoneNumber, phoneNumber } from './phone-number/index.mjs';
|
|
@@ -21,16 +21,16 @@ export { OpenAPIOptions, Path, generator, openAPI } from './open-api/index.mjs';
|
|
|
21
21
|
import { OIDCOptions, OIDCMetadata, OAuthAccessToken } from './oidc-provider/index.mjs';
|
|
22
22
|
export { AuthorizationQuery, Client, CodeVerificationValue, TokenBody, getClient, getMetadata, oidcProvider } from './oidc-provider/index.mjs';
|
|
23
23
|
export { captcha } from './captcha/index.mjs';
|
|
24
|
-
export { A as API_KEY_TABLE_NAME, E as ERROR_CODES, a as apiKey, d as defaultKeyHasher } from '../shared/better-auth.
|
|
24
|
+
export { A as API_KEY_TABLE_NAME, E as ERROR_CODES, a as apiKey, d as defaultKeyHasher } from '../shared/better-auth.B1VHvePI.mjs';
|
|
25
25
|
export { HaveIBeenPwnedOptions, haveIBeenPwned } from './haveibeenpwned/index.mjs';
|
|
26
26
|
export { oneTimeToken } from './one-time-token/index.mjs';
|
|
27
27
|
import * as better_call from 'better-call';
|
|
28
|
-
import * as
|
|
28
|
+
import * as z from 'zod/v4';
|
|
29
29
|
import './access/index.mjs';
|
|
30
30
|
import '../shared/better-auth.ZSfSbnQT.mjs';
|
|
31
31
|
import '@better-fetch/fetch';
|
|
32
32
|
import 'kysely';
|
|
33
|
-
import '../shared/better-auth.
|
|
33
|
+
import '../shared/better-auth.IegS6fw_.mjs';
|
|
34
34
|
import 'jose';
|
|
35
35
|
import 'zod/v4/core';
|
|
36
36
|
import 'better-sqlite3';
|
|
@@ -115,7 +115,7 @@ declare const mcp: (options: MCPOptions) => {
|
|
|
115
115
|
} : void>;
|
|
116
116
|
options: {
|
|
117
117
|
method: "GET";
|
|
118
|
-
query:
|
|
118
|
+
query: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
119
119
|
metadata: {
|
|
120
120
|
openapi: {
|
|
121
121
|
description: string;
|
|
@@ -193,7 +193,7 @@ declare const mcp: (options: MCPOptions) => {
|
|
|
193
193
|
}>;
|
|
194
194
|
options: {
|
|
195
195
|
method: "POST";
|
|
196
|
-
body:
|
|
196
|
+
body: z.ZodRecord<z.ZodAny, z.ZodAny>;
|
|
197
197
|
metadata: {
|
|
198
198
|
isAction: boolean;
|
|
199
199
|
};
|
|
@@ -291,14 +291,14 @@ declare const mcp: (options: MCPOptions) => {
|
|
|
291
291
|
}>;
|
|
292
292
|
options: {
|
|
293
293
|
method: "POST";
|
|
294
|
-
body:
|
|
295
|
-
redirect_uris:
|
|
296
|
-
token_endpoint_auth_method:
|
|
294
|
+
body: z.ZodObject<{
|
|
295
|
+
redirect_uris: z.ZodArray<z.ZodString>;
|
|
296
|
+
token_endpoint_auth_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
297
297
|
none: "none";
|
|
298
298
|
client_secret_basic: "client_secret_basic";
|
|
299
299
|
client_secret_post: "client_secret_post";
|
|
300
300
|
}>>>;
|
|
301
|
-
grant_types:
|
|
301
|
+
grant_types: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
302
302
|
authorization_code: "authorization_code";
|
|
303
303
|
password: "password";
|
|
304
304
|
refresh_token: "refresh_token";
|
|
@@ -307,24 +307,24 @@ declare const mcp: (options: MCPOptions) => {
|
|
|
307
307
|
"urn:ietf:params:oauth:grant-type:jwt-bearer": "urn:ietf:params:oauth:grant-type:jwt-bearer";
|
|
308
308
|
"urn:ietf:params:oauth:grant-type:saml2-bearer": "urn:ietf:params:oauth:grant-type:saml2-bearer";
|
|
309
309
|
}>>>>;
|
|
310
|
-
response_types:
|
|
310
|
+
response_types: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
311
311
|
code: "code";
|
|
312
312
|
token: "token";
|
|
313
313
|
}>>>>;
|
|
314
|
-
client_name:
|
|
315
|
-
client_uri:
|
|
316
|
-
logo_uri:
|
|
317
|
-
scope:
|
|
318
|
-
contacts:
|
|
319
|
-
tos_uri:
|
|
320
|
-
policy_uri:
|
|
321
|
-
jwks_uri:
|
|
322
|
-
jwks:
|
|
323
|
-
metadata:
|
|
324
|
-
software_id:
|
|
325
|
-
software_version:
|
|
326
|
-
software_statement:
|
|
327
|
-
},
|
|
314
|
+
client_name: z.ZodOptional<z.ZodString>;
|
|
315
|
+
client_uri: z.ZodOptional<z.ZodString>;
|
|
316
|
+
logo_uri: z.ZodOptional<z.ZodString>;
|
|
317
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
318
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
319
|
+
tos_uri: z.ZodOptional<z.ZodString>;
|
|
320
|
+
policy_uri: z.ZodOptional<z.ZodString>;
|
|
321
|
+
jwks_uri: z.ZodOptional<z.ZodString>;
|
|
322
|
+
jwks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
323
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
324
|
+
software_id: z.ZodOptional<z.ZodString>;
|
|
325
|
+
software_version: z.ZodOptional<z.ZodString>;
|
|
326
|
+
software_statement: z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
328
|
metadata: {
|
|
329
329
|
openapi: {
|
|
330
330
|
description: string;
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export { adminAc, defaultAc, defaultRoles, defaultStatements, memberAc, ownerAc
|
|
|
3
3
|
export { TWO_FACTOR_ERROR_CODES, TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UserWithTwoFactor, twoFactor, twoFactorClient } from './two-factor/index.js';
|
|
4
4
|
export { USERNAME_ERROR_CODES, UsernameOptions, username } from './username/index.js';
|
|
5
5
|
export { bearer } from './bearer/index.js';
|
|
6
|
-
import { G as GenericEndpointContext, B as BetterAuthOptions } from '../shared/better-auth.
|
|
7
|
-
export { l as AuthEndpoint, m as AuthMiddleware, g as AuthPluginSchema, h as BetterAuthPlugin, I as InferOptionSchema, i as InferPluginErrorCodes, k as createAuthEndpoint, j as createAuthMiddleware, o as optionsMiddleware } from '../shared/better-auth.
|
|
6
|
+
import { G as GenericEndpointContext, B as BetterAuthOptions } from '../shared/better-auth.Dj2HyOmw.js';
|
|
7
|
+
export { l as AuthEndpoint, m as AuthMiddleware, g as AuthPluginSchema, h as BetterAuthPlugin, I as InferOptionSchema, i as InferPluginErrorCodes, k as createAuthEndpoint, j as createAuthMiddleware, o as optionsMiddleware } from '../shared/better-auth.Dj2HyOmw.js';
|
|
8
8
|
export { H as HIDE_METADATA } from '../shared/better-auth.DEHJp1rk.js';
|
|
9
9
|
export { magicLink } from './magic-link/index.js';
|
|
10
10
|
export { PhoneNumberOptions, UserWithPhoneNumber, phoneNumber } from './phone-number/index.js';
|
|
@@ -21,16 +21,16 @@ export { OpenAPIOptions, Path, generator, openAPI } from './open-api/index.js';
|
|
|
21
21
|
import { OIDCOptions, OIDCMetadata, OAuthAccessToken } from './oidc-provider/index.js';
|
|
22
22
|
export { AuthorizationQuery, Client, CodeVerificationValue, TokenBody, getClient, getMetadata, oidcProvider } from './oidc-provider/index.js';
|
|
23
23
|
export { captcha } from './captcha/index.js';
|
|
24
|
-
export { A as API_KEY_TABLE_NAME, E as ERROR_CODES, a as apiKey, d as defaultKeyHasher } from '../shared/better-auth.
|
|
24
|
+
export { A as API_KEY_TABLE_NAME, E as ERROR_CODES, a as apiKey, d as defaultKeyHasher } from '../shared/better-auth.CHvHihjD.js';
|
|
25
25
|
export { HaveIBeenPwnedOptions, haveIBeenPwned } from './haveibeenpwned/index.js';
|
|
26
26
|
export { oneTimeToken } from './one-time-token/index.js';
|
|
27
27
|
import * as better_call from 'better-call';
|
|
28
|
-
import * as
|
|
28
|
+
import * as z from 'zod/v4';
|
|
29
29
|
import './access/index.js';
|
|
30
30
|
import '../shared/better-auth.ZSfSbnQT.js';
|
|
31
31
|
import '@better-fetch/fetch';
|
|
32
32
|
import 'kysely';
|
|
33
|
-
import '../shared/better-auth.
|
|
33
|
+
import '../shared/better-auth.DPa2nz5L.js';
|
|
34
34
|
import 'jose';
|
|
35
35
|
import 'zod/v4/core';
|
|
36
36
|
import 'better-sqlite3';
|
|
@@ -115,7 +115,7 @@ declare const mcp: (options: MCPOptions) => {
|
|
|
115
115
|
} : void>;
|
|
116
116
|
options: {
|
|
117
117
|
method: "GET";
|
|
118
|
-
query:
|
|
118
|
+
query: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
119
119
|
metadata: {
|
|
120
120
|
openapi: {
|
|
121
121
|
description: string;
|
|
@@ -193,7 +193,7 @@ declare const mcp: (options: MCPOptions) => {
|
|
|
193
193
|
}>;
|
|
194
194
|
options: {
|
|
195
195
|
method: "POST";
|
|
196
|
-
body:
|
|
196
|
+
body: z.ZodRecord<z.ZodAny, z.ZodAny>;
|
|
197
197
|
metadata: {
|
|
198
198
|
isAction: boolean;
|
|
199
199
|
};
|
|
@@ -291,14 +291,14 @@ declare const mcp: (options: MCPOptions) => {
|
|
|
291
291
|
}>;
|
|
292
292
|
options: {
|
|
293
293
|
method: "POST";
|
|
294
|
-
body:
|
|
295
|
-
redirect_uris:
|
|
296
|
-
token_endpoint_auth_method:
|
|
294
|
+
body: z.ZodObject<{
|
|
295
|
+
redirect_uris: z.ZodArray<z.ZodString>;
|
|
296
|
+
token_endpoint_auth_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
297
297
|
none: "none";
|
|
298
298
|
client_secret_basic: "client_secret_basic";
|
|
299
299
|
client_secret_post: "client_secret_post";
|
|
300
300
|
}>>>;
|
|
301
|
-
grant_types:
|
|
301
|
+
grant_types: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
302
302
|
authorization_code: "authorization_code";
|
|
303
303
|
password: "password";
|
|
304
304
|
refresh_token: "refresh_token";
|
|
@@ -307,24 +307,24 @@ declare const mcp: (options: MCPOptions) => {
|
|
|
307
307
|
"urn:ietf:params:oauth:grant-type:jwt-bearer": "urn:ietf:params:oauth:grant-type:jwt-bearer";
|
|
308
308
|
"urn:ietf:params:oauth:grant-type:saml2-bearer": "urn:ietf:params:oauth:grant-type:saml2-bearer";
|
|
309
309
|
}>>>>;
|
|
310
|
-
response_types:
|
|
310
|
+
response_types: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
311
311
|
code: "code";
|
|
312
312
|
token: "token";
|
|
313
313
|
}>>>>;
|
|
314
|
-
client_name:
|
|
315
|
-
client_uri:
|
|
316
|
-
logo_uri:
|
|
317
|
-
scope:
|
|
318
|
-
contacts:
|
|
319
|
-
tos_uri:
|
|
320
|
-
policy_uri:
|
|
321
|
-
jwks_uri:
|
|
322
|
-
jwks:
|
|
323
|
-
metadata:
|
|
324
|
-
software_id:
|
|
325
|
-
software_version:
|
|
326
|
-
software_statement:
|
|
327
|
-
},
|
|
314
|
+
client_name: z.ZodOptional<z.ZodString>;
|
|
315
|
+
client_uri: z.ZodOptional<z.ZodString>;
|
|
316
|
+
logo_uri: z.ZodOptional<z.ZodString>;
|
|
317
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
318
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
319
|
+
tos_uri: z.ZodOptional<z.ZodString>;
|
|
320
|
+
policy_uri: z.ZodOptional<z.ZodString>;
|
|
321
|
+
jwks_uri: z.ZodOptional<z.ZodString>;
|
|
322
|
+
jwks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
323
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
324
|
+
software_id: z.ZodOptional<z.ZodString>;
|
|
325
|
+
software_version: z.ZodOptional<z.ZodString>;
|
|
326
|
+
software_statement: z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
328
|
metadata: {
|
|
329
329
|
openapi: {
|
|
330
330
|
description: string;
|