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,14 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
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
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
|
-
const cookies_index = require('../
|
|
12
|
+
const cookies_index = require('../shared/better-auth.l2-e84v_.cjs');
|
|
12
13
|
require('../shared/better-auth.BIMq4RPW.cjs');
|
|
13
14
|
require('../shared/better-auth.C1hdVENX.cjs');
|
|
14
15
|
require('@better-auth/utils/hash');
|
|
@@ -26,8 +27,8 @@ require('@better-auth/utils/random');
|
|
|
26
27
|
require('@better-fetch/fetch');
|
|
27
28
|
require('../shared/better-auth.DRmln2Nr.cjs');
|
|
28
29
|
require('../shared/better-auth.ANpbi45u.cjs');
|
|
29
|
-
require('../shared/better-auth.DbrEw0kN.cjs');
|
|
30
30
|
require('jose/errors');
|
|
31
|
+
require('../shared/better-auth.vPQBmXQL.cjs');
|
|
31
32
|
require('../shared/better-auth.Bg6iw3ig.cjs');
|
|
32
33
|
require('defu');
|
|
33
34
|
|
|
@@ -70,7 +71,7 @@ const sveltekitCookies = (getRequestEvent) => {
|
|
|
70
71
|
matcher() {
|
|
71
72
|
return true;
|
|
72
73
|
},
|
|
73
|
-
handler:
|
|
74
|
+
handler: session.createAuthMiddleware(async (ctx) => {
|
|
74
75
|
const returned = ctx.context.responseHeaders;
|
|
75
76
|
if ("_flag" in ctx && ctx._flag === "router") {
|
|
76
77
|
return;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { B as BetterAuthOptions } from '../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions } from '../shared/better-auth.BWfwO5vl.cjs';
|
|
3
3
|
import { RequestEvent } from '@sveltejs/kit';
|
|
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
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { B as BetterAuthOptions } from '../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions } from '../shared/better-auth.oCjO5qEz.mjs';
|
|
3
3
|
import { RequestEvent } from '@sveltejs/kit';
|
|
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
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { B as BetterAuthOptions } from '../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions } from '../shared/better-auth.Bxn_1Cii.js';
|
|
3
3
|
import { RequestEvent } from '@sveltejs/kit';
|
|
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,12 +1,13 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
import
|
|
2
|
+
import '../shared/better-auth.Cl1MyjEq.mjs';
|
|
3
|
+
import { c as createAuthMiddleware } from '../shared/better-auth.BfeJWAMn.mjs';
|
|
3
4
|
import 'zod/v4';
|
|
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
|
-
import { parseSetCookieHeader } from '../
|
|
10
|
+
import { p as parseSetCookieHeader } from '../shared/better-auth.DF-MUmVw.mjs';
|
|
10
11
|
import '../shared/better-auth.n2KFGwjY.mjs';
|
|
11
12
|
import '../shared/better-auth.CW6D9eSx.mjs';
|
|
12
13
|
import '@better-auth/utils/hash';
|
|
@@ -24,8 +25,8 @@ import '@better-auth/utils/random';
|
|
|
24
25
|
import '@better-fetch/fetch';
|
|
25
26
|
import '../shared/better-auth.CuS_eDdK.mjs';
|
|
26
27
|
import '../shared/better-auth.DdzSJf-n.mjs';
|
|
27
|
-
import '../shared/better-auth.PgM8qMHr.mjs';
|
|
28
28
|
import 'jose/errors';
|
|
29
|
+
import '../shared/better-auth.BZZKN1g7.mjs';
|
|
29
30
|
import '../shared/better-auth.BUPPRXfK.mjs';
|
|
30
31
|
import 'defu';
|
|
31
32
|
|
package/dist/oauth2/index.cjs
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const socialProviders_index = require('../shared/better-auth.
|
|
3
|
+
const socialProviders_index = require('../shared/better-auth.UmJlYEfa.cjs');
|
|
4
4
|
require('zod/v4');
|
|
5
|
+
require('../shared/better-auth.DmBU2Klq.cjs');
|
|
5
6
|
require('better-call');
|
|
6
7
|
require('../shared/better-auth.C1hdVENX.cjs');
|
|
7
|
-
require('
|
|
8
|
+
require('../shared/better-auth.l2-e84v_.cjs');
|
|
9
|
+
require('../shared/better-auth.ANpbi45u.cjs');
|
|
10
|
+
require('../shared/better-auth.B6fIklBU.cjs');
|
|
8
11
|
require('@better-auth/utils/base64');
|
|
12
|
+
require('@better-auth/utils/hmac');
|
|
13
|
+
require('../shared/better-auth.vPQBmXQL.cjs');
|
|
14
|
+
require('../shared/better-auth.B3274wGK.cjs');
|
|
15
|
+
require('../shared/better-auth.DRmln2Nr.cjs');
|
|
16
|
+
require('@better-auth/utils/binary');
|
|
17
|
+
require('@better-auth/utils/hash');
|
|
9
18
|
require('../crypto/index.cjs');
|
|
10
19
|
require('@noble/ciphers/chacha');
|
|
11
20
|
require('@noble/ciphers/utils');
|
|
@@ -18,14 +27,6 @@ require('@noble/hashes/utils');
|
|
|
18
27
|
require('../shared/better-auth.CYeOI8C-.cjs');
|
|
19
28
|
require('@better-auth/utils/random');
|
|
20
29
|
require('@better-fetch/fetch');
|
|
21
|
-
require('../shared/better-auth.DRmln2Nr.cjs');
|
|
22
|
-
require('../shared/better-auth.B6fIklBU.cjs');
|
|
23
|
-
require('../shared/better-auth.ANpbi45u.cjs');
|
|
24
|
-
require('../cookies/index.cjs');
|
|
25
|
-
require('@better-auth/utils/hmac');
|
|
26
|
-
require('../shared/better-auth.DbrEw0kN.cjs');
|
|
27
|
-
require('../shared/better-auth.GpOOav9x.cjs');
|
|
28
|
-
require('@better-auth/utils/binary');
|
|
29
30
|
require('jose/errors');
|
|
30
31
|
require('../shared/better-auth.Bg6iw3ig.cjs');
|
|
31
32
|
require('../shared/better-auth.BIMq4RPW.cjs');
|
|
@@ -33,7 +34,9 @@ require('defu');
|
|
|
33
34
|
|
|
34
35
|
|
|
35
36
|
|
|
37
|
+
exports.createAuthorizationCodeRequest = socialProviders_index.createAuthorizationCodeRequest;
|
|
36
38
|
exports.createAuthorizationURL = socialProviders_index.createAuthorizationURL;
|
|
39
|
+
exports.createRefreshAccessTokenRequest = socialProviders_index.createRefreshAccessTokenRequest;
|
|
37
40
|
exports.decryptOAuthToken = socialProviders_index.decryptOAuthToken;
|
|
38
41
|
exports.encodeOAuthParameter = socialProviders_index.encodeOAuthParameter;
|
|
39
42
|
exports.generateCodeChallenge = socialProviders_index.generateCodeChallenge;
|
package/dist/oauth2/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.
|
|
2
|
-
export { a as OAuthProvider } from '../shared/better-auth.
|
|
1
|
+
import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.Du7MKGKS.cjs';
|
|
2
|
+
export { a as OAuth2UserInfo, b as OAuthProvider } from '../shared/better-auth.Du7MKGKS.cjs';
|
|
3
3
|
import * as jose from 'jose';
|
|
4
|
-
import { p as AuthContext, G as GenericEndpointContext, U as User, O as Account } from '../shared/better-auth.
|
|
5
|
-
export { g as generateState, p as parseState } from '../shared/better-auth.
|
|
6
|
-
import '../shared/better-auth.
|
|
4
|
+
import { p as AuthContext, G as GenericEndpointContext, U as User, O as Account } from '../shared/better-auth.BWfwO5vl.cjs';
|
|
5
|
+
export { g as generateState, p as parseState } from '../shared/better-auth.D2gg3ys1.cjs';
|
|
6
|
+
import '../shared/better-auth.DTtXpZYr.cjs';
|
|
7
7
|
import 'zod/v4';
|
|
8
8
|
import 'kysely';
|
|
9
9
|
import 'better-call';
|
|
@@ -33,7 +33,21 @@ declare function createAuthorizationURL({ id, options, authorizationEndpoint, st
|
|
|
33
33
|
scopeJoiner?: string;
|
|
34
34
|
}): Promise<URL>;
|
|
35
35
|
|
|
36
|
-
declare function
|
|
36
|
+
declare function createAuthorizationCodeRequest({ code, codeVerifier, redirectURI, options, authentication, deviceId, headers, additionalParams, resource, }: {
|
|
37
|
+
code: string;
|
|
38
|
+
redirectURI: string;
|
|
39
|
+
options: Partial<ProviderOptions>;
|
|
40
|
+
codeVerifier?: string;
|
|
41
|
+
deviceId?: string;
|
|
42
|
+
authentication?: "basic" | "post";
|
|
43
|
+
headers?: Record<string, string>;
|
|
44
|
+
additionalParams?: Record<string, string>;
|
|
45
|
+
resource?: string | string[];
|
|
46
|
+
}): {
|
|
47
|
+
body: URLSearchParams;
|
|
48
|
+
headers: Record<string, any>;
|
|
49
|
+
};
|
|
50
|
+
declare function validateAuthorizationCode({ code, codeVerifier, redirectURI, options, tokenEndpoint, authentication, deviceId, headers, additionalParams, resource, }: {
|
|
37
51
|
code: string;
|
|
38
52
|
redirectURI: string;
|
|
39
53
|
options: Partial<ProviderOptions>;
|
|
@@ -43,15 +57,27 @@ declare function validateAuthorizationCode({ code, codeVerifier, redirectURI, op
|
|
|
43
57
|
authentication?: "basic" | "post";
|
|
44
58
|
headers?: Record<string, string>;
|
|
45
59
|
additionalParams?: Record<string, string>;
|
|
60
|
+
resource?: string | string[];
|
|
46
61
|
}): Promise<OAuth2Tokens>;
|
|
47
62
|
declare function validateToken(token: string, jwksEndpoint: string): Promise<jose.JWTVerifyResult<jose.JWTPayload>>;
|
|
48
63
|
|
|
49
|
-
declare function
|
|
64
|
+
declare function createRefreshAccessTokenRequest({ refreshToken, options, authentication, extraParams, resource, }: {
|
|
65
|
+
refreshToken: string;
|
|
66
|
+
options: Partial<ProviderOptions>;
|
|
67
|
+
authentication?: "basic" | "post";
|
|
68
|
+
extraParams?: Record<string, string>;
|
|
69
|
+
resource?: string | string[];
|
|
70
|
+
}): {
|
|
71
|
+
body: URLSearchParams;
|
|
72
|
+
headers: Record<string, any>;
|
|
73
|
+
};
|
|
74
|
+
declare function refreshAccessToken({ refreshToken, options, tokenEndpoint, authentication, extraParams, }: {
|
|
50
75
|
refreshToken: string;
|
|
51
76
|
options: Partial<ProviderOptions>;
|
|
52
77
|
tokenEndpoint: string;
|
|
53
78
|
authentication?: "basic" | "post";
|
|
54
79
|
extraParams?: Record<string, string>;
|
|
80
|
+
/** @deprecated always "refresh_token" */
|
|
55
81
|
grantType?: string;
|
|
56
82
|
}): Promise<OAuth2Tokens>;
|
|
57
83
|
|
|
@@ -101,4 +127,4 @@ declare function handleOAuthUserInfo(c: GenericEndpointContext, { userInfo, acco
|
|
|
101
127
|
isRegister: boolean;
|
|
102
128
|
}>;
|
|
103
129
|
|
|
104
|
-
export { OAuth2Tokens, ProviderOptions, createAuthorizationURL, decryptOAuthToken, encodeOAuthParameter, generateCodeChallenge, getOAuth2Tokens, handleOAuthUserInfo, refreshAccessToken, setTokenUtil, validateAuthorizationCode, validateToken };
|
|
130
|
+
export { OAuth2Tokens, ProviderOptions, createAuthorizationCodeRequest, createAuthorizationURL, createRefreshAccessTokenRequest, decryptOAuthToken, encodeOAuthParameter, generateCodeChallenge, getOAuth2Tokens, handleOAuthUserInfo, refreshAccessToken, setTokenUtil, validateAuthorizationCode, validateToken };
|
package/dist/oauth2/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.
|
|
2
|
-
export { a as OAuthProvider } from '../shared/better-auth.
|
|
1
|
+
import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.F1OUHOUm.mjs';
|
|
2
|
+
export { a as OAuth2UserInfo, b as OAuthProvider } from '../shared/better-auth.F1OUHOUm.mjs';
|
|
3
3
|
import * as jose from 'jose';
|
|
4
|
-
import { p as AuthContext, G as GenericEndpointContext, U as User, O as Account } from '../shared/better-auth.
|
|
5
|
-
export { g as generateState, p as parseState } from '../shared/better-auth.
|
|
6
|
-
import '../shared/better-auth.
|
|
4
|
+
import { p as AuthContext, G as GenericEndpointContext, U as User, O as Account } from '../shared/better-auth.oCjO5qEz.mjs';
|
|
5
|
+
export { g as generateState, p as parseState } from '../shared/better-auth.BqrGtIt2.mjs';
|
|
6
|
+
import '../shared/better-auth.DTtXpZYr.mjs';
|
|
7
7
|
import 'zod/v4';
|
|
8
8
|
import 'kysely';
|
|
9
9
|
import 'better-call';
|
|
@@ -33,7 +33,21 @@ declare function createAuthorizationURL({ id, options, authorizationEndpoint, st
|
|
|
33
33
|
scopeJoiner?: string;
|
|
34
34
|
}): Promise<URL>;
|
|
35
35
|
|
|
36
|
-
declare function
|
|
36
|
+
declare function createAuthorizationCodeRequest({ code, codeVerifier, redirectURI, options, authentication, deviceId, headers, additionalParams, resource, }: {
|
|
37
|
+
code: string;
|
|
38
|
+
redirectURI: string;
|
|
39
|
+
options: Partial<ProviderOptions>;
|
|
40
|
+
codeVerifier?: string;
|
|
41
|
+
deviceId?: string;
|
|
42
|
+
authentication?: "basic" | "post";
|
|
43
|
+
headers?: Record<string, string>;
|
|
44
|
+
additionalParams?: Record<string, string>;
|
|
45
|
+
resource?: string | string[];
|
|
46
|
+
}): {
|
|
47
|
+
body: URLSearchParams;
|
|
48
|
+
headers: Record<string, any>;
|
|
49
|
+
};
|
|
50
|
+
declare function validateAuthorizationCode({ code, codeVerifier, redirectURI, options, tokenEndpoint, authentication, deviceId, headers, additionalParams, resource, }: {
|
|
37
51
|
code: string;
|
|
38
52
|
redirectURI: string;
|
|
39
53
|
options: Partial<ProviderOptions>;
|
|
@@ -43,15 +57,27 @@ declare function validateAuthorizationCode({ code, codeVerifier, redirectURI, op
|
|
|
43
57
|
authentication?: "basic" | "post";
|
|
44
58
|
headers?: Record<string, string>;
|
|
45
59
|
additionalParams?: Record<string, string>;
|
|
60
|
+
resource?: string | string[];
|
|
46
61
|
}): Promise<OAuth2Tokens>;
|
|
47
62
|
declare function validateToken(token: string, jwksEndpoint: string): Promise<jose.JWTVerifyResult<jose.JWTPayload>>;
|
|
48
63
|
|
|
49
|
-
declare function
|
|
64
|
+
declare function createRefreshAccessTokenRequest({ refreshToken, options, authentication, extraParams, resource, }: {
|
|
65
|
+
refreshToken: string;
|
|
66
|
+
options: Partial<ProviderOptions>;
|
|
67
|
+
authentication?: "basic" | "post";
|
|
68
|
+
extraParams?: Record<string, string>;
|
|
69
|
+
resource?: string | string[];
|
|
70
|
+
}): {
|
|
71
|
+
body: URLSearchParams;
|
|
72
|
+
headers: Record<string, any>;
|
|
73
|
+
};
|
|
74
|
+
declare function refreshAccessToken({ refreshToken, options, tokenEndpoint, authentication, extraParams, }: {
|
|
50
75
|
refreshToken: string;
|
|
51
76
|
options: Partial<ProviderOptions>;
|
|
52
77
|
tokenEndpoint: string;
|
|
53
78
|
authentication?: "basic" | "post";
|
|
54
79
|
extraParams?: Record<string, string>;
|
|
80
|
+
/** @deprecated always "refresh_token" */
|
|
55
81
|
grantType?: string;
|
|
56
82
|
}): Promise<OAuth2Tokens>;
|
|
57
83
|
|
|
@@ -101,4 +127,4 @@ declare function handleOAuthUserInfo(c: GenericEndpointContext, { userInfo, acco
|
|
|
101
127
|
isRegister: boolean;
|
|
102
128
|
}>;
|
|
103
129
|
|
|
104
|
-
export { OAuth2Tokens, ProviderOptions, createAuthorizationURL, decryptOAuthToken, encodeOAuthParameter, generateCodeChallenge, getOAuth2Tokens, handleOAuthUserInfo, refreshAccessToken, setTokenUtil, validateAuthorizationCode, validateToken };
|
|
130
|
+
export { OAuth2Tokens, ProviderOptions, createAuthorizationCodeRequest, createAuthorizationURL, createRefreshAccessTokenRequest, decryptOAuthToken, encodeOAuthParameter, generateCodeChallenge, getOAuth2Tokens, handleOAuthUserInfo, refreshAccessToken, setTokenUtil, validateAuthorizationCode, validateToken };
|
package/dist/oauth2/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.
|
|
2
|
-
export { a as OAuthProvider } from '../shared/better-auth.
|
|
1
|
+
import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.D4yr0Ou1.js';
|
|
2
|
+
export { a as OAuth2UserInfo, b as OAuthProvider } from '../shared/better-auth.D4yr0Ou1.js';
|
|
3
3
|
import * as jose from 'jose';
|
|
4
|
-
import { p as AuthContext, G as GenericEndpointContext, U as User, O as Account } from '../shared/better-auth.
|
|
5
|
-
export { g as generateState, p as parseState } from '../shared/better-auth.
|
|
6
|
-
import '../shared/better-auth.
|
|
4
|
+
import { p as AuthContext, G as GenericEndpointContext, U as User, O as Account } from '../shared/better-auth.Bxn_1Cii.js';
|
|
5
|
+
export { g as generateState, p as parseState } from '../shared/better-auth.BvN9j5Ap.js';
|
|
6
|
+
import '../shared/better-auth.DTtXpZYr.js';
|
|
7
7
|
import 'zod/v4';
|
|
8
8
|
import 'kysely';
|
|
9
9
|
import 'better-call';
|
|
@@ -33,7 +33,21 @@ declare function createAuthorizationURL({ id, options, authorizationEndpoint, st
|
|
|
33
33
|
scopeJoiner?: string;
|
|
34
34
|
}): Promise<URL>;
|
|
35
35
|
|
|
36
|
-
declare function
|
|
36
|
+
declare function createAuthorizationCodeRequest({ code, codeVerifier, redirectURI, options, authentication, deviceId, headers, additionalParams, resource, }: {
|
|
37
|
+
code: string;
|
|
38
|
+
redirectURI: string;
|
|
39
|
+
options: Partial<ProviderOptions>;
|
|
40
|
+
codeVerifier?: string;
|
|
41
|
+
deviceId?: string;
|
|
42
|
+
authentication?: "basic" | "post";
|
|
43
|
+
headers?: Record<string, string>;
|
|
44
|
+
additionalParams?: Record<string, string>;
|
|
45
|
+
resource?: string | string[];
|
|
46
|
+
}): {
|
|
47
|
+
body: URLSearchParams;
|
|
48
|
+
headers: Record<string, any>;
|
|
49
|
+
};
|
|
50
|
+
declare function validateAuthorizationCode({ code, codeVerifier, redirectURI, options, tokenEndpoint, authentication, deviceId, headers, additionalParams, resource, }: {
|
|
37
51
|
code: string;
|
|
38
52
|
redirectURI: string;
|
|
39
53
|
options: Partial<ProviderOptions>;
|
|
@@ -43,15 +57,27 @@ declare function validateAuthorizationCode({ code, codeVerifier, redirectURI, op
|
|
|
43
57
|
authentication?: "basic" | "post";
|
|
44
58
|
headers?: Record<string, string>;
|
|
45
59
|
additionalParams?: Record<string, string>;
|
|
60
|
+
resource?: string | string[];
|
|
46
61
|
}): Promise<OAuth2Tokens>;
|
|
47
62
|
declare function validateToken(token: string, jwksEndpoint: string): Promise<jose.JWTVerifyResult<jose.JWTPayload>>;
|
|
48
63
|
|
|
49
|
-
declare function
|
|
64
|
+
declare function createRefreshAccessTokenRequest({ refreshToken, options, authentication, extraParams, resource, }: {
|
|
65
|
+
refreshToken: string;
|
|
66
|
+
options: Partial<ProviderOptions>;
|
|
67
|
+
authentication?: "basic" | "post";
|
|
68
|
+
extraParams?: Record<string, string>;
|
|
69
|
+
resource?: string | string[];
|
|
70
|
+
}): {
|
|
71
|
+
body: URLSearchParams;
|
|
72
|
+
headers: Record<string, any>;
|
|
73
|
+
};
|
|
74
|
+
declare function refreshAccessToken({ refreshToken, options, tokenEndpoint, authentication, extraParams, }: {
|
|
50
75
|
refreshToken: string;
|
|
51
76
|
options: Partial<ProviderOptions>;
|
|
52
77
|
tokenEndpoint: string;
|
|
53
78
|
authentication?: "basic" | "post";
|
|
54
79
|
extraParams?: Record<string, string>;
|
|
80
|
+
/** @deprecated always "refresh_token" */
|
|
55
81
|
grantType?: string;
|
|
56
82
|
}): Promise<OAuth2Tokens>;
|
|
57
83
|
|
|
@@ -101,4 +127,4 @@ declare function handleOAuthUserInfo(c: GenericEndpointContext, { userInfo, acco
|
|
|
101
127
|
isRegister: boolean;
|
|
102
128
|
}>;
|
|
103
129
|
|
|
104
|
-
export { OAuth2Tokens, ProviderOptions, createAuthorizationURL, decryptOAuthToken, encodeOAuthParameter, generateCodeChallenge, getOAuth2Tokens, handleOAuthUserInfo, refreshAccessToken, setTokenUtil, validateAuthorizationCode, validateToken };
|
|
130
|
+
export { OAuth2Tokens, ProviderOptions, createAuthorizationCodeRequest, createAuthorizationURL, createRefreshAccessTokenRequest, decryptOAuthToken, encodeOAuthParameter, generateCodeChallenge, getOAuth2Tokens, handleOAuthUserInfo, refreshAccessToken, setTokenUtil, validateAuthorizationCode, validateToken };
|
package/dist/oauth2/index.mjs
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
export { c as createAuthorizationURL,
|
|
1
|
+
export { a as createAuthorizationCodeRequest, c as createAuthorizationURL, d as createRefreshAccessTokenRequest, i as decryptOAuthToken, h as encodeOAuthParameter, e as generateCodeChallenge, g as generateState, f as getOAuth2Tokens, j as handleOAuthUserInfo, p as parseState, r as refreshAccessToken, s as setTokenUtil, v as validateAuthorizationCode, b as validateToken } from '../shared/better-auth.Cl1MyjEq.mjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
|
+
import '../shared/better-auth.BfeJWAMn.mjs';
|
|
3
4
|
import 'better-call';
|
|
4
5
|
import '../shared/better-auth.CW6D9eSx.mjs';
|
|
5
|
-
import '
|
|
6
|
+
import '../shared/better-auth.DF-MUmVw.mjs';
|
|
7
|
+
import '../shared/better-auth.DdzSJf-n.mjs';
|
|
8
|
+
import '../shared/better-auth.CMQ3rA-I.mjs';
|
|
6
9
|
import '@better-auth/utils/base64';
|
|
10
|
+
import '@better-auth/utils/hmac';
|
|
11
|
+
import '../shared/better-auth.BZZKN1g7.mjs';
|
|
12
|
+
import '../shared/better-auth.BjBlybv-.mjs';
|
|
13
|
+
import '../shared/better-auth.CuS_eDdK.mjs';
|
|
14
|
+
import '@better-auth/utils/binary';
|
|
15
|
+
import '@better-auth/utils/hash';
|
|
7
16
|
import '../crypto/index.mjs';
|
|
8
17
|
import '@noble/ciphers/chacha';
|
|
9
18
|
import '@noble/ciphers/utils';
|
|
@@ -16,14 +25,6 @@ import '@noble/hashes/utils';
|
|
|
16
25
|
import '../shared/better-auth.B4Qoxdgc.mjs';
|
|
17
26
|
import '@better-auth/utils/random';
|
|
18
27
|
import '@better-fetch/fetch';
|
|
19
|
-
import '../shared/better-auth.CuS_eDdK.mjs';
|
|
20
|
-
import '../shared/better-auth.CMQ3rA-I.mjs';
|
|
21
|
-
import '../shared/better-auth.DdzSJf-n.mjs';
|
|
22
|
-
import '../cookies/index.mjs';
|
|
23
|
-
import '@better-auth/utils/hmac';
|
|
24
|
-
import '../shared/better-auth.PgM8qMHr.mjs';
|
|
25
|
-
import '../shared/better-auth.DH3YjMQH.mjs';
|
|
26
|
-
import '@better-auth/utils/binary';
|
|
27
28
|
import 'jose/errors';
|
|
28
29
|
import '../shared/better-auth.BUPPRXfK.mjs';
|
|
29
30
|
import '../shared/better-auth.n2KFGwjY.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as LiteralString } from '../../shared/better-auth.
|
|
1
|
+
import { L as LiteralString } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
2
2
|
|
|
3
3
|
type SubArray<T extends unknown[] | readonly unknown[] | any[]> = T[number][];
|
|
4
4
|
type Subset<K extends keyof R, R extends Record<string | LiteralString, readonly string[] | readonly LiteralString[]>> = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as LiteralString } from '../../shared/better-auth.
|
|
1
|
+
import { L as LiteralString } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
2
2
|
|
|
3
3
|
type SubArray<T extends unknown[] | readonly unknown[] | any[]> = T[number][];
|
|
4
4
|
type Subset<K extends keyof R, R extends Record<string | LiteralString, readonly string[] | readonly LiteralString[]>> = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as LiteralString } from '../../shared/better-auth.
|
|
1
|
+
import { L as LiteralString } from '../../shared/better-auth.DTtXpZYr.js';
|
|
2
2
|
|
|
3
3
|
type SubArray<T extends unknown[] | readonly unknown[] | any[]> = T[number][];
|
|
4
4
|
type Subset<K extends keyof R, R extends Record<string | LiteralString, readonly string[] | readonly LiteralString[]>> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Subset, AuthorizeResponse } from '../../access/index.cjs';
|
|
2
|
-
import '../../../shared/better-auth.
|
|
2
|
+
import '../../../shared/better-auth.DTtXpZYr.cjs';
|
|
3
3
|
|
|
4
4
|
declare const defaultStatements: {
|
|
5
5
|
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "update"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Subset, AuthorizeResponse } from '../../access/index.mjs';
|
|
2
|
-
import '../../../shared/better-auth.
|
|
2
|
+
import '../../../shared/better-auth.DTtXpZYr.mjs';
|
|
3
3
|
|
|
4
4
|
declare const defaultStatements: {
|
|
5
5
|
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "update"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Subset, AuthorizeResponse } from '../../access/index.js';
|
|
2
|
-
import '../../../shared/better-auth.
|
|
2
|
+
import '../../../shared/better-auth.DTtXpZYr.js';
|
|
3
3
|
|
|
4
4
|
declare const defaultStatements: {
|
|
5
5
|
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "update"];
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const admin = require('../../shared/better-auth.
|
|
3
|
+
const admin = require('../../shared/better-auth.cBJ0kvYy.cjs');
|
|
4
4
|
require('zod/v4');
|
|
5
5
|
require('better-call');
|
|
6
|
-
require('../../shared/better-auth.
|
|
6
|
+
require('../../shared/better-auth.UmJlYEfa.cjs');
|
|
7
|
+
require('../../shared/better-auth.DmBU2Klq.cjs');
|
|
7
8
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
8
|
-
require('
|
|
9
|
+
require('../../shared/better-auth.l2-e84v_.cjs');
|
|
10
|
+
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
11
|
+
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
9
12
|
require('@better-auth/utils/base64');
|
|
13
|
+
require('@better-auth/utils/hmac');
|
|
14
|
+
require('../../shared/better-auth.vPQBmXQL.cjs');
|
|
15
|
+
require('../../shared/better-auth.B3274wGK.cjs');
|
|
16
|
+
require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
17
|
+
require('@better-auth/utils/binary');
|
|
18
|
+
require('@better-auth/utils/hash');
|
|
10
19
|
require('../../crypto/index.cjs');
|
|
11
20
|
require('@noble/ciphers/chacha');
|
|
12
21
|
require('@noble/ciphers/utils');
|
|
@@ -19,14 +28,6 @@ require('@noble/hashes/utils');
|
|
|
19
28
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
20
29
|
require('@better-auth/utils/random');
|
|
21
30
|
require('@better-fetch/fetch');
|
|
22
|
-
require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
23
|
-
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
24
|
-
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
25
|
-
require('../../cookies/index.cjs');
|
|
26
|
-
require('@better-auth/utils/hmac');
|
|
27
|
-
require('../../shared/better-auth.DbrEw0kN.cjs');
|
|
28
|
-
require('../../shared/better-auth.GpOOav9x.cjs');
|
|
29
|
-
require('@better-auth/utils/binary');
|
|
30
31
|
require('jose/errors');
|
|
31
32
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
32
33
|
require('../../shared/better-auth.BIMq4RPW.cjs');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AccessControl, Role, Statements } from '../access/index.cjs';
|
|
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.BWfwO5vl.cjs';
|
|
5
|
+
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
6
|
import 'kysely';
|
|
7
|
-
import '../../shared/better-auth.
|
|
7
|
+
import '../../shared/better-auth.Du7MKGKS.cjs';
|
|
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,10 @@
|
|
|
1
1
|
import { AccessControl, Role, Statements } from '../access/index.mjs';
|
|
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.oCjO5qEz.mjs';
|
|
5
|
+
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
6
|
import 'kysely';
|
|
7
|
-
import '../../shared/better-auth.
|
|
7
|
+
import '../../shared/better-auth.F1OUHOUm.mjs';
|
|
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";
|