better-auth 1.3.8-beta.6 → 1.3.8-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/drizzle-adapter/index.d.cts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.mts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.ts +2 -2
- package/dist/adapters/index.d.cts +3 -3
- package/dist/adapters/index.d.mts +3 -3
- package/dist/adapters/index.d.ts +3 -3
- package/dist/adapters/kysely-adapter/index.d.cts +2 -2
- package/dist/adapters/kysely-adapter/index.d.mts +2 -2
- package/dist/adapters/kysely-adapter/index.d.ts +2 -2
- package/dist/adapters/memory-adapter/index.d.cts +2 -2
- package/dist/adapters/memory-adapter/index.d.mts +2 -2
- package/dist/adapters/memory-adapter/index.d.ts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.cts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.mts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.ts +2 -2
- package/dist/adapters/prisma-adapter/index.d.cts +2 -2
- package/dist/adapters/prisma-adapter/index.d.mts +2 -2
- package/dist/adapters/prisma-adapter/index.d.ts +2 -2
- package/dist/adapters/test.d.cts +27 -27
- package/dist/adapters/test.d.mts +27 -27
- package/dist/adapters/test.d.ts +27 -27
- package/dist/api/index.cjs +3 -3
- 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 +5 -5
- package/dist/client/index.cjs +3 -3
- package/dist/client/index.d.cts +8 -6
- package/dist/client/index.d.mts +8 -6
- package/dist/client/index.d.ts +8 -6
- package/dist/client/index.mjs +3 -3
- package/dist/client/plugins/index.cjs +1 -1
- package/dist/client/plugins/index.d.cts +19 -11
- package/dist/client/plugins/index.d.mts +19 -11
- package/dist/client/plugins/index.d.ts +19 -11
- package/dist/client/plugins/index.mjs +1 -1
- package/dist/client/react/index.cjs +2 -2
- package/dist/client/react/index.d.cts +7 -5
- package/dist/client/react/index.d.mts +7 -5
- package/dist/client/react/index.d.ts +7 -5
- package/dist/client/react/index.mjs +2 -2
- package/dist/client/solid/index.cjs +2 -2
- 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 +2 -2
- package/dist/client/svelte/index.cjs +2 -2
- package/dist/client/svelte/index.d.cts +4 -4
- package/dist/client/svelte/index.d.mts +4 -4
- package/dist/client/svelte/index.d.ts +4 -4
- package/dist/client/svelte/index.mjs +2 -2
- package/dist/client/vue/index.cjs +2 -2
- package/dist/client/vue/index.d.cts +13 -13
- package/dist/client/vue/index.d.mts +13 -13
- package/dist/client/vue/index.d.ts +13 -13
- package/dist/client/vue/index.mjs +2 -2
- package/dist/cookies/index.cjs +1 -1
- package/dist/cookies/index.d.cts +2 -2
- package/dist/cookies/index.d.mts +2 -2
- package/dist/cookies/index.d.ts +2 -2
- package/dist/cookies/index.mjs +1 -1
- package/dist/db/index.d.cts +3 -3
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.d.ts +3 -3
- package/dist/index.cjs +11 -10
- package/dist/index.d.cts +7 -6
- package/dist/index.d.mts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.mjs +10 -10
- package/dist/integrations/next-js.cjs +5 -4
- package/dist/integrations/next-js.d.cts +2 -2
- package/dist/integrations/next-js.d.mts +2 -2
- package/dist/integrations/next-js.d.ts +2 -2
- package/dist/integrations/next-js.mjs +5 -4
- package/dist/integrations/node.d.cts +2 -2
- package/dist/integrations/node.d.mts +2 -2
- package/dist/integrations/node.d.ts +2 -2
- package/dist/integrations/react-start.cjs +5 -4
- package/dist/integrations/react-start.d.cts +2 -2
- package/dist/integrations/react-start.d.mts +2 -2
- package/dist/integrations/react-start.d.ts +2 -2
- package/dist/integrations/react-start.mjs +5 -4
- package/dist/integrations/svelte-kit.cjs +3 -3
- package/dist/integrations/svelte-kit.d.cts +2 -2
- package/dist/integrations/svelte-kit.d.mts +2 -2
- package/dist/integrations/svelte-kit.d.ts +2 -2
- package/dist/integrations/svelte-kit.mjs +3 -3
- package/dist/oauth2/index.cjs +3 -3
- package/dist/oauth2/index.d.cts +4 -4
- package/dist/oauth2/index.d.mts +4 -4
- package/dist/oauth2/index.d.ts +4 -4
- package/dist/oauth2/index.mjs +3 -3
- package/dist/plugins/admin/index.cjs +4 -4
- package/dist/plugins/admin/index.d.cts +4 -4
- package/dist/plugins/admin/index.d.mts +4 -4
- package/dist/plugins/admin/index.d.ts +4 -4
- package/dist/plugins/admin/index.mjs +4 -4
- package/dist/plugins/anonymous/index.cjs +3 -3
- package/dist/plugins/anonymous/index.d.cts +2 -2
- package/dist/plugins/anonymous/index.d.mts +2 -2
- package/dist/plugins/anonymous/index.d.ts +2 -2
- package/dist/plugins/anonymous/index.mjs +3 -3
- package/dist/plugins/bearer/index.cjs +3 -3
- package/dist/plugins/bearer/index.d.cts +2 -2
- package/dist/plugins/bearer/index.d.mts +2 -2
- package/dist/plugins/bearer/index.d.ts +2 -2
- package/dist/plugins/bearer/index.mjs +3 -3
- package/dist/plugins/captcha/index.d.cts +2 -2
- package/dist/plugins/captcha/index.d.mts +2 -2
- package/dist/plugins/captcha/index.d.ts +2 -2
- package/dist/plugins/custom-session/index.cjs +20 -4
- package/dist/plugins/custom-session/index.d.cts +17 -3
- package/dist/plugins/custom-session/index.d.mts +17 -3
- package/dist/plugins/custom-session/index.d.ts +17 -3
- package/dist/plugins/custom-session/index.mjs +20 -4
- package/dist/plugins/device-authorization/index.cjs +9 -108
- package/dist/plugins/device-authorization/index.d.cts +5 -3
- package/dist/plugins/device-authorization/index.d.mts +5 -3
- package/dist/plugins/device-authorization/index.d.ts +5 -3
- package/dist/plugins/device-authorization/index.mjs +5 -104
- package/dist/plugins/email-otp/index.cjs +3 -3
- package/dist/plugins/email-otp/index.d.cts +2 -2
- package/dist/plugins/email-otp/index.d.mts +2 -2
- package/dist/plugins/email-otp/index.d.ts +2 -2
- package/dist/plugins/email-otp/index.mjs +3 -3
- package/dist/plugins/generic-oauth/index.cjs +3 -3
- package/dist/plugins/generic-oauth/index.d.cts +3 -3
- package/dist/plugins/generic-oauth/index.d.mts +3 -3
- package/dist/plugins/generic-oauth/index.d.ts +3 -3
- package/dist/plugins/generic-oauth/index.mjs +3 -3
- package/dist/plugins/haveibeenpwned/index.cjs +3 -3
- package/dist/plugins/haveibeenpwned/index.d.cts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.mts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.ts +2 -2
- package/dist/plugins/haveibeenpwned/index.mjs +3 -3
- package/dist/plugins/index.cjs +9 -9
- package/dist/plugins/index.d.cts +30 -5
- package/dist/plugins/index.d.mts +30 -5
- package/dist/plugins/index.d.ts +30 -5
- package/dist/plugins/index.mjs +11 -11
- package/dist/plugins/jwt/index.cjs +6 -6
- package/dist/plugins/jwt/index.d.cts +2 -2
- package/dist/plugins/jwt/index.d.mts +2 -2
- package/dist/plugins/jwt/index.d.ts +2 -2
- package/dist/plugins/jwt/index.mjs +7 -7
- package/dist/plugins/magic-link/index.cjs +3 -3
- package/dist/plugins/magic-link/index.mjs +3 -3
- package/dist/plugins/multi-session/index.cjs +3 -3
- package/dist/plugins/multi-session/index.d.cts +2 -2
- package/dist/plugins/multi-session/index.d.mts +2 -2
- package/dist/plugins/multi-session/index.d.ts +2 -2
- package/dist/plugins/multi-session/index.mjs +3 -3
- package/dist/plugins/oauth-proxy/index.cjs +3 -3
- package/dist/plugins/oauth-proxy/index.d.cts +2 -2
- package/dist/plugins/oauth-proxy/index.d.mts +2 -2
- package/dist/plugins/oauth-proxy/index.d.ts +2 -2
- package/dist/plugins/oauth-proxy/index.mjs +3 -3
- package/dist/plugins/oidc-provider/index.cjs +5 -5
- package/dist/plugins/oidc-provider/index.d.cts +56 -6
- package/dist/plugins/oidc-provider/index.d.mts +56 -6
- package/dist/plugins/oidc-provider/index.d.ts +56 -6
- package/dist/plugins/oidc-provider/index.mjs +5 -5
- package/dist/plugins/one-tap/index.cjs +3 -3
- package/dist/plugins/one-tap/index.mjs +3 -3
- package/dist/plugins/one-time-token/index.cjs +6 -5
- package/dist/plugins/one-time-token/index.d.cts +2 -2
- package/dist/plugins/one-time-token/index.d.mts +2 -2
- package/dist/plugins/one-time-token/index.d.ts +2 -2
- package/dist/plugins/one-time-token/index.mjs +6 -5
- package/dist/plugins/open-api/index.cjs +3 -3
- package/dist/plugins/open-api/index.d.cts +2 -2
- package/dist/plugins/open-api/index.d.mts +2 -2
- package/dist/plugins/open-api/index.d.ts +2 -2
- package/dist/plugins/open-api/index.mjs +3 -3
- package/dist/plugins/organization/index.cjs +5 -5
- package/dist/plugins/organization/index.d.cts +419 -40
- package/dist/plugins/organization/index.d.mts +419 -40
- package/dist/plugins/organization/index.d.ts +419 -40
- package/dist/plugins/organization/index.mjs +5 -5
- package/dist/plugins/passkey/index.cjs +3 -3
- 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 +3 -3
- package/dist/plugins/phone-number/index.cjs +3 -3
- package/dist/plugins/phone-number/index.d.cts +2 -2
- package/dist/plugins/phone-number/index.d.mts +2 -2
- package/dist/plugins/phone-number/index.d.ts +2 -2
- package/dist/plugins/phone-number/index.mjs +3 -3
- package/dist/plugins/siwe/index.cjs +3 -3
- package/dist/plugins/siwe/index.d.cts +2 -2
- package/dist/plugins/siwe/index.d.mts +2 -2
- package/dist/plugins/siwe/index.d.ts +2 -2
- package/dist/plugins/siwe/index.mjs +3 -3
- package/dist/plugins/sso/index.cjs +3 -3
- package/dist/plugins/sso/index.d.cts +4 -4
- package/dist/plugins/sso/index.d.mts +4 -4
- package/dist/plugins/sso/index.d.ts +4 -4
- package/dist/plugins/sso/index.mjs +3 -3
- package/dist/plugins/two-factor/index.cjs +3 -3
- package/dist/plugins/two-factor/index.d.cts +2 -2
- package/dist/plugins/two-factor/index.d.mts +2 -2
- package/dist/plugins/two-factor/index.d.ts +2 -2
- package/dist/plugins/two-factor/index.mjs +3 -3
- package/dist/plugins/username/index.cjs +3 -3
- package/dist/plugins/username/index.d.cts +2 -2
- package/dist/plugins/username/index.d.mts +2 -2
- package/dist/plugins/username/index.d.ts +2 -2
- package/dist/plugins/username/index.mjs +3 -3
- package/dist/shared/{better-auth.BVPwsVUn.d.cts → better-auth.B4AfIoAe.d.cts} +1 -1
- package/dist/shared/{better-auth.CtToz4qL.cjs → better-auth.BEsywhdZ.cjs} +2 -8
- package/dist/shared/{better-auth.BttC_x9D.mjs → better-auth.BF0OhhL0.mjs} +57 -1
- package/dist/shared/{better-auth.CGGao4aY.mjs → better-auth.BI4JniQN.mjs} +2 -8
- package/dist/shared/{better-auth.DQINKBiT.d.cts → better-auth.BVRe9oUF.d.cts} +479 -6
- package/dist/shared/{better-auth.CV-4ifSd.cjs → better-auth.BYiXvdJQ.cjs} +2 -2
- package/dist/shared/{better-auth.CbBksUvo.cjs → better-auth.BZ1rl9jb.cjs} +3 -3
- package/dist/shared/{better-auth.z3V3mA_O.cjs → better-auth.BhdSraHG.cjs} +3 -3
- package/dist/shared/{better-auth.AeIHgLBF.cjs → better-auth.BvYLXwvp.cjs} +58 -2
- package/dist/shared/{better-auth.BwsH8S4P.d.mts → better-auth.BxhI-ev4.d.mts} +6 -2
- package/dist/shared/{better-auth.DDozCDMS.mjs → better-auth.CBOi2vmh.mjs} +472 -65
- package/dist/shared/{better-auth.Ba_pqY0l.mjs → better-auth.CG9DHk60.mjs} +2 -2
- package/dist/shared/{better-auth.Bco357J8.cjs → better-auth.CLv80Pwz.cjs} +1 -1
- package/dist/shared/{better-auth.B6V3vOfp.d.cts → better-auth.COmDGkw-.d.cts} +6 -2
- package/dist/shared/{better-auth.BsHw2sS5.d.ts → better-auth.CS5xXOXV.d.ts} +6 -2
- package/dist/shared/{better-auth.C7BLzxG2.d.mts → better-auth.CYdzDlsq.d.mts} +1 -1
- package/dist/shared/{better-auth.CmdI9lHT.cjs → better-auth.CZpfmhXT.cjs} +1 -1
- package/dist/shared/{better-auth.D_zuKEZs.d.ts → better-auth.CdcdinCF.d.ts} +59 -59
- package/dist/shared/{better-auth.Ck3n8bMC.cjs → better-auth.CgIMrxKr.cjs} +7 -3
- package/dist/shared/{better-auth.BKqT_ZVS.cjs → better-auth.Cm_V_J8I.cjs} +10 -28
- package/dist/shared/{better-auth.DI5tnNZs.d.ts → better-auth.CnJoIxG_.d.ts} +479 -6
- package/dist/shared/{better-auth.Bp6xdiY8.d.ts → better-auth.CnXw9Yrh.d.mts} +2 -2
- package/dist/shared/{better-auth.DxG__zXA.d.ts → better-auth.CnsUttgT.d.ts} +1 -1
- package/dist/shared/{better-auth.yHdubbkw.cjs → better-auth.CxKBteqV.cjs} +34 -9
- package/dist/shared/{better-auth.CGejYPX3.d.mts → better-auth.CzZpBsE1.d.cts} +2 -2
- package/dist/shared/{better-auth.l2-e84v_.cjs → better-auth.D5q0JUiv.cjs} +93 -164
- package/dist/shared/{better-auth.B1puuIwv.d.mts → better-auth.D75jtXt8.d.mts} +59 -59
- package/dist/shared/{better-auth.BCc3zPBF.mjs → better-auth.DV5EHeYG.mjs} +1 -1
- package/dist/shared/{better-auth.w5Mg3-u0.mjs → better-auth.DX9TcqCt.mjs} +3 -3
- package/dist/shared/{better-auth.DGJgCfAm.mjs → better-auth.DqbGTNEt.mjs} +34 -9
- package/dist/shared/{better-auth.DgX9nQ3e.mjs → better-auth.K0z8EJFS.mjs} +3 -3
- package/dist/shared/{better-auth.CWKgK_p2.d.cts → better-auth.Otfjue7Z.d.cts} +59 -59
- package/dist/shared/{better-auth.DF-MUmVw.mjs → better-auth.UfVWArIB.mjs} +93 -164
- package/dist/shared/{better-auth.BVF2_YJN.mjs → better-auth._2xnM2S3.mjs} +351 -24
- package/dist/shared/{better-auth.L_XZAIeN.cjs → better-auth._gj_Mjo_.cjs} +472 -65
- package/dist/shared/{better-auth.QB8jx8j0.d.mts → better-auth.efEqxJ3k.d.mts} +479 -6
- package/dist/shared/{better-auth.CiuRzSQH.cjs → better-auth.g2ow3cc2.cjs} +354 -23
- package/dist/shared/{better-auth.DVsI0DHa.mjs → better-auth.ifuaFFT6.mjs} +1 -1
- package/dist/shared/{better-auth.Buni1mmI.mjs → better-auth.kTs0zHGZ.mjs} +7 -3
- package/dist/shared/{better-auth.DAX7uGE1.mjs → better-auth.vI-5STVo.mjs} +10 -28
- package/dist/shared/{better-auth.BflsQmOZ.d.cts → better-auth.xipPt5at.d.ts} +2 -2
- package/dist/social-providers/index.cjs +7 -3
- package/dist/social-providers/index.d.cts +1 -1
- package/dist/social-providers/index.d.mts +1 -1
- package/dist/social-providers/index.d.ts +1 -1
- package/dist/social-providers/index.mjs +3 -3
- package/dist/test-utils/index.cjs +9 -8
- package/dist/test-utils/index.d.cts +94 -94
- package/dist/test-utils/index.d.mts +94 -94
- package/dist/test-utils/index.d.ts +94 -94
- package/dist/test-utils/index.mjs +9 -8
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/package.json +2 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const z = require('zod/v4');
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
|
-
const session = require('../../shared/better-auth.
|
|
5
|
+
const session = require('../../shared/better-auth.CLv80Pwz.cjs');
|
|
6
6
|
require('@better-auth/utils/hash');
|
|
7
7
|
require('@noble/ciphers/chacha');
|
|
8
8
|
require('@noble/ciphers/utils');
|
|
@@ -14,6 +14,7 @@ const utils = require('@better-auth/utils');
|
|
|
14
14
|
require('@better-auth/utils/hex');
|
|
15
15
|
require('@noble/hashes/utils');
|
|
16
16
|
const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
17
|
+
const cookies_index = require('../../shared/better-auth.D5q0JUiv.cjs');
|
|
17
18
|
const schema$1 = require('../../shared/better-auth.BIMq4RPW.cjs');
|
|
18
19
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
19
20
|
require('../../shared/better-auth.B3274wGK.cjs');
|
|
@@ -21,12 +22,11 @@ require('@better-auth/utils/random');
|
|
|
21
22
|
require('kysely');
|
|
22
23
|
const client = require('../../shared/better-auth.BMgeJg3r.cjs');
|
|
23
24
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
24
|
-
require('../../shared/better-auth.l2-e84v_.cjs');
|
|
25
|
-
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
26
|
-
require('@better-auth/utils/hmac');
|
|
27
25
|
require('../../shared/better-auth.vPQBmXQL.cjs');
|
|
28
|
-
require('
|
|
26
|
+
require('@better-auth/utils/hmac');
|
|
29
27
|
require('@better-auth/utils/binary');
|
|
28
|
+
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
29
|
+
require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
30
30
|
|
|
31
31
|
function _interopNamespaceCompat(e) {
|
|
32
32
|
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
@@ -42,105 +42,6 @@ function _interopNamespaceCompat(e) {
|
|
|
42
42
|
|
|
43
43
|
const z__namespace = /*#__PURE__*/_interopNamespaceCompat(z);
|
|
44
44
|
|
|
45
|
-
const s = 1e3;
|
|
46
|
-
const m = s * 60;
|
|
47
|
-
const h = m * 60;
|
|
48
|
-
const d = h * 24;
|
|
49
|
-
const w = d * 7;
|
|
50
|
-
const y = d * 365.25;
|
|
51
|
-
function ms(value, options) {
|
|
52
|
-
if (typeof value === "string") {
|
|
53
|
-
return parse(value);
|
|
54
|
-
} else if (typeof value === "number") {
|
|
55
|
-
return format(value);
|
|
56
|
-
}
|
|
57
|
-
throw new Error(
|
|
58
|
-
`Value provided to ms() must be a string or number. value=${JSON.stringify(value)}`
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
function parse(str) {
|
|
62
|
-
if (typeof str !== "string" || str.length === 0 || str.length > 100) {
|
|
63
|
-
throw new Error(
|
|
64
|
-
`Value provided to ms.parse() must be a string with length between 1 and 99. value=${JSON.stringify(str)}`
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
const match = /^(?<value>-?\d*\.?\d+) *(?<unit>milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
68
|
-
str
|
|
69
|
-
);
|
|
70
|
-
if (!match?.groups) {
|
|
71
|
-
return NaN;
|
|
72
|
-
}
|
|
73
|
-
const { value, unit = "ms" } = match.groups;
|
|
74
|
-
const n = parseFloat(value);
|
|
75
|
-
const matchUnit = unit.toLowerCase();
|
|
76
|
-
switch (matchUnit) {
|
|
77
|
-
case "years":
|
|
78
|
-
case "year":
|
|
79
|
-
case "yrs":
|
|
80
|
-
case "yr":
|
|
81
|
-
case "y":
|
|
82
|
-
return n * y;
|
|
83
|
-
case "weeks":
|
|
84
|
-
case "week":
|
|
85
|
-
case "w":
|
|
86
|
-
return n * w;
|
|
87
|
-
case "days":
|
|
88
|
-
case "day":
|
|
89
|
-
case "d":
|
|
90
|
-
return n * d;
|
|
91
|
-
case "hours":
|
|
92
|
-
case "hour":
|
|
93
|
-
case "hrs":
|
|
94
|
-
case "hr":
|
|
95
|
-
case "h":
|
|
96
|
-
return n * h;
|
|
97
|
-
case "minutes":
|
|
98
|
-
case "minute":
|
|
99
|
-
case "mins":
|
|
100
|
-
case "min":
|
|
101
|
-
case "m":
|
|
102
|
-
return n * m;
|
|
103
|
-
case "seconds":
|
|
104
|
-
case "second":
|
|
105
|
-
case "secs":
|
|
106
|
-
case "sec":
|
|
107
|
-
case "s":
|
|
108
|
-
return n * s;
|
|
109
|
-
case "milliseconds":
|
|
110
|
-
case "millisecond":
|
|
111
|
-
case "msecs":
|
|
112
|
-
case "msec":
|
|
113
|
-
case "ms":
|
|
114
|
-
return n;
|
|
115
|
-
default:
|
|
116
|
-
throw new Error(
|
|
117
|
-
`Unknown unit "${matchUnit}" provided to ms.parse(). value=${JSON.stringify(str)}`
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
function fmtShort(ms2) {
|
|
122
|
-
const msAbs = Math.abs(ms2);
|
|
123
|
-
if (msAbs >= d) {
|
|
124
|
-
return `${Math.round(ms2 / d)}d`;
|
|
125
|
-
}
|
|
126
|
-
if (msAbs >= h) {
|
|
127
|
-
return `${Math.round(ms2 / h)}h`;
|
|
128
|
-
}
|
|
129
|
-
if (msAbs >= m) {
|
|
130
|
-
return `${Math.round(ms2 / m)}m`;
|
|
131
|
-
}
|
|
132
|
-
if (msAbs >= s) {
|
|
133
|
-
return `${Math.round(ms2 / s)}s`;
|
|
134
|
-
}
|
|
135
|
-
return `${ms2}ms`;
|
|
136
|
-
}
|
|
137
|
-
function format(ms2, options) {
|
|
138
|
-
if (typeof ms2 !== "number" || !Number.isFinite(ms2)) {
|
|
139
|
-
throw new Error("Value provided to ms.format() must be of type number.");
|
|
140
|
-
}
|
|
141
|
-
return fmtShort(ms2);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
45
|
const schema = {
|
|
145
46
|
deviceCode: {
|
|
146
47
|
fields: {
|
|
@@ -199,7 +100,7 @@ z__namespace.object({
|
|
|
199
100
|
const msStringValueSchema = z.z.custom(
|
|
200
101
|
(val) => {
|
|
201
102
|
try {
|
|
202
|
-
ms(val);
|
|
103
|
+
cookies_index.ms(val);
|
|
203
104
|
} catch (e) {
|
|
204
105
|
return false;
|
|
205
106
|
}
|
|
@@ -393,7 +294,7 @@ Follow [rfc8628#section-3.2](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
393
294
|
}
|
|
394
295
|
const deviceCode = await generateDeviceCode();
|
|
395
296
|
const userCode = await generateUserCode();
|
|
396
|
-
const expiresIn = ms(opts.expiresIn);
|
|
297
|
+
const expiresIn = cookies_index.ms(opts.expiresIn);
|
|
397
298
|
const expiresAt = new Date(Date.now() + expiresIn);
|
|
398
299
|
await ctx.context.adapter.create({
|
|
399
300
|
model: "deviceCode",
|
|
@@ -402,7 +303,7 @@ Follow [rfc8628#section-3.2](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
402
303
|
userCode,
|
|
403
304
|
expiresAt,
|
|
404
305
|
status: "pending",
|
|
405
|
-
pollingInterval: ms(opts.interval),
|
|
306
|
+
pollingInterval: cookies_index.ms(opts.interval),
|
|
406
307
|
clientId: ctx.body.client_id,
|
|
407
308
|
scope: ctx.body.scope
|
|
408
309
|
}
|
|
@@ -422,7 +323,7 @@ Follow [rfc8628#section-3.2](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
422
323
|
verification_uri: verification_uri.toString(),
|
|
423
324
|
verification_uri_complete: verification_uri_complete.toString(),
|
|
424
325
|
expires_in: Math.floor(expiresIn / 1e3),
|
|
425
|
-
interval: Math.floor(ms(opts.interval) / 1e3)
|
|
326
|
+
interval: Math.floor(cookies_index.ms(opts.interval) / 1e3)
|
|
426
327
|
},
|
|
427
328
|
{
|
|
428
329
|
headers: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
3
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.Otfjue7Z.cjs';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.BVRe9oUF.cjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -11,14 +11,16 @@ import 'better-sqlite3';
|
|
|
11
11
|
import 'bun:sqlite';
|
|
12
12
|
import 'node:sqlite';
|
|
13
13
|
|
|
14
|
+
//#region src/index.d.ts
|
|
14
15
|
type Years = "years" | "year" | "yrs" | "yr" | "y";
|
|
16
|
+
type Months = "months" | "month" | "mo";
|
|
15
17
|
type Weeks = "weeks" | "week" | "w";
|
|
16
18
|
type Days = "days" | "day" | "d";
|
|
17
19
|
type Hours = "hours" | "hour" | "hrs" | "hr" | "h";
|
|
18
20
|
type Minutes = "minutes" | "minute" | "mins" | "min" | "m";
|
|
19
21
|
type Seconds = "seconds" | "second" | "secs" | "sec" | "s";
|
|
20
22
|
type Milliseconds = "milliseconds" | "millisecond" | "msecs" | "msec" | "ms";
|
|
21
|
-
type Unit = Years | Weeks | Days | Hours | Minutes | Seconds | Milliseconds;
|
|
23
|
+
type Unit = Years | Months | Weeks | Days | Hours | Minutes | Seconds | Milliseconds;
|
|
22
24
|
type UnitAnyCase = Capitalize<Unit> | Uppercase<Unit> | Unit;
|
|
23
25
|
type StringValue = `${number}` | `${number}${UnitAnyCase}` | `${number} ${UnitAnyCase}`;
|
|
24
26
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
3
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.D75jtXt8.mjs';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.efEqxJ3k.mjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -11,14 +11,16 @@ import 'better-sqlite3';
|
|
|
11
11
|
import 'bun:sqlite';
|
|
12
12
|
import 'node:sqlite';
|
|
13
13
|
|
|
14
|
+
//#region src/index.d.ts
|
|
14
15
|
type Years = "years" | "year" | "yrs" | "yr" | "y";
|
|
16
|
+
type Months = "months" | "month" | "mo";
|
|
15
17
|
type Weeks = "weeks" | "week" | "w";
|
|
16
18
|
type Days = "days" | "day" | "d";
|
|
17
19
|
type Hours = "hours" | "hour" | "hrs" | "hr" | "h";
|
|
18
20
|
type Minutes = "minutes" | "minute" | "mins" | "min" | "m";
|
|
19
21
|
type Seconds = "seconds" | "second" | "secs" | "sec" | "s";
|
|
20
22
|
type Milliseconds = "milliseconds" | "millisecond" | "msecs" | "msec" | "ms";
|
|
21
|
-
type Unit = Years | Weeks | Days | Hours | Minutes | Seconds | Milliseconds;
|
|
23
|
+
type Unit = Years | Months | Weeks | Days | Hours | Minutes | Seconds | Milliseconds;
|
|
22
24
|
type UnitAnyCase = Capitalize<Unit> | Uppercase<Unit> | Unit;
|
|
23
25
|
type StringValue = `${number}` | `${number}${UnitAnyCase}` | `${number} ${UnitAnyCase}`;
|
|
24
26
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
3
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.CdcdinCF.js';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.CnJoIxG_.js';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -11,14 +11,16 @@ import 'better-sqlite3';
|
|
|
11
11
|
import 'bun:sqlite';
|
|
12
12
|
import 'node:sqlite';
|
|
13
13
|
|
|
14
|
+
//#region src/index.d.ts
|
|
14
15
|
type Years = "years" | "year" | "yrs" | "yr" | "y";
|
|
16
|
+
type Months = "months" | "month" | "mo";
|
|
15
17
|
type Weeks = "weeks" | "week" | "w";
|
|
16
18
|
type Days = "days" | "day" | "d";
|
|
17
19
|
type Hours = "hours" | "hour" | "hrs" | "hr" | "h";
|
|
18
20
|
type Minutes = "minutes" | "minute" | "mins" | "min" | "m";
|
|
19
21
|
type Seconds = "seconds" | "second" | "secs" | "sec" | "s";
|
|
20
22
|
type Milliseconds = "milliseconds" | "millisecond" | "msecs" | "msec" | "ms";
|
|
21
|
-
type Unit = Years | Weeks | Days | Hours | Minutes | Seconds | Milliseconds;
|
|
23
|
+
type Unit = Years | Months | Weeks | Days | Hours | Minutes | Seconds | Milliseconds;
|
|
22
24
|
type UnitAnyCase = Capitalize<Unit> | Uppercase<Unit> | Unit;
|
|
23
25
|
type StringValue = `${number}` | `${number}${UnitAnyCase}` | `${number} ${UnitAnyCase}`;
|
|
24
26
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
import { z as z$1 } from 'zod/v4';
|
|
3
3
|
import { APIError } from 'better-call';
|
|
4
|
-
import { a as createAuthEndpoint, g as getSessionFromCtx } from '../../shared/better-auth.
|
|
4
|
+
import { a as createAuthEndpoint, g as getSessionFromCtx } from '../../shared/better-auth.DV5EHeYG.mjs';
|
|
5
5
|
import '@better-auth/utils/hash';
|
|
6
6
|
import '@noble/ciphers/chacha';
|
|
7
7
|
import '@noble/ciphers/utils';
|
|
@@ -13,6 +13,7 @@ import { getRandomValues } from '@better-auth/utils';
|
|
|
13
13
|
import '@better-auth/utils/hex';
|
|
14
14
|
import '@noble/hashes/utils';
|
|
15
15
|
import { g as generateRandomString } from '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
16
|
+
import { m as ms } from '../../shared/better-auth.UfVWArIB.mjs';
|
|
16
17
|
import { m as mergeSchema } from '../../shared/better-auth.n2KFGwjY.mjs';
|
|
17
18
|
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
18
19
|
import '../../shared/better-auth.BjBlybv-.mjs';
|
|
@@ -20,111 +21,11 @@ import '@better-auth/utils/random';
|
|
|
20
21
|
import 'kysely';
|
|
21
22
|
export { d as deviceAuthorizationClient } from '../../shared/better-auth.BpA03GIs.mjs';
|
|
22
23
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
23
|
-
import '../../shared/better-auth.DF-MUmVw.mjs';
|
|
24
|
-
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
25
|
-
import '@better-auth/utils/hmac';
|
|
26
24
|
import '../../shared/better-auth.BZZKN1g7.mjs';
|
|
27
|
-
import '
|
|
25
|
+
import '@better-auth/utils/hmac';
|
|
28
26
|
import '@better-auth/utils/binary';
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const m = s * 60;
|
|
32
|
-
const h = m * 60;
|
|
33
|
-
const d = h * 24;
|
|
34
|
-
const w = d * 7;
|
|
35
|
-
const y = d * 365.25;
|
|
36
|
-
function ms(value, options) {
|
|
37
|
-
if (typeof value === "string") {
|
|
38
|
-
return parse(value);
|
|
39
|
-
} else if (typeof value === "number") {
|
|
40
|
-
return format(value);
|
|
41
|
-
}
|
|
42
|
-
throw new Error(
|
|
43
|
-
`Value provided to ms() must be a string or number. value=${JSON.stringify(value)}`
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
function parse(str) {
|
|
47
|
-
if (typeof str !== "string" || str.length === 0 || str.length > 100) {
|
|
48
|
-
throw new Error(
|
|
49
|
-
`Value provided to ms.parse() must be a string with length between 1 and 99. value=${JSON.stringify(str)}`
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
const match = /^(?<value>-?\d*\.?\d+) *(?<unit>milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
53
|
-
str
|
|
54
|
-
);
|
|
55
|
-
if (!match?.groups) {
|
|
56
|
-
return NaN;
|
|
57
|
-
}
|
|
58
|
-
const { value, unit = "ms" } = match.groups;
|
|
59
|
-
const n = parseFloat(value);
|
|
60
|
-
const matchUnit = unit.toLowerCase();
|
|
61
|
-
switch (matchUnit) {
|
|
62
|
-
case "years":
|
|
63
|
-
case "year":
|
|
64
|
-
case "yrs":
|
|
65
|
-
case "yr":
|
|
66
|
-
case "y":
|
|
67
|
-
return n * y;
|
|
68
|
-
case "weeks":
|
|
69
|
-
case "week":
|
|
70
|
-
case "w":
|
|
71
|
-
return n * w;
|
|
72
|
-
case "days":
|
|
73
|
-
case "day":
|
|
74
|
-
case "d":
|
|
75
|
-
return n * d;
|
|
76
|
-
case "hours":
|
|
77
|
-
case "hour":
|
|
78
|
-
case "hrs":
|
|
79
|
-
case "hr":
|
|
80
|
-
case "h":
|
|
81
|
-
return n * h;
|
|
82
|
-
case "minutes":
|
|
83
|
-
case "minute":
|
|
84
|
-
case "mins":
|
|
85
|
-
case "min":
|
|
86
|
-
case "m":
|
|
87
|
-
return n * m;
|
|
88
|
-
case "seconds":
|
|
89
|
-
case "second":
|
|
90
|
-
case "secs":
|
|
91
|
-
case "sec":
|
|
92
|
-
case "s":
|
|
93
|
-
return n * s;
|
|
94
|
-
case "milliseconds":
|
|
95
|
-
case "millisecond":
|
|
96
|
-
case "msecs":
|
|
97
|
-
case "msec":
|
|
98
|
-
case "ms":
|
|
99
|
-
return n;
|
|
100
|
-
default:
|
|
101
|
-
throw new Error(
|
|
102
|
-
`Unknown unit "${matchUnit}" provided to ms.parse(). value=${JSON.stringify(str)}`
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
function fmtShort(ms2) {
|
|
107
|
-
const msAbs = Math.abs(ms2);
|
|
108
|
-
if (msAbs >= d) {
|
|
109
|
-
return `${Math.round(ms2 / d)}d`;
|
|
110
|
-
}
|
|
111
|
-
if (msAbs >= h) {
|
|
112
|
-
return `${Math.round(ms2 / h)}h`;
|
|
113
|
-
}
|
|
114
|
-
if (msAbs >= m) {
|
|
115
|
-
return `${Math.round(ms2 / m)}m`;
|
|
116
|
-
}
|
|
117
|
-
if (msAbs >= s) {
|
|
118
|
-
return `${Math.round(ms2 / s)}s`;
|
|
119
|
-
}
|
|
120
|
-
return `${ms2}ms`;
|
|
121
|
-
}
|
|
122
|
-
function format(ms2, options) {
|
|
123
|
-
if (typeof ms2 !== "number" || !Number.isFinite(ms2)) {
|
|
124
|
-
throw new Error("Value provided to ms.format() must be of type number.");
|
|
125
|
-
}
|
|
126
|
-
return fmtShort(ms2);
|
|
127
|
-
}
|
|
27
|
+
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
28
|
+
import '../../shared/better-auth.CuS_eDdK.mjs';
|
|
128
29
|
|
|
129
30
|
const schema = {
|
|
130
31
|
deviceCode: {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
const z = require('zod/v4');
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
|
-
require('../../shared/better-auth.
|
|
6
|
-
const session = require('../../shared/better-auth.
|
|
7
|
-
const cookies_index = require('../../shared/better-auth.
|
|
5
|
+
require('../../shared/better-auth.g2ow3cc2.cjs');
|
|
6
|
+
const session = require('../../shared/better-auth.CLv80Pwz.cjs');
|
|
7
|
+
const cookies_index = require('../../shared/better-auth.D5q0JUiv.cjs');
|
|
8
8
|
require('../../shared/better-auth.BIMq4RPW.cjs');
|
|
9
9
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
10
10
|
require('../../shared/better-auth.B3274wGK.cjs');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { p as AuthContext, U as User, H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { p as AuthContext, U as User, H as HookEndpointContext } from '../../shared/better-auth.Otfjue7Z.cjs';
|
|
3
3
|
import * as z from 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.BVRe9oUF.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 { p as AuthContext, U as User, H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { p as AuthContext, U as User, H as HookEndpointContext } from '../../shared/better-auth.D75jtXt8.mjs';
|
|
3
3
|
import * as z from 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.efEqxJ3k.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 { p as AuthContext, U as User, H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { p as AuthContext, U as User, H as HookEndpointContext } from '../../shared/better-auth.CdcdinCF.js';
|
|
3
3
|
import * as z from 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.CnJoIxG_.js';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
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._2xnM2S3.mjs';
|
|
4
|
+
import { a as createAuthEndpoint, c as createAuthMiddleware } from '../../shared/better-auth.DV5EHeYG.mjs';
|
|
5
|
+
import { s as setSessionCookie } from '../../shared/better-auth.UfVWArIB.mjs';
|
|
6
6
|
import '../../shared/better-auth.n2KFGwjY.mjs';
|
|
7
7
|
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
8
8
|
import '../../shared/better-auth.BjBlybv-.mjs';
|
|
@@ -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/v4');
|
|
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.g2ow3cc2.cjs');
|
|
8
|
+
const session = require('../../shared/better-auth.CLv80Pwz.cjs');
|
|
9
|
+
const cookies_index = require('../../shared/better-auth.D5q0JUiv.cjs');
|
|
10
10
|
require('../../shared/better-auth.BIMq4RPW.cjs');
|
|
11
11
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
12
12
|
require('../../shared/better-auth.B3274wGK.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { O as OAuth2Tokens, a as OAuth2UserInfo, b as OAuthProvider, P as ProviderOptions } from '../../shared/better-auth.
|
|
3
|
-
import { U as User, p as AuthContext } from '../../shared/better-auth.
|
|
2
|
+
import { O as OAuth2Tokens, a as OAuth2UserInfo, b as OAuthProvider, P as ProviderOptions } from '../../shared/better-auth.BVRe9oUF.cjs';
|
|
3
|
+
import { U as User, p as AuthContext } from '../../shared/better-auth.Otfjue7Z.cjs';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
6
|
import 'jose';
|
|
@@ -143,7 +143,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
143
143
|
id: "generic-oauth";
|
|
144
144
|
init: (ctx: AuthContext) => {
|
|
145
145
|
context: {
|
|
146
|
-
socialProviders: OAuthProvider<Record<string, any>, ProviderOptions<any
|
|
146
|
+
socialProviders: OAuthProvider<Record<string, any>, Partial<ProviderOptions<any>>>[];
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
149
|
endpoints: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { O as OAuth2Tokens, a as OAuth2UserInfo, b as OAuthProvider, P as ProviderOptions } from '../../shared/better-auth.
|
|
3
|
-
import { U as User, p as AuthContext } from '../../shared/better-auth.
|
|
2
|
+
import { O as OAuth2Tokens, a as OAuth2UserInfo, b as OAuthProvider, P as ProviderOptions } from '../../shared/better-auth.efEqxJ3k.mjs';
|
|
3
|
+
import { U as User, p as AuthContext } from '../../shared/better-auth.D75jtXt8.mjs';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
6
|
import 'jose';
|
|
@@ -143,7 +143,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
143
143
|
id: "generic-oauth";
|
|
144
144
|
init: (ctx: AuthContext) => {
|
|
145
145
|
context: {
|
|
146
|
-
socialProviders: OAuthProvider<Record<string, any>, ProviderOptions<any
|
|
146
|
+
socialProviders: OAuthProvider<Record<string, any>, Partial<ProviderOptions<any>>>[];
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
149
|
endpoints: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { O as OAuth2Tokens, a as OAuth2UserInfo, b as OAuthProvider, P as ProviderOptions } from '../../shared/better-auth.
|
|
3
|
-
import { U as User, p as AuthContext } from '../../shared/better-auth.
|
|
2
|
+
import { O as OAuth2Tokens, a as OAuth2UserInfo, b as OAuthProvider, P as ProviderOptions } from '../../shared/better-auth.CnJoIxG_.js';
|
|
3
|
+
import { U as User, p as AuthContext } from '../../shared/better-auth.CdcdinCF.js';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
6
|
import 'jose';
|
|
@@ -143,7 +143,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
143
143
|
id: "generic-oauth";
|
|
144
144
|
init: (ctx: AuthContext) => {
|
|
145
145
|
context: {
|
|
146
|
-
socialProviders: OAuthProvider<Record<string, any>, ProviderOptions<any
|
|
146
|
+
socialProviders: OAuthProvider<Record<string, any>, Partial<ProviderOptions<any>>>[];
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
149
|
endpoints: {
|
|
@@ -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/v4';
|
|
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._2xnM2S3.mjs';
|
|
6
|
+
import { a as createAuthEndpoint, s as sessionMiddleware, B as BASE_ERROR_CODES } from '../../shared/better-auth.DV5EHeYG.mjs';
|
|
7
|
+
import { s as setSessionCookie } from '../../shared/better-auth.UfVWArIB.mjs';
|
|
8
8
|
import '../../shared/better-auth.n2KFGwjY.mjs';
|
|
9
9
|
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
10
10
|
import '../../shared/better-auth.BjBlybv-.mjs';
|
|
@@ -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.g2ow3cc2.cjs');
|
|
5
|
+
require('../../shared/better-auth.CLv80Pwz.cjs');
|
|
6
6
|
require('zod/v4');
|
|
7
7
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
8
8
|
require('@better-auth/utils/base64');
|
|
@@ -26,7 +26,7 @@ require('../../shared/better-auth.ANpbi45u.cjs');
|
|
|
26
26
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
27
27
|
require('@better-auth/utils/random');
|
|
28
28
|
require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
29
|
-
require('../../shared/better-auth.
|
|
29
|
+
require('../../shared/better-auth.D5q0JUiv.cjs');
|
|
30
30
|
require('../../shared/better-auth.vPQBmXQL.cjs');
|
|
31
31
|
require('jose/errors');
|
|
32
32
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as AuthContext, s as checkPassword } from '../../shared/better-auth.
|
|
1
|
+
import { p as AuthContext, s as checkPassword } from '../../shared/better-auth.Otfjue7Z.cjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.BVRe9oUF.cjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as AuthContext, s as checkPassword } from '../../shared/better-auth.
|
|
1
|
+
import { p as AuthContext, s as checkPassword } from '../../shared/better-auth.D75jtXt8.mjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.efEqxJ3k.mjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as AuthContext, s as checkPassword } from '../../shared/better-auth.
|
|
1
|
+
import { p as AuthContext, s as checkPassword } from '../../shared/better-auth.CdcdinCF.js';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.CnJoIxG_.js';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'zod';
|
|
@@ -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._2xnM2S3.mjs';
|
|
3
|
+
import '../../shared/better-auth.DV5EHeYG.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
6
6
|
import '@better-auth/utils/base64';
|
|
@@ -24,7 +24,7 @@ import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
|
24
24
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
25
25
|
import '@better-auth/utils/random';
|
|
26
26
|
import '../../shared/better-auth.CuS_eDdK.mjs';
|
|
27
|
-
import '../../shared/better-auth.
|
|
27
|
+
import '../../shared/better-auth.UfVWArIB.mjs';
|
|
28
28
|
import '../../shared/better-auth.BZZKN1g7.mjs';
|
|
29
29
|
import 'jose/errors';
|
|
30
30
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|