better-auth 1.3.8-beta.1 → 1.3.8-beta.3
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.cjs +3 -3
- package/dist/adapters/drizzle-adapter/index.d.cts +3 -3
- package/dist/adapters/drizzle-adapter/index.d.mts +3 -3
- package/dist/adapters/drizzle-adapter/index.d.ts +3 -3
- package/dist/adapters/drizzle-adapter/index.mjs +3 -3
- package/dist/adapters/index.cjs +3 -3
- package/dist/adapters/index.d.cts +4 -4
- package/dist/adapters/index.d.mts +4 -4
- package/dist/adapters/index.d.ts +4 -4
- package/dist/adapters/index.mjs +3 -3
- package/dist/adapters/kysely-adapter/index.cjs +4 -4
- package/dist/adapters/kysely-adapter/index.d.cts +3 -3
- package/dist/adapters/kysely-adapter/index.d.mts +3 -3
- package/dist/adapters/kysely-adapter/index.d.ts +3 -3
- package/dist/adapters/kysely-adapter/index.mjs +4 -4
- package/dist/adapters/memory-adapter/index.cjs +4 -4
- package/dist/adapters/memory-adapter/index.d.cts +3 -3
- package/dist/adapters/memory-adapter/index.d.mts +3 -3
- package/dist/adapters/memory-adapter/index.d.ts +3 -3
- package/dist/adapters/memory-adapter/index.mjs +4 -4
- package/dist/adapters/mongodb-adapter/index.cjs +4 -4
- package/dist/adapters/mongodb-adapter/index.d.cts +3 -3
- package/dist/adapters/mongodb-adapter/index.d.mts +3 -3
- package/dist/adapters/mongodb-adapter/index.d.ts +3 -3
- package/dist/adapters/mongodb-adapter/index.mjs +4 -4
- package/dist/adapters/prisma-adapter/index.cjs +3 -3
- package/dist/adapters/prisma-adapter/index.d.cts +3 -3
- package/dist/adapters/prisma-adapter/index.d.mts +3 -3
- package/dist/adapters/prisma-adapter/index.d.ts +3 -3
- package/dist/adapters/prisma-adapter/index.mjs +3 -3
- package/dist/adapters/test.cjs +1 -1
- package/dist/adapters/test.d.cts +3 -3
- package/dist/adapters/test.d.mts +3 -3
- package/dist/adapters/test.d.ts +3 -3
- package/dist/adapters/test.mjs +1 -1
- package/dist/api/index.cjs +38 -37
- package/dist/api/index.d.cts +3 -3
- package/dist/api/index.d.mts +3 -3
- package/dist/api/index.d.ts +3 -3
- package/dist/api/index.mjs +9 -7
- package/dist/chunks/node-sqlite-dialect.cjs +171 -0
- package/dist/chunks/node-sqlite-dialect.mjs +165 -0
- package/dist/client/index.cjs +2 -2
- package/dist/client/index.d.cts +5 -5
- package/dist/client/index.d.mts +5 -5
- package/dist/client/index.d.ts +5 -5
- package/dist/client/index.mjs +2 -2
- package/dist/client/plugins/index.cjs +2 -0
- package/dist/client/plugins/index.d.cts +6 -5
- package/dist/client/plugins/index.d.mts +6 -5
- package/dist/client/plugins/index.d.ts +6 -5
- package/dist/client/plugins/index.mjs +1 -0
- package/dist/client/react/index.cjs +1 -1
- 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/react/index.mjs +1 -1
- package/dist/client/solid/index.cjs +1 -1
- package/dist/client/solid/index.d.cts +10 -10
- package/dist/client/solid/index.d.mts +10 -10
- package/dist/client/solid/index.d.ts +10 -10
- package/dist/client/solid/index.mjs +1 -1
- package/dist/client/svelte/index.cjs +1 -1
- package/dist/client/svelte/index.d.cts +10 -10
- package/dist/client/svelte/index.d.mts +10 -10
- package/dist/client/svelte/index.d.ts +10 -10
- package/dist/client/svelte/index.mjs +1 -1
- package/dist/client/vue/index.cjs +1 -1
- 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/client/vue/index.mjs +1 -1
- package/dist/cookies/index.cjs +20 -430
- package/dist/cookies/index.d.cts +3 -3
- package/dist/cookies/index.d.mts +3 -3
- package/dist/cookies/index.d.ts +3 -3
- package/dist/cookies/index.mjs +10 -424
- package/dist/db/index.cjs +6 -6
- package/dist/db/index.d.cts +4 -4
- package/dist/db/index.d.mts +4 -4
- package/dist/db/index.d.ts +4 -4
- package/dist/db/index.mjs +6 -6
- package/dist/index.cjs +11 -10
- package/dist/index.d.cts +13 -13
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.mjs +11 -10
- package/dist/integrations/next-js.cjs +9 -6
- package/dist/integrations/next-js.d.cts +3 -3
- package/dist/integrations/next-js.d.mts +3 -3
- package/dist/integrations/next-js.d.ts +3 -3
- package/dist/integrations/next-js.mjs +8 -5
- package/dist/integrations/node.d.cts +3 -3
- package/dist/integrations/node.d.mts +3 -3
- package/dist/integrations/node.d.ts +3 -3
- package/dist/integrations/react-start.cjs +9 -6
- package/dist/integrations/react-start.d.cts +3 -3
- package/dist/integrations/react-start.d.mts +3 -3
- package/dist/integrations/react-start.d.ts +3 -3
- package/dist/integrations/react-start.mjs +8 -5
- package/dist/integrations/svelte-kit.cjs +6 -5
- package/dist/integrations/svelte-kit.d.cts +3 -3
- package/dist/integrations/svelte-kit.d.mts +3 -3
- package/dist/integrations/svelte-kit.d.ts +3 -3
- package/dist/integrations/svelte-kit.mjs +5 -4
- package/dist/oauth2/index.cjs +13 -10
- package/dist/oauth2/index.d.cts +34 -8
- package/dist/oauth2/index.d.mts +34 -8
- package/dist/oauth2/index.d.ts +34 -8
- package/dist/oauth2/index.mjs +11 -10
- package/dist/plugins/access/index.d.cts +1 -1
- package/dist/plugins/access/index.d.mts +1 -1
- package/dist/plugins/access/index.d.ts +1 -1
- package/dist/plugins/admin/access/index.d.cts +1 -1
- package/dist/plugins/admin/access/index.d.mts +1 -1
- package/dist/plugins/admin/access/index.d.ts +1 -1
- package/dist/plugins/admin/index.cjs +12 -11
- package/dist/plugins/admin/index.d.cts +7 -7
- package/dist/plugins/admin/index.d.mts +7 -7
- package/dist/plugins/admin/index.d.ts +7 -7
- package/dist/plugins/admin/index.mjs +12 -11
- package/dist/plugins/anonymous/index.cjs +12 -11
- package/dist/plugins/anonymous/index.d.cts +3 -3
- package/dist/plugins/anonymous/index.d.mts +3 -3
- package/dist/plugins/anonymous/index.d.ts +3 -3
- package/dist/plugins/anonymous/index.mjs +6 -5
- package/dist/plugins/bearer/index.cjs +7 -6
- package/dist/plugins/bearer/index.d.cts +3 -3
- package/dist/plugins/bearer/index.d.mts +3 -3
- package/dist/plugins/bearer/index.d.ts +3 -3
- package/dist/plugins/bearer/index.mjs +5 -4
- package/dist/plugins/captcha/index.d.cts +3 -3
- package/dist/plugins/captcha/index.d.mts +3 -3
- package/dist/plugins/captcha/index.d.ts +3 -3
- package/dist/plugins/custom-session/index.cjs +10 -9
- package/dist/plugins/custom-session/index.d.cts +3 -3
- package/dist/plugins/custom-session/index.d.mts +3 -3
- package/dist/plugins/custom-session/index.d.ts +3 -3
- package/dist/plugins/custom-session/index.mjs +5 -4
- package/dist/plugins/device-authorization/index.cjs +922 -0
- package/dist/plugins/device-authorization/index.d.cts +638 -0
- package/dist/plugins/device-authorization/index.d.mts +638 -0
- package/dist/plugins/device-authorization/index.d.ts +638 -0
- package/dist/plugins/device-authorization/index.mjs +905 -0
- package/dist/plugins/email-otp/index.cjs +16 -15
- package/dist/plugins/email-otp/index.d.cts +3 -3
- package/dist/plugins/email-otp/index.d.mts +3 -3
- package/dist/plugins/email-otp/index.d.ts +3 -3
- package/dist/plugins/email-otp/index.mjs +7 -6
- package/dist/plugins/generic-oauth/index.cjs +46 -31
- package/dist/plugins/generic-oauth/index.d.cts +5 -19
- package/dist/plugins/generic-oauth/index.d.mts +5 -19
- package/dist/plugins/generic-oauth/index.d.ts +5 -19
- package/dist/plugins/generic-oauth/index.mjs +38 -23
- package/dist/plugins/haveibeenpwned/index.cjs +5 -4
- package/dist/plugins/haveibeenpwned/index.d.cts +3 -3
- package/dist/plugins/haveibeenpwned/index.d.mts +3 -3
- package/dist/plugins/haveibeenpwned/index.d.ts +3 -3
- package/dist/plugins/haveibeenpwned/index.mjs +5 -4
- package/dist/plugins/index.cjs +30 -24
- package/dist/plugins/index.d.cts +8 -7
- package/dist/plugins/index.d.mts +8 -7
- package/dist/plugins/index.d.ts +8 -7
- package/dist/plugins/index.mjs +14 -11
- package/dist/plugins/jwt/index.cjs +58 -17
- package/dist/plugins/jwt/index.d.cts +14 -3
- package/dist/plugins/jwt/index.d.mts +14 -3
- package/dist/plugins/jwt/index.d.ts +14 -3
- package/dist/plugins/jwt/index.mjs +53 -12
- package/dist/plugins/magic-link/index.cjs +13 -12
- package/dist/plugins/magic-link/index.mjs +10 -9
- package/dist/plugins/multi-session/index.cjs +14 -13
- package/dist/plugins/multi-session/index.d.cts +3 -3
- package/dist/plugins/multi-session/index.d.mts +3 -3
- package/dist/plugins/multi-session/index.d.ts +3 -3
- package/dist/plugins/multi-session/index.mjs +7 -6
- package/dist/plugins/oauth-proxy/index.cjs +8 -7
- package/dist/plugins/oauth-proxy/index.d.cts +3 -3
- package/dist/plugins/oauth-proxy/index.d.mts +3 -3
- package/dist/plugins/oauth-proxy/index.d.ts +3 -3
- package/dist/plugins/oauth-proxy/index.mjs +5 -4
- package/dist/plugins/oidc-provider/index.cjs +6 -5
- package/dist/plugins/oidc-provider/index.d.cts +7 -7
- package/dist/plugins/oidc-provider/index.d.mts +7 -7
- package/dist/plugins/oidc-provider/index.d.ts +7 -7
- package/dist/plugins/oidc-provider/index.mjs +6 -5
- package/dist/plugins/one-tap/index.cjs +8 -7
- package/dist/plugins/one-tap/index.mjs +7 -6
- package/dist/plugins/one-time-token/index.cjs +11 -8
- package/dist/plugins/one-time-token/index.d.cts +3 -3
- package/dist/plugins/one-time-token/index.d.mts +3 -3
- package/dist/plugins/one-time-token/index.d.ts +3 -3
- package/dist/plugins/one-time-token/index.mjs +11 -8
- package/dist/plugins/open-api/index.cjs +7 -6
- package/dist/plugins/open-api/index.d.cts +3 -3
- package/dist/plugins/open-api/index.d.mts +3 -3
- package/dist/plugins/open-api/index.d.ts +3 -3
- package/dist/plugins/open-api/index.mjs +5 -4
- package/dist/plugins/organization/access/index.d.cts +1 -1
- package/dist/plugins/organization/access/index.d.mts +1 -1
- package/dist/plugins/organization/access/index.d.ts +1 -1
- package/dist/plugins/organization/index.cjs +13 -12
- package/dist/plugins/organization/index.d.cts +7 -7
- package/dist/plugins/organization/index.d.mts +7 -7
- package/dist/plugins/organization/index.d.ts +7 -7
- package/dist/plugins/organization/index.mjs +13 -12
- package/dist/plugins/passkey/index.cjs +23 -22
- package/dist/plugins/passkey/index.d.cts +3 -3
- package/dist/plugins/passkey/index.d.mts +3 -3
- package/dist/plugins/passkey/index.d.ts +3 -3
- package/dist/plugins/passkey/index.mjs +7 -6
- package/dist/plugins/phone-number/index.cjs +32 -31
- package/dist/plugins/phone-number/index.d.cts +3 -3
- package/dist/plugins/phone-number/index.d.mts +3 -3
- package/dist/plugins/phone-number/index.d.ts +3 -3
- package/dist/plugins/phone-number/index.mjs +9 -8
- package/dist/plugins/siwe/index.cjs +11 -10
- package/dist/plugins/siwe/index.d.cts +41 -0
- package/dist/plugins/siwe/index.d.mts +41 -0
- package/dist/plugins/siwe/index.d.ts +41 -0
- package/dist/plugins/siwe/index.mjs +9 -8
- package/dist/plugins/sso/index.cjs +11 -10
- package/dist/plugins/sso/index.d.cts +5 -5
- package/dist/plugins/sso/index.d.mts +5 -5
- package/dist/plugins/sso/index.d.ts +5 -5
- package/dist/plugins/sso/index.mjs +7 -6
- package/dist/plugins/two-factor/index.cjs +47 -46
- package/dist/plugins/two-factor/index.d.cts +3 -3
- package/dist/plugins/two-factor/index.d.mts +3 -3
- package/dist/plugins/two-factor/index.d.ts +3 -3
- package/dist/plugins/two-factor/index.mjs +5 -4
- package/dist/plugins/username/index.cjs +19 -18
- package/dist/plugins/username/index.d.cts +5 -5
- package/dist/plugins/username/index.d.mts +5 -5
- package/dist/plugins/username/index.d.ts +5 -5
- package/dist/plugins/username/index.mjs +10 -9
- package/dist/shared/{better-auth.CwsxfHfN.mjs → better-auth.B-xYKxwt.mjs} +9 -97
- package/dist/shared/{better-auth.Bf5MnLaK.d.cts → better-auth.B29NjI62.d.cts} +4 -4
- package/dist/shared/{better-auth.GpOOav9x.cjs → better-auth.B3274wGK.cjs} +7 -1
- package/dist/shared/{better-auth.p1GhhfhV.mjs → better-auth.B548OOOk.mjs} +32 -30
- package/dist/shared/better-auth.BMgeJg3r.cjs +17 -0
- package/dist/shared/{better-auth.BCerfnoo.cjs → better-auth.BNhZazTR.cjs} +20 -1
- package/dist/shared/{better-auth.DIfzDoPN.mjs → better-auth.BQNzC8cU.mjs} +1 -1
- package/dist/shared/{better-auth.gABN3TsS.mjs → better-auth.BSGkasIG.mjs} +2 -2
- package/dist/shared/{better-auth.6hiPn8Kd.d.mts → better-auth.BU9YW_qQ.d.cts} +6 -6
- package/dist/shared/{better-auth.0SyTY9U9.d.ts → better-auth.BWfwO5vl.d.cts} +21 -73
- package/dist/shared/{better-auth.BDEfedYa.d.mts → better-auth.BYJu3IQC.d.ts} +4 -4
- package/dist/shared/{better-auth.PgM8qMHr.mjs → better-auth.BZZKN1g7.mjs} +1 -1
- package/dist/shared/{better-auth.BtemoGGn.mjs → better-auth.B_3Nie7C.mjs} +2 -2
- package/dist/shared/{better-auth.CCCUvENJ.cjs → better-auth.BblrvPZ3.cjs} +1 -1
- package/dist/shared/better-auth.BfeJWAMn.mjs +497 -0
- package/dist/shared/{better-auth.DH3YjMQH.mjs → better-auth.BjBlybv-.mjs} +7 -1
- package/dist/shared/better-auth.BpA03GIs.mjs +15 -0
- package/dist/shared/{better-auth.DrzbcRgZ.cjs → better-auth.BpptWVxZ.cjs} +65 -64
- package/dist/shared/{better-auth.D85s0t2j.d.mts → better-auth.BqrGtIt2.d.mts} +1 -1
- package/dist/shared/{better-auth.C_0BlDB0.d.ts → better-auth.BvN9j5Ap.d.ts} +1 -1
- package/dist/shared/{better-auth.BS4wi0R-.d.mts → better-auth.Bxn_1Cii.d.ts} +21 -73
- package/dist/shared/{better-auth.DiE4yQHn.mjs → better-auth.C8Y2rhan.mjs} +5 -4
- package/dist/shared/{better-auth.Co0UDY4N.cjs → better-auth.CFZJKUMM.cjs} +10 -98
- package/dist/shared/{better-auth.CVQe8izV.mjs → better-auth.CGGao4aY.mjs} +7 -0
- package/dist/shared/{better-auth.NCWQv_ti.cjs → better-auth.CKjaHNrP.cjs} +39 -45
- package/dist/shared/{better-auth.CFtZttAn.cjs → better-auth.CL4S7WA5.cjs} +2 -2
- package/dist/shared/{better-auth.Bgs2SPcK.cjs → better-auth.CMnvkNNK.cjs} +2 -2
- package/dist/shared/{better-auth.BbDyeJdW.cjs → better-auth.CR4J09bm.cjs} +6 -5
- package/dist/shared/{better-auth.DMus0Wrm.mjs → better-auth.Cl1MyjEq.mjs} +254 -510
- package/dist/shared/{better-auth.Db2g2HxM.cjs → better-auth.CmdI9lHT.cjs} +1 -1
- package/dist/shared/{better-auth.DrQaSEU_.mjs → better-auth.CsvyivcG.mjs} +21 -27
- package/dist/shared/{better-auth.CVYnNkfw.cjs → better-auth.CtToz4qL.cjs} +7 -0
- package/dist/shared/{better-auth.YmpB7UaD.d.cts → better-auth.D2gg3ys1.d.cts} +1 -1
- package/dist/shared/{better-auth.Je5iPAGQ.d.mts → better-auth.D4yr0Ou1.d.ts} +200 -11
- package/dist/shared/{better-auth.HYhkNVyD.mjs → better-auth.D96SwENp.mjs} +20 -1
- package/dist/shared/better-auth.DF-MUmVw.mjs +479 -0
- package/dist/shared/{better-auth.BDR52Rf2.d.cts → better-auth.DTtXpZYr.d.cts} +2 -1
- package/dist/shared/{better-auth.BDR52Rf2.d.mts → better-auth.DTtXpZYr.d.mts} +2 -1
- package/dist/shared/{better-auth.BDR52Rf2.d.ts → better-auth.DTtXpZYr.d.ts} +2 -1
- package/dist/shared/{better-auth.BDBtglk1.mjs → better-auth.DVsI0DHa.mjs} +1 -1
- package/dist/shared/{better-auth.DX362szo.mjs → better-auth.DY8mXezF.mjs} +4 -3
- package/dist/shared/{better-auth.PFi3XfiT.mjs → better-auth.DZVMh_VM.mjs} +3 -2
- package/dist/shared/better-auth.DmBU2Klq.cjs +526 -0
- package/dist/shared/{better-auth._D1fz1Yx.d.ts → better-auth.DoFtnL_B.d.mts} +4 -4
- package/dist/shared/{better-auth.MrJBhiF6.mjs → better-auth.Dqe7GuxR.mjs} +4 -4
- package/dist/shared/{better-auth.CkqBZvXM.d.cts → better-auth.Du7MKGKS.d.cts} +200 -11
- package/dist/shared/{better-auth.X6YzBCDT.d.cts → better-auth.DymB1NxW.d.mts} +6 -6
- package/dist/shared/{better-auth.DnUZno9_.d.ts → better-auth.F1OUHOUm.d.mts} +200 -11
- package/dist/shared/{better-auth.CRyLLXtn.cjs → better-auth.UmJlYEfa.cjs} +395 -662
- package/dist/shared/{better-auth.WTr4EDT7.cjs → better-auth.cBJ0kvYy.cjs} +36 -35
- package/dist/shared/better-auth.l2-e84v_.cjs +491 -0
- package/dist/shared/{better-auth.CkEkCniR.d.cts → better-auth.oCjO5qEz.d.mts} +21 -73
- package/dist/shared/{better-auth.D4eTSyUO.cjs → better-auth.pXA_xs2e.cjs} +50 -48
- package/dist/shared/{better-auth.DrKKZc3v.cjs → better-auth.spuYC23a.cjs} +4 -4
- package/dist/shared/{better-auth.CLfudv58.d.ts → better-auth.tDeNcGKy.d.ts} +5 -5
- package/dist/shared/{better-auth.DbrEw0kN.cjs → better-auth.vPQBmXQL.cjs} +1 -1
- package/dist/social-providers/index.cjs +12 -10
- package/dist/social-providers/index.d.cts +2 -2
- package/dist/social-providers/index.d.mts +2 -2
- package/dist/social-providers/index.d.ts +2 -2
- package/dist/social-providers/index.mjs +11 -10
- package/dist/test-utils/index.cjs +16 -13
- package/dist/test-utils/index.d.cts +32 -116
- package/dist/test-utils/index.d.mts +32 -116
- package/dist/test-utils/index.d.ts +32 -116
- package/dist/test-utils/index.mjs +16 -13
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/package.json +20 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AccessControl, Role, Statements } from '../access/index.js';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import * as z from 'zod/v4';
|
|
4
|
-
import { I as InferOptionSchema, S as Session, U as User, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
4
|
+
import { I as InferOptionSchema, S as Session, U as User, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.Bxn_1Cii.js';
|
|
5
|
+
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
6
|
import 'kysely';
|
|
7
|
-
import '../../shared/better-auth.
|
|
7
|
+
import '../../shared/better-auth.D4yr0Ou1.js';
|
|
8
8
|
import 'jose';
|
|
9
9
|
import 'zod/v4/core';
|
|
10
10
|
import 'zod';
|
|
@@ -445,7 +445,7 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
445
445
|
} & {
|
|
446
446
|
query: {
|
|
447
447
|
searchValue?: string | undefined;
|
|
448
|
-
searchField?: "
|
|
448
|
+
searchField?: "email" | "name" | undefined;
|
|
449
449
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
450
450
|
limit?: string | number | undefined;
|
|
451
451
|
offset?: string | number | undefined;
|
|
@@ -453,7 +453,7 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
453
453
|
sortDirection?: "asc" | "desc" | undefined;
|
|
454
454
|
filterField?: string | undefined;
|
|
455
455
|
filterValue?: string | number | boolean | undefined;
|
|
456
|
-
filterOperator?: "
|
|
456
|
+
filterOperator?: "lt" | "eq" | "ne" | "lte" | "gt" | "gte" | "contains" | undefined;
|
|
457
457
|
};
|
|
458
458
|
} & {
|
|
459
459
|
params?: Record<string, any>;
|
|
@@ -500,8 +500,8 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
500
500
|
query: z.ZodObject<{
|
|
501
501
|
searchValue: z.ZodOptional<z.ZodString>;
|
|
502
502
|
searchField: z.ZodOptional<z.ZodEnum<{
|
|
503
|
-
name: "name";
|
|
504
503
|
email: "email";
|
|
504
|
+
name: "name";
|
|
505
505
|
}>>;
|
|
506
506
|
searchOperator: z.ZodOptional<z.ZodEnum<{
|
|
507
507
|
contains: "contains";
|
|
@@ -518,9 +518,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
518
518
|
filterField: z.ZodOptional<z.ZodString>;
|
|
519
519
|
filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
|
|
520
520
|
filterOperator: z.ZodOptional<z.ZodEnum<{
|
|
521
|
+
lt: "lt";
|
|
521
522
|
eq: "eq";
|
|
522
523
|
ne: "ne";
|
|
523
|
-
lt: "lt";
|
|
524
524
|
lte: "lte";
|
|
525
525
|
gt: "gt";
|
|
526
526
|
gte: "gte";
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
export { a as admin } from '../../shared/better-auth.
|
|
1
|
+
export { a as admin } from '../../shared/better-auth.DY8mXezF.mjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import 'better-call';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.Cl1MyjEq.mjs';
|
|
5
|
+
import '../../shared/better-auth.BfeJWAMn.mjs';
|
|
5
6
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
6
|
-
import '
|
|
7
|
+
import '../../shared/better-auth.DF-MUmVw.mjs';
|
|
8
|
+
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
9
|
+
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
7
10
|
import '@better-auth/utils/base64';
|
|
11
|
+
import '@better-auth/utils/hmac';
|
|
12
|
+
import '../../shared/better-auth.BZZKN1g7.mjs';
|
|
13
|
+
import '../../shared/better-auth.BjBlybv-.mjs';
|
|
14
|
+
import '../../shared/better-auth.CuS_eDdK.mjs';
|
|
15
|
+
import '@better-auth/utils/binary';
|
|
16
|
+
import '@better-auth/utils/hash';
|
|
8
17
|
import '../../crypto/index.mjs';
|
|
9
18
|
import '@noble/ciphers/chacha';
|
|
10
19
|
import '@noble/ciphers/utils';
|
|
@@ -17,14 +26,6 @@ import '@noble/hashes/utils';
|
|
|
17
26
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
18
27
|
import '@better-auth/utils/random';
|
|
19
28
|
import '@better-fetch/fetch';
|
|
20
|
-
import '../../shared/better-auth.CuS_eDdK.mjs';
|
|
21
|
-
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
22
|
-
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
23
|
-
import '../../cookies/index.mjs';
|
|
24
|
-
import '@better-auth/utils/hmac';
|
|
25
|
-
import '../../shared/better-auth.PgM8qMHr.mjs';
|
|
26
|
-
import '../../shared/better-auth.DH3YjMQH.mjs';
|
|
27
|
-
import '@better-auth/utils/binary';
|
|
28
29
|
import 'jose/errors';
|
|
29
30
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
30
31
|
import '../../shared/better-auth.n2KFGwjY.mjs';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
|
|
4
|
+
require('../../shared/better-auth.UmJlYEfa.cjs');
|
|
5
|
+
const session = require('../../shared/better-auth.DmBU2Klq.cjs');
|
|
5
6
|
require('zod/v4');
|
|
6
|
-
const cookies_index = require('../../
|
|
7
|
+
const cookies_index = require('../../shared/better-auth.l2-e84v_.cjs');
|
|
7
8
|
const schema$1 = require('../../shared/better-auth.BIMq4RPW.cjs');
|
|
8
9
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
9
|
-
require('../../shared/better-auth.
|
|
10
|
+
require('../../shared/better-auth.B3274wGK.cjs');
|
|
10
11
|
const url = require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
11
12
|
const id = require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
12
13
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
@@ -24,10 +25,10 @@ require('@noble/hashes/utils');
|
|
|
24
25
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
25
26
|
require('@better-auth/utils/random');
|
|
26
27
|
require('@better-fetch/fetch');
|
|
27
|
-
require('
|
|
28
|
+
require('jose/errors');
|
|
29
|
+
require('../../shared/better-auth.vPQBmXQL.cjs');
|
|
28
30
|
require('@better-auth/utils/hmac');
|
|
29
31
|
require('@better-auth/utils/binary');
|
|
30
|
-
require('jose/errors');
|
|
31
32
|
require('defu');
|
|
32
33
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
33
34
|
|
|
@@ -50,7 +51,7 @@ const anonymous = (options) => {
|
|
|
50
51
|
return {
|
|
51
52
|
id: "anonymous",
|
|
52
53
|
endpoints: {
|
|
53
|
-
signInAnonymous:
|
|
54
|
+
signInAnonymous: session.createAuthEndpoint(
|
|
54
55
|
"/sign-in/anonymous",
|
|
55
56
|
{
|
|
56
57
|
method: "POST",
|
|
@@ -137,20 +138,20 @@ const anonymous = (options) => {
|
|
|
137
138
|
matcher(ctx) {
|
|
138
139
|
return ctx.path.startsWith("/sign-in") || ctx.path.startsWith("/sign-up") || ctx.path.startsWith("/callback") || ctx.path.startsWith("/oauth2/callback") || ctx.path.startsWith("/magic-link/verify") || ctx.path.startsWith("/email-otp/verify-email") || ctx.path.startsWith("/one-tap/callback") || ctx.path.startsWith("/passkey/verify-authentication");
|
|
139
140
|
},
|
|
140
|
-
handler:
|
|
141
|
+
handler: session.createAuthMiddleware(async (ctx) => {
|
|
141
142
|
const setCookie = ctx.context.responseHeaders?.get("set-cookie");
|
|
142
143
|
const sessionTokenName = ctx.context.authCookies.sessionToken.name;
|
|
143
144
|
const sessionCookie = cookies_index.parseSetCookieHeader(setCookie || "").get(sessionTokenName)?.value.split(".")[0];
|
|
144
145
|
if (!sessionCookie) {
|
|
145
146
|
return;
|
|
146
147
|
}
|
|
147
|
-
const session = await
|
|
148
|
+
const session$1 = await session.getSessionFromCtx(
|
|
148
149
|
ctx,
|
|
149
150
|
{
|
|
150
151
|
disableRefresh: true
|
|
151
152
|
}
|
|
152
153
|
);
|
|
153
|
-
if (!session || !session.user.isAnonymous) {
|
|
154
|
+
if (!session$1 || !session$1.user.isAnonymous) {
|
|
154
155
|
return;
|
|
155
156
|
}
|
|
156
157
|
if (ctx.path === "/sign-in/anonymous") {
|
|
@@ -164,12 +165,12 @@ const anonymous = (options) => {
|
|
|
164
165
|
}
|
|
165
166
|
if (options?.onLinkAccount) {
|
|
166
167
|
await options?.onLinkAccount?.({
|
|
167
|
-
anonymousUser: session,
|
|
168
|
+
anonymousUser: session$1,
|
|
168
169
|
newUser: newSession
|
|
169
170
|
});
|
|
170
171
|
}
|
|
171
172
|
if (!options?.disableDeleteAnonymousUser) {
|
|
172
|
-
await ctx.context.internalAdapter.deleteUser(session.user.id);
|
|
173
|
+
await ctx.context.internalAdapter.deleteUser(session$1.user.id);
|
|
173
174
|
}
|
|
174
175
|
})
|
|
175
176
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { U as User, S as Session, p as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
1
|
+
import { U as User, S as Session, p as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.BWfwO5vl.cjs';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import { EndpointContext } from 'better-call';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'zod/v4';
|
|
6
|
-
import '../../shared/better-auth.
|
|
7
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
7
|
+
import '../../shared/better-auth.Du7MKGKS.cjs';
|
|
8
8
|
import 'jose';
|
|
9
9
|
import 'zod/v4/core';
|
|
10
10
|
import 'zod';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { U as User, S as Session, p as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
1
|
+
import { U as User, S as Session, p as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.oCjO5qEz.mjs';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import { EndpointContext } from 'better-call';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'zod/v4';
|
|
6
|
-
import '../../shared/better-auth.
|
|
7
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
7
|
+
import '../../shared/better-auth.F1OUHOUm.mjs';
|
|
8
8
|
import 'jose';
|
|
9
9
|
import 'zod/v4/core';
|
|
10
10
|
import 'zod';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { U as User, S as Session, p as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
1
|
+
import { U as User, S as Session, p as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.Bxn_1Cii.js';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import { EndpointContext } from 'better-call';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'zod/v4';
|
|
6
|
-
import '../../shared/better-auth.
|
|
7
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.DTtXpZYr.js';
|
|
7
|
+
import '../../shared/better-auth.D4yr0Ou1.js';
|
|
8
8
|
import 'jose';
|
|
9
9
|
import 'zod/v4/core';
|
|
10
10
|
import 'zod';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { APIError } from 'better-call';
|
|
2
|
-
import
|
|
2
|
+
import '../../shared/better-auth.Cl1MyjEq.mjs';
|
|
3
|
+
import { c as createAuthMiddleware, a as createAuthEndpoint, g as getSessionFromCtx } from '../../shared/better-auth.BfeJWAMn.mjs';
|
|
3
4
|
import 'zod/v4';
|
|
4
|
-
import { parseSetCookieHeader, setSessionCookie } from '../../
|
|
5
|
+
import { p as parseSetCookieHeader, s as setSessionCookie } from '../../shared/better-auth.DF-MUmVw.mjs';
|
|
5
6
|
import { m as mergeSchema } from '../../shared/better-auth.n2KFGwjY.mjs';
|
|
6
7
|
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
7
|
-
import '../../shared/better-auth.
|
|
8
|
+
import '../../shared/better-auth.BjBlybv-.mjs';
|
|
8
9
|
import { g as getOrigin } from '../../shared/better-auth.CuS_eDdK.mjs';
|
|
9
10
|
import { g as generateId } from '../../shared/better-auth.BUPPRXfK.mjs';
|
|
10
11
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
@@ -22,10 +23,10 @@ import '@noble/hashes/utils';
|
|
|
22
23
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
23
24
|
import '@better-auth/utils/random';
|
|
24
25
|
import '@better-fetch/fetch';
|
|
25
|
-
import '
|
|
26
|
+
import 'jose/errors';
|
|
27
|
+
import '../../shared/better-auth.BZZKN1g7.mjs';
|
|
26
28
|
import '@better-auth/utils/hmac';
|
|
27
29
|
import '@better-auth/utils/binary';
|
|
28
|
-
import 'jose/errors';
|
|
29
30
|
import 'defu';
|
|
30
31
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
31
32
|
|
|
@@ -4,15 +4,16 @@ const betterCall = require('better-call');
|
|
|
4
4
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
5
5
|
require('@better-auth/utils/base64');
|
|
6
6
|
const hmac = require('@better-auth/utils/hmac');
|
|
7
|
-
require('../../shared/better-auth.
|
|
7
|
+
require('../../shared/better-auth.B3274wGK.cjs');
|
|
8
8
|
require('@better-auth/utils/binary');
|
|
9
|
-
const cookies_index = require('../../
|
|
10
|
-
|
|
9
|
+
const cookies_index = require('../../shared/better-auth.l2-e84v_.cjs');
|
|
10
|
+
require('../../shared/better-auth.UmJlYEfa.cjs');
|
|
11
|
+
const session = require('../../shared/better-auth.DmBU2Klq.cjs');
|
|
11
12
|
require('zod/v4');
|
|
12
13
|
require('../../shared/better-auth.BIMq4RPW.cjs');
|
|
13
14
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
14
15
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
15
|
-
require('../../shared/better-auth.
|
|
16
|
+
require('../../shared/better-auth.vPQBmXQL.cjs');
|
|
16
17
|
require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
17
18
|
require('@better-auth/utils/hash');
|
|
18
19
|
require('../../crypto/index.cjs');
|
|
@@ -42,7 +43,7 @@ const bearer = (options) => {
|
|
|
42
43
|
context.request?.headers.get("authorization") || context.headers?.get("authorization")
|
|
43
44
|
);
|
|
44
45
|
},
|
|
45
|
-
handler:
|
|
46
|
+
handler: session.createAuthMiddleware(async (c) => {
|
|
46
47
|
const token = c.request?.headers.get("authorization")?.replace("Bearer ", "") || c.headers?.get("Authorization")?.replace("Bearer ", "");
|
|
47
48
|
if (!token) {
|
|
48
49
|
return;
|
|
@@ -93,7 +94,7 @@ const bearer = (options) => {
|
|
|
93
94
|
matcher(context) {
|
|
94
95
|
return true;
|
|
95
96
|
},
|
|
96
|
-
handler:
|
|
97
|
+
handler: session.createAuthMiddleware(async (ctx) => {
|
|
97
98
|
const setCookie = ctx.context.responseHeaders?.get("set-cookie");
|
|
98
99
|
if (!setCookie) {
|
|
99
100
|
return;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { H as HookEndpointContext } from '../../shared/better-auth.BWfwO5vl.cjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'zod/v4';
|
|
5
|
-
import '../../shared/better-auth.
|
|
6
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
+
import '../../shared/better-auth.Du7MKGKS.cjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { H as HookEndpointContext } from '../../shared/better-auth.oCjO5qEz.mjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'zod/v4';
|
|
5
|
-
import '../../shared/better-auth.
|
|
6
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
+
import '../../shared/better-auth.F1OUHOUm.mjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { H as HookEndpointContext } from '../../shared/better-auth.Bxn_1Cii.js';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'zod/v4';
|
|
5
|
-
import '../../shared/better-auth.
|
|
6
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
+
import '../../shared/better-auth.D4yr0Ou1.js';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -2,15 +2,16 @@ import { serializeSignedCookie } from 'better-call';
|
|
|
2
2
|
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
3
3
|
import '@better-auth/utils/base64';
|
|
4
4
|
import { createHMAC } from '@better-auth/utils/hmac';
|
|
5
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.BjBlybv-.mjs';
|
|
6
6
|
import '@better-auth/utils/binary';
|
|
7
|
-
import { parseSetCookieHeader } from '../../
|
|
8
|
-
import
|
|
7
|
+
import { p as parseSetCookieHeader } from '../../shared/better-auth.DF-MUmVw.mjs';
|
|
8
|
+
import '../../shared/better-auth.Cl1MyjEq.mjs';
|
|
9
|
+
import { c as createAuthMiddleware } from '../../shared/better-auth.BfeJWAMn.mjs';
|
|
9
10
|
import 'zod/v4';
|
|
10
11
|
import '../../shared/better-auth.n2KFGwjY.mjs';
|
|
11
12
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
12
13
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
13
|
-
import '../../shared/better-auth.
|
|
14
|
+
import '../../shared/better-auth.BZZKN1g7.mjs';
|
|
14
15
|
import '../../shared/better-auth.CuS_eDdK.mjs';
|
|
15
16
|
import '@better-auth/utils/hash';
|
|
16
17
|
import '../../crypto/index.mjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as AuthContext } from '../../shared/better-auth.
|
|
1
|
+
import { p as AuthContext } from '../../shared/better-auth.BWfwO5vl.cjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import 'zod/v4';
|
|
5
|
-
import '../../shared/better-auth.
|
|
6
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
+
import '../../shared/better-auth.Du7MKGKS.cjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as AuthContext } from '../../shared/better-auth.
|
|
1
|
+
import { p as AuthContext } from '../../shared/better-auth.oCjO5qEz.mjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import 'zod/v4';
|
|
5
|
-
import '../../shared/better-auth.
|
|
6
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
+
import '../../shared/better-auth.F1OUHOUm.mjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as AuthContext } from '../../shared/better-auth.
|
|
1
|
+
import { p as AuthContext } from '../../shared/better-auth.Bxn_1Cii.js';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import 'zod/v4';
|
|
5
|
-
import '../../shared/better-auth.
|
|
6
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
+
import '../../shared/better-auth.D4yr0Ou1.js';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
const z = require('zod/v4');
|
|
4
4
|
require('better-call');
|
|
5
|
-
|
|
5
|
+
require('../../shared/better-auth.UmJlYEfa.cjs');
|
|
6
|
+
const session = require('../../shared/better-auth.DmBU2Klq.cjs');
|
|
6
7
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
7
8
|
require('@better-auth/utils/base64');
|
|
8
9
|
require('@better-auth/utils/hmac');
|
|
9
|
-
require('../../shared/better-auth.
|
|
10
|
+
require('../../shared/better-auth.B3274wGK.cjs');
|
|
10
11
|
require('@better-auth/utils/binary');
|
|
11
12
|
require('../../shared/better-auth.BIMq4RPW.cjs');
|
|
12
13
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
@@ -25,8 +26,8 @@ require('@better-auth/utils/random');
|
|
|
25
26
|
require('@better-fetch/fetch');
|
|
26
27
|
require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
27
28
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
28
|
-
require('../../
|
|
29
|
-
require('../../shared/better-auth.
|
|
29
|
+
require('../../shared/better-auth.l2-e84v_.cjs');
|
|
30
|
+
require('../../shared/better-auth.vPQBmXQL.cjs');
|
|
30
31
|
require('jose/errors');
|
|
31
32
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
32
33
|
require('defu');
|
|
@@ -63,7 +64,7 @@ const customSession = (fn, options) => {
|
|
|
63
64
|
return {
|
|
64
65
|
id: "custom-session",
|
|
65
66
|
endpoints: {
|
|
66
|
-
getSession:
|
|
67
|
+
getSession: session.createAuthEndpoint(
|
|
67
68
|
"/get-session",
|
|
68
69
|
{
|
|
69
70
|
method: "GET",
|
|
@@ -93,7 +94,7 @@ const customSession = (fn, options) => {
|
|
|
93
94
|
requireHeaders: true
|
|
94
95
|
},
|
|
95
96
|
async (ctx) => {
|
|
96
|
-
const session = await
|
|
97
|
+
const session$1 = await session.getSession()({
|
|
97
98
|
...ctx,
|
|
98
99
|
asResponse: false,
|
|
99
100
|
headers: ctx.headers,
|
|
@@ -101,11 +102,11 @@ const customSession = (fn, options) => {
|
|
|
101
102
|
}).catch((e) => {
|
|
102
103
|
return null;
|
|
103
104
|
});
|
|
104
|
-
if (!session?.response) {
|
|
105
|
+
if (!session$1?.response) {
|
|
105
106
|
return ctx.json(null);
|
|
106
107
|
}
|
|
107
|
-
const fnResult = await fn(session.response, ctx);
|
|
108
|
-
session.headers.forEach((value, key) => {
|
|
108
|
+
const fnResult = await fn(session$1.response, ctx);
|
|
109
|
+
session$1.headers.forEach((value, key) => {
|
|
109
110
|
ctx.setHeader(key, value);
|
|
110
111
|
});
|
|
111
112
|
return ctx.json(fnResult);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { B as BetterAuthOptions, q as InferUser, r as InferSession, G as GenericEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { B as BetterAuthOptions, q as InferUser, r as InferSession, G as GenericEndpointContext } from '../../shared/better-auth.BWfwO5vl.cjs';
|
|
4
4
|
import 'kysely';
|
|
5
|
-
import '../../shared/better-auth.
|
|
6
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
+
import '../../shared/better-auth.Du7MKGKS.cjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { B as BetterAuthOptions, q as InferUser, r as InferSession, G as GenericEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { B as BetterAuthOptions, q as InferUser, r as InferSession, G as GenericEndpointContext } from '../../shared/better-auth.oCjO5qEz.mjs';
|
|
4
4
|
import 'kysely';
|
|
5
|
-
import '../../shared/better-auth.
|
|
6
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
+
import '../../shared/better-auth.F1OUHOUm.mjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { B as BetterAuthOptions, q as InferUser, r as InferSession, G as GenericEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { B as BetterAuthOptions, q as InferUser, r as InferSession, G as GenericEndpointContext } from '../../shared/better-auth.Bxn_1Cii.js';
|
|
4
4
|
import 'kysely';
|
|
5
|
-
import '../../shared/better-auth.
|
|
6
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
+
import '../../shared/better-auth.D4yr0Ou1.js';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
import 'better-call';
|
|
3
|
-
import
|
|
3
|
+
import '../../shared/better-auth.Cl1MyjEq.mjs';
|
|
4
|
+
import { a as createAuthEndpoint, b as getSession } from '../../shared/better-auth.BfeJWAMn.mjs';
|
|
4
5
|
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
5
6
|
import '@better-auth/utils/base64';
|
|
6
7
|
import '@better-auth/utils/hmac';
|
|
7
|
-
import '../../shared/better-auth.
|
|
8
|
+
import '../../shared/better-auth.BjBlybv-.mjs';
|
|
8
9
|
import '@better-auth/utils/binary';
|
|
9
10
|
import '../../shared/better-auth.n2KFGwjY.mjs';
|
|
10
11
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
@@ -23,8 +24,8 @@ import '@better-auth/utils/random';
|
|
|
23
24
|
import '@better-fetch/fetch';
|
|
24
25
|
import '../../shared/better-auth.CuS_eDdK.mjs';
|
|
25
26
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
26
|
-
import '../../
|
|
27
|
-
import '../../shared/better-auth.
|
|
27
|
+
import '../../shared/better-auth.DF-MUmVw.mjs';
|
|
28
|
+
import '../../shared/better-auth.BZZKN1g7.mjs';
|
|
28
29
|
import 'jose/errors';
|
|
29
30
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
30
31
|
import 'defu';
|