better-auth 1.3.13 → 1.3.15
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 +1 -1
- package/dist/adapters/drizzle-adapter/index.d.mts +1 -1
- package/dist/adapters/drizzle-adapter/index.d.ts +1 -1
- package/dist/adapters/index.d.cts +2 -2
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/index.d.ts +2 -2
- package/dist/adapters/kysely-adapter/index.cjs +1 -1
- package/dist/adapters/kysely-adapter/index.d.cts +1 -1
- package/dist/adapters/kysely-adapter/index.d.mts +1 -1
- package/dist/adapters/kysely-adapter/index.d.ts +1 -1
- package/dist/adapters/kysely-adapter/index.mjs +1 -1
- package/dist/adapters/memory-adapter/index.cjs +1 -1
- package/dist/adapters/memory-adapter/index.d.cts +1 -1
- package/dist/adapters/memory-adapter/index.d.mts +1 -1
- package/dist/adapters/memory-adapter/index.d.ts +1 -1
- package/dist/adapters/memory-adapter/index.mjs +1 -1
- package/dist/adapters/mongodb-adapter/index.d.cts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.mts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.ts +1 -1
- package/dist/adapters/prisma-adapter/index.d.cts +1 -1
- package/dist/adapters/prisma-adapter/index.d.mts +1 -1
- package/dist/adapters/prisma-adapter/index.d.ts +1 -1
- package/dist/adapters/test.d.cts +1 -1
- package/dist/adapters/test.d.mts +1 -1
- package/dist/adapters/test.d.ts +1 -1
- package/dist/api/index.cjs +3 -3
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.mjs +5 -5
- package/dist/client/index.cjs +3 -3
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.mts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.mjs +3 -3
- package/dist/client/plugins/index.d.cts +3 -3
- package/dist/client/plugins/index.d.mts +3 -3
- package/dist/client/plugins/index.d.ts +3 -3
- package/dist/client/react/index.cjs +2 -2
- package/dist/client/react/index.d.cts +3 -3
- package/dist/client/react/index.d.mts +3 -3
- package/dist/client/react/index.d.ts +3 -3
- package/dist/client/react/index.mjs +2 -2
- package/dist/client/solid/index.cjs +2 -2
- package/dist/client/solid/index.d.cts +9 -9
- package/dist/client/solid/index.d.mts +9 -9
- package/dist/client/solid/index.d.ts +9 -9
- package/dist/client/solid/index.mjs +2 -2
- package/dist/client/svelte/index.cjs +2 -2
- package/dist/client/svelte/index.d.cts +3 -3
- package/dist/client/svelte/index.d.mts +3 -3
- package/dist/client/svelte/index.d.ts +3 -3
- package/dist/client/svelte/index.mjs +2 -2
- package/dist/client/vue/index.cjs +2 -2
- package/dist/client/vue/index.d.cts +3 -3
- package/dist/client/vue/index.d.mts +3 -3
- package/dist/client/vue/index.d.ts +3 -3
- package/dist/client/vue/index.mjs +2 -2
- package/dist/cookies/index.cjs +1 -1
- package/dist/cookies/index.d.cts +1 -1
- package/dist/cookies/index.d.mts +1 -1
- package/dist/cookies/index.d.ts +1 -1
- package/dist/cookies/index.mjs +1 -1
- package/dist/db/index.cjs +3 -3
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.d.ts +2 -2
- package/dist/db/index.mjs +3 -3
- package/dist/index.cjs +7 -7
- 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 +7 -7
- package/dist/integrations/next-js.cjs +4 -4
- package/dist/integrations/next-js.d.cts +1 -1
- package/dist/integrations/next-js.d.mts +1 -1
- package/dist/integrations/next-js.d.ts +1 -1
- package/dist/integrations/next-js.mjs +4 -4
- package/dist/integrations/node.d.cts +1 -1
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/node.d.ts +1 -1
- package/dist/integrations/react-start.cjs +4 -4
- package/dist/integrations/react-start.d.cts +1 -1
- package/dist/integrations/react-start.d.mts +1 -1
- package/dist/integrations/react-start.d.ts +1 -1
- package/dist/integrations/react-start.mjs +4 -4
- package/dist/integrations/svelte-kit.cjs +3 -3
- package/dist/integrations/svelte-kit.d.cts +1 -1
- package/dist/integrations/svelte-kit.d.mts +1 -1
- package/dist/integrations/svelte-kit.d.ts +1 -1
- package/dist/integrations/svelte-kit.mjs +3 -3
- package/dist/oauth2/index.cjs +3 -3
- package/dist/oauth2/index.d.cts +2 -2
- package/dist/oauth2/index.d.mts +2 -2
- package/dist/oauth2/index.d.ts +2 -2
- package/dist/oauth2/index.mjs +3 -3
- package/dist/plugins/admin/index.cjs +4 -4
- package/dist/plugins/admin/index.d.cts +16 -1
- package/dist/plugins/admin/index.d.mts +16 -1
- package/dist/plugins/admin/index.d.ts +16 -1
- package/dist/plugins/admin/index.mjs +4 -4
- package/dist/plugins/anonymous/index.cjs +3 -3
- package/dist/plugins/anonymous/index.d.cts +1 -1
- package/dist/plugins/anonymous/index.d.mts +1 -1
- package/dist/plugins/anonymous/index.d.ts +1 -1
- package/dist/plugins/anonymous/index.mjs +3 -3
- package/dist/plugins/bearer/index.cjs +3 -3
- package/dist/plugins/bearer/index.d.cts +1 -1
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/bearer/index.d.ts +1 -1
- package/dist/plugins/bearer/index.mjs +3 -3
- package/dist/plugins/captcha/index.d.cts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.ts +1 -1
- package/dist/plugins/custom-session/index.cjs +7 -9
- package/dist/plugins/custom-session/index.d.cts +1 -1
- package/dist/plugins/custom-session/index.d.mts +1 -1
- package/dist/plugins/custom-session/index.d.ts +1 -1
- package/dist/plugins/custom-session/index.mjs +7 -9
- package/dist/plugins/device-authorization/index.cjs +18 -50
- package/dist/plugins/device-authorization/index.d.cts +1 -1
- package/dist/plugins/device-authorization/index.d.mts +1 -1
- package/dist/plugins/device-authorization/index.d.ts +1 -1
- package/dist/plugins/device-authorization/index.mjs +18 -50
- package/dist/plugins/email-otp/index.cjs +20 -60
- package/dist/plugins/email-otp/index.d.cts +1 -1
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.ts +1 -1
- package/dist/plugins/email-otp/index.mjs +20 -60
- package/dist/plugins/generic-oauth/index.cjs +24 -42
- package/dist/plugins/generic-oauth/index.d.cts +1 -1
- package/dist/plugins/generic-oauth/index.d.mts +1 -1
- package/dist/plugins/generic-oauth/index.d.ts +1 -1
- package/dist/plugins/generic-oauth/index.mjs +24 -42
- package/dist/plugins/haveibeenpwned/index.cjs +3 -3
- package/dist/plugins/haveibeenpwned/index.d.cts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.ts +1 -1
- package/dist/plugins/haveibeenpwned/index.mjs +3 -3
- package/dist/plugins/index.cjs +10 -9
- package/dist/plugins/index.d.cts +3 -3
- package/dist/plugins/index.d.mts +3 -3
- package/dist/plugins/index.d.ts +3 -3
- package/dist/plugins/index.mjs +12 -11
- package/dist/plugins/jwt/index.cjs +3 -3
- package/dist/plugins/jwt/index.d.cts +1 -1
- package/dist/plugins/jwt/index.d.mts +1 -1
- package/dist/plugins/jwt/index.d.ts +1 -1
- package/dist/plugins/jwt/index.mjs +3 -3
- package/dist/plugins/magic-link/index.cjs +20 -30
- package/dist/plugins/magic-link/index.mjs +20 -30
- package/dist/plugins/multi-session/index.cjs +5 -9
- package/dist/plugins/multi-session/index.d.cts +1 -1
- package/dist/plugins/multi-session/index.d.mts +1 -1
- package/dist/plugins/multi-session/index.d.ts +1 -1
- package/dist/plugins/multi-session/index.mjs +5 -9
- package/dist/plugins/oauth-proxy/index.cjs +8 -10
- package/dist/plugins/oauth-proxy/index.d.cts +2 -1
- package/dist/plugins/oauth-proxy/index.d.mts +2 -1
- package/dist/plugins/oauth-proxy/index.d.ts +2 -1
- package/dist/plugins/oauth-proxy/index.mjs +8 -10
- package/dist/plugins/oidc-provider/index.cjs +4 -4
- package/dist/plugins/oidc-provider/index.d.cts +9 -9
- package/dist/plugins/oidc-provider/index.d.mts +9 -9
- package/dist/plugins/oidc-provider/index.d.ts +9 -9
- package/dist/plugins/oidc-provider/index.mjs +4 -4
- package/dist/plugins/one-tap/index.cjs +6 -6
- package/dist/plugins/one-tap/index.mjs +6 -6
- package/dist/plugins/one-time-token/index.cjs +6 -6
- package/dist/plugins/one-time-token/index.d.cts +1 -1
- package/dist/plugins/one-time-token/index.d.mts +1 -1
- package/dist/plugins/one-time-token/index.d.ts +1 -1
- package/dist/plugins/one-time-token/index.mjs +6 -6
- package/dist/plugins/open-api/index.cjs +3 -3
- package/dist/plugins/open-api/index.d.cts +1 -1
- package/dist/plugins/open-api/index.d.mts +1 -1
- package/dist/plugins/open-api/index.d.ts +1 -1
- package/dist/plugins/open-api/index.mjs +3 -3
- package/dist/plugins/organization/access/index.d.cts +25 -25
- package/dist/plugins/organization/access/index.d.mts +25 -25
- package/dist/plugins/organization/access/index.d.ts +25 -25
- package/dist/plugins/organization/index.cjs +6 -6
- package/dist/plugins/organization/index.d.cts +77 -13
- package/dist/plugins/organization/index.d.mts +77 -13
- package/dist/plugins/organization/index.d.ts +77 -13
- package/dist/plugins/organization/index.mjs +6 -6
- package/dist/plugins/passkey/index.cjs +14 -18
- package/dist/plugins/passkey/index.d.cts +2 -2
- package/dist/plugins/passkey/index.d.mts +2 -2
- package/dist/plugins/passkey/index.d.ts +2 -2
- package/dist/plugins/passkey/index.mjs +14 -18
- package/dist/plugins/phone-number/index.cjs +23 -39
- package/dist/plugins/phone-number/index.d.cts +1 -1
- package/dist/plugins/phone-number/index.d.mts +1 -1
- package/dist/plugins/phone-number/index.d.ts +1 -1
- package/dist/plugins/phone-number/index.mjs +23 -39
- package/dist/plugins/siwe/index.cjs +3 -3
- package/dist/plugins/siwe/index.d.cts +1 -1
- package/dist/plugins/siwe/index.d.mts +1 -1
- package/dist/plugins/siwe/index.d.ts +1 -1
- package/dist/plugins/siwe/index.mjs +3 -3
- package/dist/plugins/sso/index.cjs +61 -87
- package/dist/plugins/sso/index.d.cts +3 -3
- package/dist/plugins/sso/index.d.mts +3 -3
- package/dist/plugins/sso/index.d.ts +3 -3
- package/dist/plugins/sso/index.mjs +61 -87
- package/dist/plugins/two-factor/index.cjs +18 -48
- package/dist/plugins/two-factor/index.d.cts +1 -1
- package/dist/plugins/two-factor/index.d.mts +1 -1
- package/dist/plugins/two-factor/index.d.ts +1 -1
- package/dist/plugins/two-factor/index.mjs +18 -48
- package/dist/plugins/username/index.cjs +31 -16
- package/dist/plugins/username/index.d.cts +3 -3
- package/dist/plugins/username/index.d.mts +3 -3
- package/dist/plugins/username/index.d.ts +3 -3
- package/dist/plugins/username/index.mjs +31 -16
- package/dist/shared/{better-auth.DNMTw_ds.d.ts → better-auth.6RZwqXI-.d.ts} +1 -1
- package/dist/shared/{better-auth.Btbv22jM.mjs → better-auth.7DsuGNVf.mjs} +5 -3
- package/dist/shared/{better-auth.C1AWk7z7.mjs → better-auth.AYS43XM1.mjs} +1 -1
- package/dist/shared/{better-auth.g33XFa_C.mjs → better-auth.B-3-wkBV.mjs} +167 -262
- package/dist/shared/{better-auth.BkcRiga0.cjs → better-auth.B-RhOtHf.cjs} +1 -1
- package/dist/shared/{better-auth.DTgTiHPJ.d.ts → better-auth.B1CNK_q_.d.ts} +1 -1
- package/dist/shared/{better-auth.BnOSz3eR.mjs → better-auth.BBFsjzvB.mjs} +2 -2
- package/dist/shared/{better-auth.Bhva6lEh.cjs → better-auth.BBk8MRta.cjs} +1 -1
- package/dist/shared/{better-auth.BYskLPvJ.d.ts → better-auth.BCHg51sY.d.ts} +1 -1
- package/dist/shared/{better-auth.C1Tqa_El.d.cts → better-auth.BTUgO__s.d.mts} +1 -1
- package/dist/shared/{better-auth.B5O-5tFi.cjs → better-auth.BclXpYOz.cjs} +5 -3
- package/dist/shared/{better-auth.DHi8l3iG.d.mts → better-auth.BeDYIF5-.d.mts} +1 -1
- package/dist/shared/{better-auth.yovXNUaS.d.cts → better-auth.BeOpqAwl.d.cts} +1 -1
- package/dist/shared/{better-auth.Brg-UO7k.d.ts → better-auth.BsnsCAjn.d.ts} +7 -7
- package/dist/shared/{better-auth.fV_ra52g.mjs → better-auth.C3bLnul-.mjs} +1 -1
- package/dist/shared/{better-auth.D6pGomIg.cjs → better-auth.C5s1d_o-.cjs} +75 -150
- package/dist/shared/{better-auth.C29_dxUJ.cjs → better-auth.CL5zQvRZ.cjs} +167 -262
- package/dist/shared/{better-auth.C0-0BnjK.d.mts → better-auth.CkCyjQ6r.d.mts} +1 -1
- package/dist/shared/{better-auth.CBY7cUGy.mjs → better-auth.Co88PbP3.mjs} +6 -10
- package/dist/shared/{better-auth.BPua9lvR.mjs → better-auth.D-4EtUes.mjs} +75 -150
- package/dist/shared/{better-auth.DXGtScCP.cjs → better-auth.D2444EHu.cjs} +2 -2
- package/dist/shared/{better-auth.DTyvXiMc.cjs → better-auth.DCOXb_2e.cjs} +48 -84
- package/dist/shared/{better-auth.DRukcsOo.d.mts → better-auth.DDOCnCqi.d.cts} +1 -1
- package/dist/shared/{better-auth.B1ufdjSo.mjs → better-auth.DFfA4Mzz.mjs} +5 -5
- package/dist/shared/{better-auth.CXM9s0dx.cjs → better-auth.DIfV2UBl.cjs} +1 -1
- package/dist/shared/{better-auth.spSlDaxD.cjs → better-auth.DP5SyJ_2.cjs} +68 -117
- package/dist/shared/{better-auth.DhsGZ30Q.cjs → better-auth.DUNU0obG.cjs} +1 -1
- package/dist/shared/{better-auth.Ddv1-cj-.mjs → better-auth.DUTxy-hg.mjs} +2 -2
- package/dist/shared/{better-auth.D07k8aB_.d.cts → better-auth.DY9WffSn.d.cts} +1 -1
- package/dist/shared/{better-auth.Bo_XNm3Z.mjs → better-auth.Df_5rmaV.mjs} +24 -48
- package/dist/shared/{better-auth.DL8idXrv.mjs → better-auth.DhQzyejE.mjs} +1 -1
- package/dist/shared/{better-auth.Gu1qAjVj.d.mts → better-auth.DhRmxPro.d.mts} +7 -7
- package/dist/shared/{better-auth.Bb_sp3q4.cjs → better-auth.DnBI2Nus.cjs} +5 -5
- package/dist/shared/{better-auth.Dsq5BCiY.mjs → better-auth.DteMRrRX.mjs} +68 -117
- package/dist/shared/{better-auth.demy6Fla.cjs → better-auth.DxN8-4Pz.cjs} +24 -48
- package/dist/shared/{better-auth.2jEckJ7k.cjs → better-auth.SS_wBML-.cjs} +2 -2
- package/dist/shared/{better-auth.3naUdTMW.mjs → better-auth.T3Ux10v9.mjs} +1 -1
- package/dist/shared/{better-auth.B1kKIM0o.d.cts → better-auth.U9CXSJA_.d.cts} +7 -7
- package/dist/shared/{better-auth.CvVm_hFg.cjs → better-auth.iE8wqp5_.cjs} +1 -1
- package/dist/shared/{better-auth.ffWeg50w.mjs → better-auth.msGOU0m9.mjs} +1 -1
- package/dist/shared/{better-auth.Cj28z0kQ.mjs → better-auth.vd9ibIsl.mjs} +48 -84
- package/dist/shared/{better-auth.CAcHGnwq.cjs → better-auth.wBgaxGEw.cjs} +6 -10
- package/dist/social-providers/index.cjs +3 -3
- package/dist/social-providers/index.mjs +3 -3
- package/dist/test-utils/index.cjs +11 -11
- package/dist/test-utils/index.d.cts +12 -12
- package/dist/test-utils/index.d.mts +12 -12
- package/dist/test-utils/index.d.ts +12 -12
- package/dist/test-utils/index.mjs +11 -11
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +2 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
|
-
import '../../shared/better-auth.
|
|
4
|
-
import { a as createAuthEndpoint, c as createAuthMiddleware } from '../../shared/better-auth.
|
|
5
|
-
import { s as setSessionCookie } from '../../shared/better-auth.
|
|
3
|
+
import '../../shared/better-auth.D-4EtUes.mjs';
|
|
4
|
+
import { a as createAuthEndpoint, c as createAuthMiddleware } from '../../shared/better-auth.Co88PbP3.mjs';
|
|
5
|
+
import { s as setSessionCookie } from '../../shared/better-auth.C3bLnul-.mjs';
|
|
6
6
|
import '../../shared/better-auth.Dlx1jCB2.mjs';
|
|
7
7
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
8
8
|
import '../../shared/better-auth.C4g12FAA.mjs';
|
|
@@ -123,12 +123,8 @@ const emailOTP = (options) => {
|
|
|
123
123
|
{
|
|
124
124
|
method: "POST",
|
|
125
125
|
body: z.object({
|
|
126
|
-
email: z.string({}).
|
|
127
|
-
|
|
128
|
-
}),
|
|
129
|
-
type: z.enum(types).meta({
|
|
130
|
-
description: "Type of the OTP"
|
|
131
|
-
})
|
|
126
|
+
email: z.string({}).describe("Email address to send the OTP"),
|
|
127
|
+
type: z.enum(types).describe("Type of the OTP")
|
|
132
128
|
}),
|
|
133
129
|
metadata: {
|
|
134
130
|
openapi: {
|
|
@@ -251,13 +247,8 @@ const emailOTP = (options) => {
|
|
|
251
247
|
{
|
|
252
248
|
method: "POST",
|
|
253
249
|
body: z.object({
|
|
254
|
-
email: z.string({}).
|
|
255
|
-
|
|
256
|
-
}),
|
|
257
|
-
type: z.enum(types).meta({
|
|
258
|
-
required: true,
|
|
259
|
-
description: "Type of the OTP"
|
|
260
|
-
})
|
|
250
|
+
email: z.string({}).describe("Email address to send the OTP"),
|
|
251
|
+
type: z.enum(types).describe("Type of the OTP")
|
|
261
252
|
}),
|
|
262
253
|
metadata: {
|
|
263
254
|
SERVER_ONLY: true,
|
|
@@ -310,13 +301,8 @@ const emailOTP = (options) => {
|
|
|
310
301
|
{
|
|
311
302
|
method: "GET",
|
|
312
303
|
query: z.object({
|
|
313
|
-
email: z.string({}).
|
|
314
|
-
|
|
315
|
-
}),
|
|
316
|
-
type: z.enum(types).meta({
|
|
317
|
-
required: true,
|
|
318
|
-
description: "Type of the OTP"
|
|
319
|
-
})
|
|
304
|
+
email: z.string({}).describe("Email address the OTP was sent to"),
|
|
305
|
+
type: z.enum(types).describe("Type of the OTP")
|
|
320
306
|
}),
|
|
321
307
|
metadata: {
|
|
322
308
|
SERVER_ONLY: true,
|
|
@@ -395,17 +381,9 @@ const emailOTP = (options) => {
|
|
|
395
381
|
{
|
|
396
382
|
method: "POST",
|
|
397
383
|
body: z.object({
|
|
398
|
-
email: z.string().
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
type: z.enum(types).meta({
|
|
402
|
-
required: true,
|
|
403
|
-
description: "Type of the OTP"
|
|
404
|
-
}),
|
|
405
|
-
otp: z.string().meta({
|
|
406
|
-
required: true,
|
|
407
|
-
description: "OTP to verify"
|
|
408
|
-
})
|
|
384
|
+
email: z.string().describe("Email address the OTP was sent to"),
|
|
385
|
+
type: z.enum(types).describe("Type of the OTP"),
|
|
386
|
+
otp: z.string().describe("OTP to verify")
|
|
409
387
|
}),
|
|
410
388
|
metadata: {
|
|
411
389
|
openapi: {
|
|
@@ -508,13 +486,8 @@ const emailOTP = (options) => {
|
|
|
508
486
|
{
|
|
509
487
|
method: "POST",
|
|
510
488
|
body: z.object({
|
|
511
|
-
email: z.string({}).
|
|
512
|
-
|
|
513
|
-
}),
|
|
514
|
-
otp: z.string().meta({
|
|
515
|
-
required: true,
|
|
516
|
-
description: "OTP to verify"
|
|
517
|
-
})
|
|
489
|
+
email: z.string({}).describe("Email address to verify"),
|
|
490
|
+
otp: z.string().describe("OTP to verify")
|
|
518
491
|
}),
|
|
519
492
|
metadata: {
|
|
520
493
|
openapi: {
|
|
@@ -673,13 +646,8 @@ const emailOTP = (options) => {
|
|
|
673
646
|
{
|
|
674
647
|
method: "POST",
|
|
675
648
|
body: z.object({
|
|
676
|
-
email: z.string({}).
|
|
677
|
-
|
|
678
|
-
}),
|
|
679
|
-
otp: z.string().meta({
|
|
680
|
-
required: true,
|
|
681
|
-
description: "OTP sent to the email"
|
|
682
|
-
})
|
|
649
|
+
email: z.string({}).describe("Email address to sign in"),
|
|
650
|
+
otp: z.string().describe("OTP sent to the email")
|
|
683
651
|
}),
|
|
684
652
|
metadata: {
|
|
685
653
|
openapi: {
|
|
@@ -838,9 +806,7 @@ const emailOTP = (options) => {
|
|
|
838
806
|
{
|
|
839
807
|
method: "POST",
|
|
840
808
|
body: z.object({
|
|
841
|
-
email: z.string().
|
|
842
|
-
description: "Email address to send the OTP"
|
|
843
|
-
})
|
|
809
|
+
email: z.string().describe("Email address to send the OTP")
|
|
844
810
|
}),
|
|
845
811
|
metadata: {
|
|
846
812
|
openapi: {
|
|
@@ -917,15 +883,9 @@ const emailOTP = (options) => {
|
|
|
917
883
|
{
|
|
918
884
|
method: "POST",
|
|
919
885
|
body: z.object({
|
|
920
|
-
email: z.string().
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
otp: z.string().meta({
|
|
924
|
-
description: "OTP sent to the email"
|
|
925
|
-
}),
|
|
926
|
-
password: z.string().meta({
|
|
927
|
-
description: "New password"
|
|
928
|
-
})
|
|
886
|
+
email: z.string().describe("Email address to reset the password"),
|
|
887
|
+
otp: z.string().describe("OTP sent to the email"),
|
|
888
|
+
password: z.string().describe("New password")
|
|
929
889
|
}),
|
|
930
890
|
metadata: {
|
|
931
891
|
openapi: {
|
|
@@ -4,9 +4,9 @@ const fetch = require('@better-fetch/fetch');
|
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
5
|
const jose = require('jose');
|
|
6
6
|
const z = require('zod');
|
|
7
|
-
const socialProviders_index = require('../../shared/better-auth.
|
|
8
|
-
const session = require('../../shared/better-auth.
|
|
9
|
-
const cookies_index = require('../../shared/better-auth.
|
|
7
|
+
const socialProviders_index = require('../../shared/better-auth.C5s1d_o-.cjs');
|
|
8
|
+
const session = require('../../shared/better-auth.wBgaxGEw.cjs');
|
|
9
|
+
const cookies_index = require('../../shared/better-auth.DIfV2UBl.cjs');
|
|
10
10
|
require('../../shared/better-auth.C0qxpMUS.cjs');
|
|
11
11
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
12
12
|
require('../../shared/better-auth.DTvRBuq4.cjs');
|
|
@@ -207,27 +207,19 @@ const genericOAuth = (options) => {
|
|
|
207
207
|
{
|
|
208
208
|
method: "POST",
|
|
209
209
|
body: z__namespace.object({
|
|
210
|
-
providerId: z__namespace.string().
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
description: "Disable redirect"
|
|
224
|
-
}).optional(),
|
|
225
|
-
scopes: z__namespace.array(z__namespace.string()).meta({
|
|
226
|
-
description: "Scopes to be passed to the provider authorization request."
|
|
227
|
-
}).optional(),
|
|
228
|
-
requestSignUp: z__namespace.boolean().meta({
|
|
229
|
-
description: "Explicitly request sign-up. Useful when disableImplicitSignUp is true for this provider. Eg: false"
|
|
230
|
-
}).optional()
|
|
210
|
+
providerId: z__namespace.string().describe("The provider ID for the OAuth provider"),
|
|
211
|
+
callbackURL: z__namespace.string().describe("The URL to redirect to after sign in").optional(),
|
|
212
|
+
errorCallbackURL: z__namespace.string().describe("The URL to redirect to if an error occurs").optional(),
|
|
213
|
+
newUserCallbackURL: z__namespace.string().describe(
|
|
214
|
+
"The URL to redirect to after login if the user is new. Eg: "
|
|
215
|
+
).optional(),
|
|
216
|
+
disableRedirect: z__namespace.boolean().describe("Disable redirect").optional(),
|
|
217
|
+
scopes: z__namespace.array(z__namespace.string()).describe(
|
|
218
|
+
"Scopes to be passed to the provider authorization request."
|
|
219
|
+
).optional(),
|
|
220
|
+
requestSignUp: z__namespace.boolean().describe(
|
|
221
|
+
"Explicitly request sign-up. Useful when disableImplicitSignUp is true for this provider. Eg: false"
|
|
222
|
+
).optional()
|
|
231
223
|
}),
|
|
232
224
|
metadata: {
|
|
233
225
|
openapi: {
|
|
@@ -341,18 +333,10 @@ const genericOAuth = (options) => {
|
|
|
341
333
|
{
|
|
342
334
|
method: "GET",
|
|
343
335
|
query: z__namespace.object({
|
|
344
|
-
code: z__namespace.string().
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
description: "The error message, if any"
|
|
349
|
-
}).optional(),
|
|
350
|
-
error_description: z__namespace.string().meta({
|
|
351
|
-
description: "The error description, if any"
|
|
352
|
-
}).optional(),
|
|
353
|
-
state: z__namespace.string().meta({
|
|
354
|
-
description: "The state parameter from the OAuth2 request"
|
|
355
|
-
}).optional()
|
|
336
|
+
code: z__namespace.string().describe("The OAuth2 code").optional(),
|
|
337
|
+
error: z__namespace.string().describe("The error message, if any").optional(),
|
|
338
|
+
error_description: z__namespace.string().describe("The error description, if any").optional(),
|
|
339
|
+
state: z__namespace.string().describe("The state parameter from the OAuth2 request").optional()
|
|
356
340
|
}),
|
|
357
341
|
metadata: {
|
|
358
342
|
client: false,
|
|
@@ -596,15 +580,13 @@ const genericOAuth = (options) => {
|
|
|
596
580
|
* This is useful for requesting additional permissions when
|
|
597
581
|
* linking a social account compared to the initial authentication.
|
|
598
582
|
*/
|
|
599
|
-
scopes: z__namespace.array(z__namespace.string()).
|
|
600
|
-
description: "Additional scopes to request when linking the account"
|
|
601
|
-
}).optional(),
|
|
583
|
+
scopes: z__namespace.array(z__namespace.string()).describe("Additional scopes to request when linking the account").optional(),
|
|
602
584
|
/**
|
|
603
585
|
* The URL to redirect to if there is an error during the link process.
|
|
604
586
|
*/
|
|
605
|
-
errorCallbackURL: z__namespace.string().
|
|
606
|
-
|
|
607
|
-
|
|
587
|
+
errorCallbackURL: z__namespace.string().describe(
|
|
588
|
+
"The URL to redirect to if there is an error during the link process"
|
|
589
|
+
).optional()
|
|
608
590
|
}),
|
|
609
591
|
use: [session.sessionMiddleware],
|
|
610
592
|
metadata: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { O as OAuth2Tokens, a as OAuth2UserInfo, b as OAuthProvider, P as ProviderOptions } from '../../shared/better-auth.7zTmTxT4.cjs';
|
|
3
|
-
import { U as User, d as AuthContext } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, d as AuthContext } from '../../shared/better-auth.U9CXSJA_.cjs';
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
6
|
import 'kysely';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { O as OAuth2Tokens, a as OAuth2UserInfo, b as OAuthProvider, P as ProviderOptions } from '../../shared/better-auth.BHPr8J54.mjs';
|
|
3
|
-
import { U as User, d as AuthContext } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, d as AuthContext } from '../../shared/better-auth.DhRmxPro.mjs';
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
6
|
import 'kysely';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { O as OAuth2Tokens, a as OAuth2UserInfo, b as OAuthProvider, P as ProviderOptions } from '../../shared/better-auth.C6qXK08w.js';
|
|
3
|
-
import { U as User, d as AuthContext } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, d as AuthContext } from '../../shared/better-auth.BsnsCAjn.js';
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
6
|
import 'kysely';
|
|
@@ -2,9 +2,9 @@ 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';
|
|
5
|
-
import { g as generateState, c as createAuthorizationURL, p as parseState, v as validateAuthorizationCode, j as handleOAuthUserInfo, r as refreshAccessToken } from '../../shared/better-auth.
|
|
6
|
-
import { a as createAuthEndpoint, s as sessionMiddleware, B as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
-
import { s as setSessionCookie } from '../../shared/better-auth.
|
|
5
|
+
import { g as generateState, c as createAuthorizationURL, p as parseState, v as validateAuthorizationCode, j as handleOAuthUserInfo, r as refreshAccessToken } from '../../shared/better-auth.D-4EtUes.mjs';
|
|
6
|
+
import { a as createAuthEndpoint, s as sessionMiddleware, B as BASE_ERROR_CODES } from '../../shared/better-auth.Co88PbP3.mjs';
|
|
7
|
+
import { s as setSessionCookie } from '../../shared/better-auth.C3bLnul-.mjs';
|
|
8
8
|
import '../../shared/better-auth.Dlx1jCB2.mjs';
|
|
9
9
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
10
10
|
import '../../shared/better-auth.C4g12FAA.mjs';
|
|
@@ -191,27 +191,19 @@ const genericOAuth = (options) => {
|
|
|
191
191
|
{
|
|
192
192
|
method: "POST",
|
|
193
193
|
body: z.object({
|
|
194
|
-
providerId: z.string().
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
description: "Disable redirect"
|
|
208
|
-
}).optional(),
|
|
209
|
-
scopes: z.array(z.string()).meta({
|
|
210
|
-
description: "Scopes to be passed to the provider authorization request."
|
|
211
|
-
}).optional(),
|
|
212
|
-
requestSignUp: z.boolean().meta({
|
|
213
|
-
description: "Explicitly request sign-up. Useful when disableImplicitSignUp is true for this provider. Eg: false"
|
|
214
|
-
}).optional()
|
|
194
|
+
providerId: z.string().describe("The provider ID for the OAuth provider"),
|
|
195
|
+
callbackURL: z.string().describe("The URL to redirect to after sign in").optional(),
|
|
196
|
+
errorCallbackURL: z.string().describe("The URL to redirect to if an error occurs").optional(),
|
|
197
|
+
newUserCallbackURL: z.string().describe(
|
|
198
|
+
"The URL to redirect to after login if the user is new. Eg: "
|
|
199
|
+
).optional(),
|
|
200
|
+
disableRedirect: z.boolean().describe("Disable redirect").optional(),
|
|
201
|
+
scopes: z.array(z.string()).describe(
|
|
202
|
+
"Scopes to be passed to the provider authorization request."
|
|
203
|
+
).optional(),
|
|
204
|
+
requestSignUp: z.boolean().describe(
|
|
205
|
+
"Explicitly request sign-up. Useful when disableImplicitSignUp is true for this provider. Eg: false"
|
|
206
|
+
).optional()
|
|
215
207
|
}),
|
|
216
208
|
metadata: {
|
|
217
209
|
openapi: {
|
|
@@ -325,18 +317,10 @@ const genericOAuth = (options) => {
|
|
|
325
317
|
{
|
|
326
318
|
method: "GET",
|
|
327
319
|
query: z.object({
|
|
328
|
-
code: z.string().
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
description: "The error message, if any"
|
|
333
|
-
}).optional(),
|
|
334
|
-
error_description: z.string().meta({
|
|
335
|
-
description: "The error description, if any"
|
|
336
|
-
}).optional(),
|
|
337
|
-
state: z.string().meta({
|
|
338
|
-
description: "The state parameter from the OAuth2 request"
|
|
339
|
-
}).optional()
|
|
320
|
+
code: z.string().describe("The OAuth2 code").optional(),
|
|
321
|
+
error: z.string().describe("The error message, if any").optional(),
|
|
322
|
+
error_description: z.string().describe("The error description, if any").optional(),
|
|
323
|
+
state: z.string().describe("The state parameter from the OAuth2 request").optional()
|
|
340
324
|
}),
|
|
341
325
|
metadata: {
|
|
342
326
|
client: false,
|
|
@@ -580,15 +564,13 @@ const genericOAuth = (options) => {
|
|
|
580
564
|
* This is useful for requesting additional permissions when
|
|
581
565
|
* linking a social account compared to the initial authentication.
|
|
582
566
|
*/
|
|
583
|
-
scopes: z.array(z.string()).
|
|
584
|
-
description: "Additional scopes to request when linking the account"
|
|
585
|
-
}).optional(),
|
|
567
|
+
scopes: z.array(z.string()).describe("Additional scopes to request when linking the account").optional(),
|
|
586
568
|
/**
|
|
587
569
|
* The URL to redirect to if there is an error during the link process.
|
|
588
570
|
*/
|
|
589
|
-
errorCallbackURL: z.string().
|
|
590
|
-
|
|
591
|
-
|
|
571
|
+
errorCallbackURL: z.string().describe(
|
|
572
|
+
"The URL to redirect to if there is an error during the link process"
|
|
573
|
+
).optional()
|
|
592
574
|
}),
|
|
593
575
|
use: [sessionMiddleware],
|
|
594
576
|
metadata: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
require('../../shared/better-auth.
|
|
5
|
-
require('../../shared/better-auth.
|
|
4
|
+
require('../../shared/better-auth.C5s1d_o-.cjs');
|
|
5
|
+
require('../../shared/better-auth.wBgaxGEw.cjs');
|
|
6
6
|
require('zod');
|
|
7
7
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
8
8
|
require('@better-auth/utils/base64');
|
|
@@ -24,7 +24,7 @@ require('../../shared/better-auth.ANpbi45u.cjs');
|
|
|
24
24
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
25
25
|
require('@better-auth/utils/random');
|
|
26
26
|
require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
27
|
-
require('../../shared/better-auth.
|
|
27
|
+
require('../../shared/better-auth.DIfV2UBl.cjs');
|
|
28
28
|
require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
29
29
|
require('jose/errors');
|
|
30
30
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIError } from 'better-call';
|
|
2
|
-
import '../../shared/better-auth.
|
|
3
|
-
import '../../shared/better-auth.
|
|
2
|
+
import '../../shared/better-auth.D-4EtUes.mjs';
|
|
3
|
+
import '../../shared/better-auth.Co88PbP3.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
6
6
|
import '@better-auth/utils/base64';
|
|
@@ -22,7 +22,7 @@ import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
|
22
22
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
23
23
|
import '@better-auth/utils/random';
|
|
24
24
|
import '../../shared/better-auth.DxV4YGX3.mjs';
|
|
25
|
-
import '../../shared/better-auth.
|
|
25
|
+
import '../../shared/better-auth.C3bLnul-.mjs';
|
|
26
26
|
import '../../shared/better-auth.CvNZNAOW.mjs';
|
|
27
27
|
import 'jose/errors';
|
|
28
28
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
package/dist/plugins/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const organization = require('../shared/better-auth.
|
|
3
|
+
const organization = require('../shared/better-auth.CL5zQvRZ.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 session = require('../shared/better-auth.
|
|
8
|
-
const socialProviders_index = require('../shared/better-auth.
|
|
7
|
+
const session = require('../shared/better-auth.wBgaxGEw.cjs');
|
|
8
|
+
const socialProviders_index = require('../shared/better-auth.C5s1d_o-.cjs');
|
|
9
9
|
const plugins_magicLink_index = require('./magic-link/index.cjs');
|
|
10
10
|
const plugins_phoneNumber_index = require('./phone-number/index.cjs');
|
|
11
11
|
const plugins_anonymous_index = require('./anonymous/index.cjs');
|
|
12
|
-
const admin = require('../shared/better-auth.
|
|
12
|
+
const admin = require('../shared/better-auth.DP5SyJ_2.cjs');
|
|
13
13
|
const plugins_genericOauth_index = require('./generic-oauth/index.cjs');
|
|
14
14
|
const plugins_jwt_index = require('./jwt/index.cjs');
|
|
15
15
|
const plugins_multiSession_index = require('./multi-session/index.cjs');
|
|
@@ -18,9 +18,9 @@ const plugins_oneTap_index = require('./one-tap/index.cjs');
|
|
|
18
18
|
const plugins_oauthProxy_index = require('./oauth-proxy/index.cjs');
|
|
19
19
|
const plugins_customSession_index = require('./custom-session/index.cjs');
|
|
20
20
|
const plugins_openApi_index = require('./open-api/index.cjs');
|
|
21
|
-
const plugins_oidcProvider_index = require('../shared/better-auth.
|
|
21
|
+
const plugins_oidcProvider_index = require('../shared/better-auth.DxN8-4Pz.cjs');
|
|
22
22
|
const plugins_captcha_index = require('./captcha/index.cjs');
|
|
23
|
-
const plugins_oneTimeToken_index = require('../shared/better-auth.
|
|
23
|
+
const plugins_oneTimeToken_index = require('../shared/better-auth.DCOXb_2e.cjs');
|
|
24
24
|
const plugins_haveibeenpwned_index = require('./haveibeenpwned/index.cjs');
|
|
25
25
|
const z = require('zod');
|
|
26
26
|
const betterCall = require('better-call');
|
|
@@ -30,9 +30,9 @@ require('@better-auth/utils/hmac');
|
|
|
30
30
|
const logger = require('../shared/better-auth.DTvRBuq4.cjs');
|
|
31
31
|
const url = require('../shared/better-auth.DRmln2Nr.cjs');
|
|
32
32
|
require('@better-auth/utils/binary');
|
|
33
|
-
const cookies_index = require('../shared/better-auth.
|
|
33
|
+
const cookies_index = require('../shared/better-auth.DIfV2UBl.cjs');
|
|
34
34
|
require('../shared/better-auth.C0qxpMUS.cjs');
|
|
35
|
-
require('../shared/better-auth.
|
|
35
|
+
require('../shared/better-auth.SS_wBML-.cjs');
|
|
36
36
|
require('./organization/access/index.cjs');
|
|
37
37
|
require('@better-auth/utils/random');
|
|
38
38
|
const hash = require('@better-auth/utils/hash');
|
|
@@ -56,7 +56,7 @@ const sign = require('../shared/better-auth.CMwM5enp.cjs');
|
|
|
56
56
|
const client$1 = require('../shared/better-auth.BMgeJg3r.cjs');
|
|
57
57
|
require('../shared/better-auth.C1hdVENX.cjs');
|
|
58
58
|
require('../shared/better-auth.ANpbi45u.cjs');
|
|
59
|
-
require('../shared/better-auth.
|
|
59
|
+
require('../shared/better-auth.DUNU0obG.cjs');
|
|
60
60
|
require('../shared/better-auth.CqRypKVa.cjs');
|
|
61
61
|
require('../shared/better-auth.CsC4FSOQ.cjs');
|
|
62
62
|
require('../crypto/index.cjs');
|
|
@@ -1018,6 +1018,7 @@ const mcp = (options) => {
|
|
|
1018
1018
|
return new Response(JSON.stringify(responseData), {
|
|
1019
1019
|
status: 201,
|
|
1020
1020
|
headers: {
|
|
1021
|
+
"Content-Type": "application/json",
|
|
1021
1022
|
"Cache-Control": "no-store",
|
|
1022
1023
|
Pragma: "no-cache"
|
|
1023
1024
|
}
|
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, d as AuthContext } from '../shared/better-auth.
|
|
7
|
-
export { z as AuthEndpoint, D as AuthMiddleware, v as AuthPluginSchema, n as BetterAuthPlugin, I as InferOptionSchema, p as InferPluginErrorCodes, y as createAuthEndpoint, x as createAuthMiddleware, w as optionsMiddleware } from '../shared/better-auth.
|
|
6
|
+
import { G as GenericEndpointContext, B as BetterAuthOptions, d as AuthContext } from '../shared/better-auth.U9CXSJA_.cjs';
|
|
7
|
+
export { z as AuthEndpoint, D as AuthMiddleware, v as AuthPluginSchema, n as BetterAuthPlugin, I as InferOptionSchema, p as InferPluginErrorCodes, y as createAuthEndpoint, x as createAuthMiddleware, w as optionsMiddleware } from '../shared/better-auth.U9CXSJA_.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,7 +21,7 @@ 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.BeOpqAwl.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';
|
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, d as AuthContext } from '../shared/better-auth.
|
|
7
|
-
export { z as AuthEndpoint, D as AuthMiddleware, v as AuthPluginSchema, n as BetterAuthPlugin, I as InferOptionSchema, p as InferPluginErrorCodes, y as createAuthEndpoint, x as createAuthMiddleware, w as optionsMiddleware } from '../shared/better-auth.
|
|
6
|
+
import { G as GenericEndpointContext, B as BetterAuthOptions, d as AuthContext } from '../shared/better-auth.DhRmxPro.mjs';
|
|
7
|
+
export { z as AuthEndpoint, D as AuthMiddleware, v as AuthPluginSchema, n as BetterAuthPlugin, I as InferOptionSchema, p as InferPluginErrorCodes, y as createAuthEndpoint, x as createAuthMiddleware, w as optionsMiddleware } from '../shared/better-auth.DhRmxPro.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,7 +21,7 @@ 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.BeDYIF5-.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';
|
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, d as AuthContext } from '../shared/better-auth.
|
|
7
|
-
export { z as AuthEndpoint, D as AuthMiddleware, v as AuthPluginSchema, n as BetterAuthPlugin, I as InferOptionSchema, p as InferPluginErrorCodes, y as createAuthEndpoint, x as createAuthMiddleware, w as optionsMiddleware } from '../shared/better-auth.
|
|
6
|
+
import { G as GenericEndpointContext, B as BetterAuthOptions, d as AuthContext } from '../shared/better-auth.BsnsCAjn.js';
|
|
7
|
+
export { z as AuthEndpoint, D as AuthMiddleware, v as AuthPluginSchema, n as BetterAuthPlugin, I as InferOptionSchema, p as InferPluginErrorCodes, y as createAuthEndpoint, x as createAuthMiddleware, w as optionsMiddleware } from '../shared/better-auth.BsnsCAjn.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,7 +21,7 @@ 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.B1CNK_q_.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';
|
package/dist/plugins/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { o as organization, p as parseRoles } from '../shared/better-auth.
|
|
1
|
+
export { o as organization, p as parseRoles } from '../shared/better-auth.B-3-wkBV.mjs';
|
|
2
2
|
export { TWO_FACTOR_ERROR_CODES, twoFactor } from './two-factor/index.mjs';
|
|
3
3
|
export { USERNAME_ERROR_CODES, username } from './username/index.mjs';
|
|
4
4
|
export { bearer } from './bearer/index.mjs';
|
|
5
|
-
import { g as getSessionFromCtx, a as createAuthEndpoint, c as createAuthMiddleware } from '../shared/better-auth.
|
|
6
|
-
export { o as optionsMiddleware } from '../shared/better-auth.
|
|
7
|
-
export { H as HIDE_METADATA } from '../shared/better-auth.
|
|
5
|
+
import { g as getSessionFromCtx, a as createAuthEndpoint, c as createAuthMiddleware } from '../shared/better-auth.Co88PbP3.mjs';
|
|
6
|
+
export { o as optionsMiddleware } from '../shared/better-auth.Co88PbP3.mjs';
|
|
7
|
+
export { H as HIDE_METADATA } from '../shared/better-auth.D-4EtUes.mjs';
|
|
8
8
|
export { magicLink } from './magic-link/index.mjs';
|
|
9
9
|
export { phoneNumber } from './phone-number/index.mjs';
|
|
10
10
|
export { anonymous } from './anonymous/index.mjs';
|
|
11
|
-
export { a as admin } from '../shared/better-auth.
|
|
11
|
+
export { a as admin } from '../shared/better-auth.DteMRrRX.mjs';
|
|
12
12
|
export { genericOAuth } from './generic-oauth/index.mjs';
|
|
13
13
|
export { jwt } from './jwt/index.mjs';
|
|
14
14
|
export { multiSession } from './multi-session/index.mjs';
|
|
@@ -17,10 +17,10 @@ export { oneTap } from './one-tap/index.mjs';
|
|
|
17
17
|
export { oAuthProxy } from './oauth-proxy/index.mjs';
|
|
18
18
|
export { customSession } from './custom-session/index.mjs';
|
|
19
19
|
export { openAPI } from './open-api/index.mjs';
|
|
20
|
-
import { o as oidcProvider, s as schema } from '../shared/better-auth.
|
|
21
|
-
export { g as getClient, a as getMetadata } from '../shared/better-auth.
|
|
20
|
+
import { o as oidcProvider, s as schema } from '../shared/better-auth.Df_5rmaV.mjs';
|
|
21
|
+
export { g as getClient, a as getMetadata } from '../shared/better-auth.Df_5rmaV.mjs';
|
|
22
22
|
export { captcha } from './captcha/index.mjs';
|
|
23
|
-
export { A as API_KEY_TABLE_NAME, E as ERROR_CODES, a as apiKey, d as defaultKeyHasher, o as oneTimeToken } from '../shared/better-auth.
|
|
23
|
+
export { A as API_KEY_TABLE_NAME, E as ERROR_CODES, a as apiKey, d as defaultKeyHasher, o as oneTimeToken } from '../shared/better-auth.vd9ibIsl.mjs';
|
|
24
24
|
export { haveIBeenPwned } from './haveibeenpwned/index.mjs';
|
|
25
25
|
import * as z from 'zod';
|
|
26
26
|
import { APIError } from 'better-call';
|
|
@@ -30,9 +30,9 @@ import '@better-auth/utils/hmac';
|
|
|
30
30
|
import { a as logger } from '../shared/better-auth.C4g12FAA.mjs';
|
|
31
31
|
import { a as getBaseURL } from '../shared/better-auth.DxV4YGX3.mjs';
|
|
32
32
|
import '@better-auth/utils/binary';
|
|
33
|
-
import { p as parseSetCookieHeader } from '../shared/better-auth.
|
|
33
|
+
import { p as parseSetCookieHeader } from '../shared/better-auth.C3bLnul-.mjs';
|
|
34
34
|
import '../shared/better-auth.Dlx1jCB2.mjs';
|
|
35
|
-
import '../shared/better-auth.
|
|
35
|
+
import '../shared/better-auth.BBFsjzvB.mjs';
|
|
36
36
|
import './organization/access/index.mjs';
|
|
37
37
|
import '@better-auth/utils/random';
|
|
38
38
|
import { createHash } from '@better-auth/utils/hash';
|
|
@@ -56,7 +56,7 @@ export { c as createJwk, b as generateExportedKeyPair, g as getJwtToken } from '
|
|
|
56
56
|
export { d as deviceAuthorizationClient } from '../shared/better-auth.BpA03GIs.mjs';
|
|
57
57
|
import '../shared/better-auth.CW6D9eSx.mjs';
|
|
58
58
|
import '../shared/better-auth.DdzSJf-n.mjs';
|
|
59
|
-
import '../shared/better-auth.
|
|
59
|
+
import '../shared/better-auth.msGOU0m9.mjs';
|
|
60
60
|
import '../shared/better-auth.DaEBQJp_.mjs';
|
|
61
61
|
import '../shared/better-auth.BxexnJiR.mjs';
|
|
62
62
|
import '../crypto/index.mjs';
|
|
@@ -1004,6 +1004,7 @@ const mcp = (options) => {
|
|
|
1004
1004
|
return new Response(JSON.stringify(responseData), {
|
|
1005
1005
|
status: 201,
|
|
1006
1006
|
headers: {
|
|
1007
|
+
"Content-Type": "application/json",
|
|
1007
1008
|
"Cache-Control": "no-store",
|
|
1008
1009
|
Pragma: "no-cache"
|
|
1009
1010
|
}
|