better-auth 1.3.9-beta.2 → 1.3.9-beta.4
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 +5 -6
- package/dist/adapters/drizzle-adapter/index.d.cts +2 -3
- package/dist/adapters/drizzle-adapter/index.d.mts +2 -3
- package/dist/adapters/drizzle-adapter/index.d.ts +2 -3
- package/dist/adapters/drizzle-adapter/index.mjs +5 -6
- package/dist/adapters/index.cjs +5 -6
- package/dist/adapters/index.d.cts +3 -4
- package/dist/adapters/index.d.mts +3 -4
- package/dist/adapters/index.d.ts +3 -4
- package/dist/adapters/index.mjs +5 -6
- package/dist/adapters/kysely-adapter/index.cjs +6 -7
- package/dist/adapters/kysely-adapter/index.d.cts +2 -3
- package/dist/adapters/kysely-adapter/index.d.mts +2 -3
- package/dist/adapters/kysely-adapter/index.d.ts +2 -3
- package/dist/adapters/kysely-adapter/index.mjs +6 -7
- package/dist/adapters/memory-adapter/index.cjs +6 -7
- package/dist/adapters/memory-adapter/index.d.cts +2 -3
- package/dist/adapters/memory-adapter/index.d.mts +2 -3
- package/dist/adapters/memory-adapter/index.d.ts +2 -3
- package/dist/adapters/memory-adapter/index.mjs +6 -7
- package/dist/adapters/mongodb-adapter/index.cjs +6 -7
- package/dist/adapters/mongodb-adapter/index.d.cts +2 -3
- package/dist/adapters/mongodb-adapter/index.d.mts +2 -3
- package/dist/adapters/mongodb-adapter/index.d.ts +2 -3
- package/dist/adapters/mongodb-adapter/index.mjs +6 -7
- package/dist/adapters/prisma-adapter/index.cjs +5 -6
- package/dist/adapters/prisma-adapter/index.d.cts +2 -3
- package/dist/adapters/prisma-adapter/index.d.mts +2 -3
- package/dist/adapters/prisma-adapter/index.d.ts +2 -3
- package/dist/adapters/prisma-adapter/index.mjs +5 -6
- package/dist/adapters/test.cjs +4 -5
- package/dist/adapters/test.d.cts +2 -3
- package/dist/adapters/test.d.mts +2 -3
- package/dist/adapters/test.d.ts +2 -3
- package/dist/adapters/test.mjs +4 -5
- package/dist/api/index.cjs +23 -6
- package/dist/api/index.d.cts +2 -3
- package/dist/api/index.d.mts +2 -3
- package/dist/api/index.d.ts +2 -3
- package/dist/api/index.mjs +24 -7
- package/dist/client/index.d.cts +4 -5
- package/dist/client/index.d.mts +4 -5
- package/dist/client/index.d.ts +4 -5
- package/dist/client/plugins/index.cjs +6 -7
- package/dist/client/plugins/index.d.cts +5 -5
- package/dist/client/plugins/index.d.mts +5 -5
- package/dist/client/plugins/index.d.ts +5 -5
- package/dist/client/plugins/index.mjs +6 -7
- package/dist/client/react/index.d.cts +4 -5
- package/dist/client/react/index.d.mts +4 -5
- package/dist/client/react/index.d.ts +4 -5
- package/dist/client/solid/index.d.cts +3 -4
- package/dist/client/solid/index.d.mts +3 -4
- package/dist/client/solid/index.d.ts +3 -4
- package/dist/client/svelte/index.d.cts +3 -4
- package/dist/client/svelte/index.d.mts +3 -4
- package/dist/client/svelte/index.d.ts +3 -4
- package/dist/client/vue/index.d.cts +3 -4
- package/dist/client/vue/index.d.mts +3 -4
- package/dist/client/vue/index.d.ts +3 -4
- package/dist/cookies/index.d.cts +2 -3
- package/dist/cookies/index.d.mts +2 -3
- package/dist/cookies/index.d.ts +2 -3
- package/dist/crypto/index.cjs +12 -13
- package/dist/crypto/index.mjs +4 -5
- package/dist/db/index.cjs +8 -9
- package/dist/db/index.d.cts +3 -4
- package/dist/db/index.d.mts +3 -4
- package/dist/db/index.d.ts +3 -4
- package/dist/db/index.mjs +8 -9
- package/dist/index.cjs +10 -11
- package/dist/index.d.cts +10 -11
- package/dist/index.d.mts +10 -11
- package/dist/index.d.ts +10 -11
- package/dist/index.mjs +10 -11
- package/dist/integrations/next-js.cjs +7 -8
- package/dist/integrations/next-js.d.cts +2 -3
- package/dist/integrations/next-js.d.mts +2 -3
- package/dist/integrations/next-js.d.ts +2 -3
- package/dist/integrations/next-js.mjs +7 -8
- package/dist/integrations/node.d.cts +2 -3
- package/dist/integrations/node.d.mts +2 -3
- package/dist/integrations/node.d.ts +2 -3
- package/dist/integrations/react-start.cjs +7 -8
- package/dist/integrations/react-start.d.cts +2 -3
- package/dist/integrations/react-start.d.mts +2 -3
- package/dist/integrations/react-start.d.ts +2 -3
- package/dist/integrations/react-start.mjs +7 -8
- package/dist/integrations/svelte-kit.cjs +5 -6
- package/dist/integrations/svelte-kit.d.cts +2 -3
- package/dist/integrations/svelte-kit.d.mts +2 -3
- package/dist/integrations/svelte-kit.d.ts +2 -3
- package/dist/integrations/svelte-kit.mjs +5 -6
- package/dist/oauth2/index.cjs +5 -6
- 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 +5 -6
- package/dist/plugins/admin/index.cjs +6 -7
- package/dist/plugins/admin/index.d.cts +4 -5
- package/dist/plugins/admin/index.d.mts +4 -5
- package/dist/plugins/admin/index.d.ts +4 -5
- package/dist/plugins/admin/index.mjs +6 -7
- package/dist/plugins/anonymous/index.cjs +5 -6
- package/dist/plugins/anonymous/index.d.cts +2 -3
- package/dist/plugins/anonymous/index.d.mts +2 -3
- package/dist/plugins/anonymous/index.d.ts +2 -3
- package/dist/plugins/anonymous/index.mjs +5 -6
- package/dist/plugins/bearer/index.cjs +5 -6
- package/dist/plugins/bearer/index.d.cts +2 -3
- package/dist/plugins/bearer/index.d.mts +2 -3
- package/dist/plugins/bearer/index.d.ts +2 -3
- package/dist/plugins/bearer/index.mjs +5 -6
- package/dist/plugins/captcha/index.d.cts +2 -3
- package/dist/plugins/captcha/index.d.mts +2 -3
- package/dist/plugins/captcha/index.d.ts +2 -3
- package/dist/plugins/custom-session/index.cjs +5 -6
- package/dist/plugins/custom-session/index.d.cts +2 -3
- package/dist/plugins/custom-session/index.d.mts +2 -3
- package/dist/plugins/custom-session/index.d.ts +2 -3
- package/dist/plugins/custom-session/index.mjs +5 -6
- package/dist/plugins/device-authorization/index.cjs +4 -5
- package/dist/plugins/device-authorization/index.d.cts +2 -3
- package/dist/plugins/device-authorization/index.d.mts +2 -3
- package/dist/plugins/device-authorization/index.d.ts +2 -3
- package/dist/plugins/device-authorization/index.mjs +4 -5
- package/dist/plugins/email-otp/index.cjs +5 -6
- package/dist/plugins/email-otp/index.d.cts +2 -3
- package/dist/plugins/email-otp/index.d.mts +2 -3
- package/dist/plugins/email-otp/index.d.ts +2 -3
- package/dist/plugins/email-otp/index.mjs +5 -6
- package/dist/plugins/generic-oauth/index.cjs +5 -6
- package/dist/plugins/generic-oauth/index.d.cts +2 -3
- package/dist/plugins/generic-oauth/index.d.mts +2 -3
- package/dist/plugins/generic-oauth/index.d.ts +2 -3
- package/dist/plugins/generic-oauth/index.mjs +5 -6
- package/dist/plugins/haveibeenpwned/index.cjs +5 -6
- package/dist/plugins/haveibeenpwned/index.d.cts +2 -3
- package/dist/plugins/haveibeenpwned/index.d.mts +2 -3
- package/dist/plugins/haveibeenpwned/index.d.ts +2 -3
- package/dist/plugins/haveibeenpwned/index.mjs +5 -6
- package/dist/plugins/index.cjs +17 -16
- package/dist/plugins/index.d.cts +7 -7
- package/dist/plugins/index.d.mts +7 -7
- package/dist/plugins/index.d.ts +7 -7
- package/dist/plugins/index.mjs +18 -17
- package/dist/plugins/jwt/index.cjs +6 -7
- 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 -8
- package/dist/plugins/magic-link/index.cjs +5 -6
- package/dist/plugins/magic-link/index.mjs +5 -6
- package/dist/plugins/multi-session/index.cjs +5 -6
- package/dist/plugins/multi-session/index.d.cts +2 -3
- package/dist/plugins/multi-session/index.d.mts +2 -3
- package/dist/plugins/multi-session/index.d.ts +2 -3
- package/dist/plugins/multi-session/index.mjs +5 -6
- package/dist/plugins/oauth-proxy/index.cjs +5 -6
- package/dist/plugins/oauth-proxy/index.d.cts +2 -3
- package/dist/plugins/oauth-proxy/index.d.mts +2 -3
- package/dist/plugins/oauth-proxy/index.d.ts +2 -3
- package/dist/plugins/oauth-proxy/index.mjs +5 -6
- package/dist/plugins/oidc-provider/index.cjs +7 -8
- package/dist/plugins/oidc-provider/index.d.cts +2 -3
- package/dist/plugins/oidc-provider/index.d.mts +2 -3
- package/dist/plugins/oidc-provider/index.d.ts +2 -3
- package/dist/plugins/oidc-provider/index.mjs +7 -8
- package/dist/plugins/one-tap/index.cjs +5 -6
- package/dist/plugins/one-tap/index.mjs +5 -6
- package/dist/plugins/one-time-token/index.cjs +8 -9
- package/dist/plugins/one-time-token/index.d.cts +2 -3
- package/dist/plugins/one-time-token/index.d.mts +2 -3
- package/dist/plugins/one-time-token/index.d.ts +2 -3
- package/dist/plugins/one-time-token/index.mjs +8 -9
- package/dist/plugins/open-api/index.cjs +44 -13
- package/dist/plugins/open-api/index.d.cts +2 -3
- package/dist/plugins/open-api/index.d.mts +2 -3
- package/dist/plugins/open-api/index.d.ts +2 -3
- package/dist/plugins/open-api/index.mjs +44 -13
- package/dist/plugins/organization/index.cjs +8 -9
- package/dist/plugins/organization/index.d.cts +2 -3
- package/dist/plugins/organization/index.d.mts +2 -3
- package/dist/plugins/organization/index.d.ts +2 -3
- package/dist/plugins/organization/index.mjs +8 -9
- package/dist/plugins/passkey/index.cjs +5 -6
- package/dist/plugins/passkey/index.d.cts +2 -3
- package/dist/plugins/passkey/index.d.mts +2 -3
- package/dist/plugins/passkey/index.d.ts +2 -3
- package/dist/plugins/passkey/index.mjs +5 -6
- package/dist/plugins/phone-number/index.cjs +5 -6
- package/dist/plugins/phone-number/index.d.cts +2 -3
- package/dist/plugins/phone-number/index.d.mts +2 -3
- package/dist/plugins/phone-number/index.d.ts +2 -3
- package/dist/plugins/phone-number/index.mjs +5 -6
- package/dist/plugins/siwe/index.cjs +7 -8
- package/dist/plugins/siwe/index.d.cts +2 -3
- package/dist/plugins/siwe/index.d.mts +2 -3
- package/dist/plugins/siwe/index.d.ts +2 -3
- package/dist/plugins/siwe/index.mjs +7 -8
- package/dist/plugins/sso/index.cjs +5 -6
- package/dist/plugins/sso/index.d.cts +2 -3
- package/dist/plugins/sso/index.d.mts +2 -3
- package/dist/plugins/sso/index.d.ts +2 -3
- package/dist/plugins/sso/index.mjs +5 -6
- package/dist/plugins/two-factor/index.cjs +5 -6
- package/dist/plugins/two-factor/index.d.cts +2 -3
- package/dist/plugins/two-factor/index.d.mts +2 -3
- package/dist/plugins/two-factor/index.d.ts +2 -3
- package/dist/plugins/two-factor/index.mjs +5 -6
- package/dist/plugins/username/index.cjs +20 -6
- package/dist/plugins/username/index.d.cts +19 -5
- package/dist/plugins/username/index.d.mts +19 -5
- package/dist/plugins/username/index.d.ts +19 -5
- package/dist/plugins/username/index.mjs +20 -6
- package/dist/shared/{better-auth.Ck4qhtF6.mjs → better-auth.5WTE-uUO.mjs} +5 -6
- package/dist/shared/{better-auth.DGuotwA1.d.cts → better-auth.6crrbXrP.d.cts} +308 -8
- package/dist/shared/{better-auth.gF8vGD5L.mjs → better-auth.7ZeACU2v.mjs} +5 -6
- package/dist/shared/{better-auth.CnIVrMwK.d.ts → better-auth.B-CitgLp.d.ts} +1 -1
- package/dist/shared/{better-auth.CXBi-DJc.cjs → better-auth.B-GguVp5.cjs} +7 -8
- package/dist/shared/{better-auth.CEc4wau_.d.cts → better-auth.B-V8R4q7.d.cts} +1 -1
- package/dist/shared/{better-auth.mA4L_-fq.d.ts → better-auth.B5FL4Q2B.d.ts} +2 -3
- package/dist/shared/{better-auth.EF9Iq11i.d.ts → better-auth.BAnyvLX6.d.ts} +1 -1
- package/dist/shared/{better-auth.C_gHVcnc.cjs → better-auth.BEYvND1Y.cjs} +1 -1
- package/dist/shared/{better-auth.TZOo7890.cjs → better-auth.BVUwL7ru.cjs} +1 -1
- package/dist/shared/{better-auth.BjjUH-Ka.mjs → better-auth.BWl2NB1B.mjs} +1 -1
- package/dist/shared/{better-auth.BlqpEUaH.mjs → better-auth.BZTBs9Yy.mjs} +7 -8
- package/dist/shared/{better-auth.CTMmErGI.d.cts → better-auth.BaMSx6K3.d.cts} +2 -3
- package/dist/shared/{better-auth.DXKgbji-.mjs → better-auth.BduPtJy8.mjs} +1 -1
- package/dist/shared/{better-auth.Dc0nj0we.cjs → better-auth.BlsHS68J.cjs} +22 -5
- package/dist/shared/{better-auth.Dyb4JEgv.cjs → better-auth.C5ZbY8Lo.cjs} +6 -7
- package/dist/shared/{better-auth.XP_NDvic.mjs → better-auth.C7KUdiwV.mjs} +1 -1
- package/dist/shared/{better-auth.BvYLXwvp.cjs → better-auth.CMwM5enp.cjs} +1 -0
- package/dist/shared/{better-auth.DtZRMuXL.cjs → better-auth.CRFFLEbh.cjs} +6 -7
- package/dist/shared/{better-auth.B3CPLvGC.mjs → better-auth.CSEecXfV.mjs} +22 -5
- package/dist/shared/{better-auth.DTV9hYzN.cjs → better-auth.CdLjcJ6z.cjs} +7 -8
- package/dist/shared/{better-auth.B8UjXTUa.mjs → better-auth.CtB1M_c7.mjs} +1 -1
- package/dist/shared/{better-auth.DFJOJkY1.cjs → better-auth.CtgUZb45.cjs} +7 -8
- package/dist/shared/{better-auth.3K3VNUn3.mjs → better-auth.D9PzlwY_.mjs} +6 -7
- package/dist/shared/{better-auth.CY7-Inqt.mjs → better-auth.DDuRjwGK.mjs} +1 -0
- package/dist/shared/{better-auth.B1yOWNP8.cjs → better-auth.DEKJQy4E.cjs} +1 -1
- package/dist/shared/{better-auth.DAUyNtx1.mjs → better-auth.DLsqH9Hw.mjs} +7 -8
- package/dist/shared/{better-auth.BuBqXPUp.mjs → better-auth.DOXaXTC6.mjs} +4 -5
- package/dist/shared/{better-auth.BWzwHY8m.cjs → better-auth.DPsIzckY.cjs} +5 -6
- package/dist/shared/{better-auth.DDDKwecE.mjs → better-auth.DQ6bmgix.mjs} +7 -8
- package/dist/shared/{better-auth.ChqAn6N0.d.mts → better-auth.DQLetyog.d.cts} +1 -1
- package/dist/shared/{better-auth.ZUo2dMO3.d.mts → better-auth.DR57bygo.d.mts} +2 -3
- package/dist/shared/{better-auth.fBcUR9cm.mjs → better-auth.DV0Lly8-.mjs} +6 -7
- package/dist/shared/{better-auth.WOu5GuAp.d.ts → better-auth.DtrrQDoO.d.ts} +5 -5
- package/dist/shared/{better-auth.aZPAhP-f.cjs → better-auth.QqWdVDmR.cjs} +5 -6
- package/dist/shared/{better-auth.DU2vRHKI.d.ts → better-auth.S3lnSz8Y.d.ts} +308 -8
- package/dist/shared/{better-auth.C9jfJUDF.cjs → better-auth.Szg-8evr.cjs} +4 -5
- package/dist/shared/{better-auth.llWU4_4y.d.cts → better-auth.UcasWcPe.d.cts} +5 -5
- package/dist/shared/{better-auth.YWGwdADP.cjs → better-auth.WyvofoOW.cjs} +1 -1
- package/dist/shared/{better-auth.f-bUldRg.d.mts → better-auth.YK5LQtFt.d.mts} +308 -8
- package/dist/shared/{better-auth.Df1_Wu_1.d.mts → better-auth.eYki6XKk.d.mts} +5 -5
- package/dist/shared/{better-auth.BZiffGTH.d.mts → better-auth.g9DlWOx7.d.mts} +1 -1
- package/dist/shared/{better-auth.D9BrVtBy.d.cts → better-auth.km36dqos.d.mts} +1 -1
- package/dist/social-providers/index.cjs +5 -6
- package/dist/social-providers/index.d.cts +1 -2
- package/dist/social-providers/index.d.mts +1 -2
- package/dist/social-providers/index.d.ts +1 -2
- package/dist/social-providers/index.mjs +5 -6
- package/dist/test-utils/index.cjs +13 -14
- package/dist/test-utils/index.d.cts +258 -4
- package/dist/test-utils/index.d.mts +258 -4
- package/dist/test-utils/index.d.ts +258 -4
- package/dist/test-utils/index.mjs +13 -14
- package/dist/types/index.d.cts +3 -4
- package/dist/types/index.d.mts +3 -4
- package/dist/types/index.d.ts +3 -4
- package/package.json +10 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
require('../../shared/better-auth.
|
|
4
|
+
require('../../shared/better-auth.BlsHS68J.cjs');
|
|
5
5
|
const session = require('../../shared/better-auth.CLv80Pwz.cjs');
|
|
6
6
|
require('zod/v4');
|
|
7
7
|
const cookies_index = require('../../shared/better-auth.D5q0JUiv.cjs');
|
|
@@ -10,19 +10,18 @@ require('../../shared/better-auth.B6fIklBU.cjs');
|
|
|
10
10
|
require('../../shared/better-auth.B3274wGK.cjs');
|
|
11
11
|
const z = require('zod');
|
|
12
12
|
const url = require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
13
|
-
const
|
|
13
|
+
const sha3_js = require('@noble/hashes/sha3.js');
|
|
14
|
+
const utils_js = require('@noble/hashes/utils.js');
|
|
14
15
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
15
16
|
require('@better-auth/utils/hash');
|
|
16
17
|
require('@better-auth/utils/base64');
|
|
17
18
|
require('../../crypto/index.cjs');
|
|
18
|
-
require('@noble/ciphers/chacha');
|
|
19
|
-
require('@noble/ciphers/utils');
|
|
20
|
-
require('@noble/ciphers/webcrypto');
|
|
19
|
+
require('@noble/ciphers/chacha.js');
|
|
20
|
+
require('@noble/ciphers/utils.js');
|
|
21
21
|
require('jose');
|
|
22
|
-
require('@noble/hashes/scrypt');
|
|
22
|
+
require('@noble/hashes/scrypt.js');
|
|
23
23
|
require('@better-auth/utils');
|
|
24
24
|
require('@better-auth/utils/hex');
|
|
25
|
-
require('@noble/hashes/utils');
|
|
26
25
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
27
26
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
28
27
|
require('@better-auth/utils/random');
|
|
@@ -67,7 +66,7 @@ const schema = {
|
|
|
67
66
|
|
|
68
67
|
function toChecksumAddress(address) {
|
|
69
68
|
address = address.toLowerCase().replace("0x", "");
|
|
70
|
-
const hash = [...
|
|
69
|
+
const hash = [...sha3_js.keccak_256(utils_js.utf8ToBytes(address))].map((v) => v.toString(16).padStart(2, "0")).join("");
|
|
71
70
|
let ret = "0x";
|
|
72
71
|
for (let i = 0; i < 40; i++) {
|
|
73
72
|
if (parseInt(hash[i], 16) >= 8) {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
3
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.6crrbXrP.cjs';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'zod/v4';
|
|
6
6
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
7
|
-
import '../../shared/better-auth.
|
|
8
|
-
import 'jose';
|
|
7
|
+
import '../../shared/better-auth.BaMSx6K3.cjs';
|
|
9
8
|
import 'zod/v4/core';
|
|
10
9
|
import 'better-sqlite3';
|
|
11
10
|
import 'bun:sqlite';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
3
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.YK5LQtFt.mjs';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'zod/v4';
|
|
6
6
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
7
|
-
import '../../shared/better-auth.
|
|
8
|
-
import 'jose';
|
|
7
|
+
import '../../shared/better-auth.DR57bygo.mjs';
|
|
9
8
|
import 'zod/v4/core';
|
|
10
9
|
import 'better-sqlite3';
|
|
11
10
|
import 'bun:sqlite';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
3
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.S3lnSz8Y.js';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'zod/v4';
|
|
6
6
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
7
|
-
import '../../shared/better-auth.
|
|
8
|
-
import 'jose';
|
|
7
|
+
import '../../shared/better-auth.B5FL4Q2B.js';
|
|
9
8
|
import 'zod/v4/core';
|
|
10
9
|
import 'better-sqlite3';
|
|
11
10
|
import 'bun:sqlite';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { APIError } from 'better-call';
|
|
2
|
-
import '../../shared/better-auth.
|
|
2
|
+
import '../../shared/better-auth.CSEecXfV.mjs';
|
|
3
3
|
import { a as createAuthEndpoint } from '../../shared/better-auth.DV5EHeYG.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import { s as setSessionCookie } from '../../shared/better-auth.UfVWArIB.mjs';
|
|
@@ -8,19 +8,18 @@ import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
|
8
8
|
import '../../shared/better-auth.BjBlybv-.mjs';
|
|
9
9
|
import { z } from 'zod';
|
|
10
10
|
import { g as getOrigin } from '../../shared/better-auth.CuS_eDdK.mjs';
|
|
11
|
-
import { keccak_256 } from '@noble/hashes/sha3';
|
|
11
|
+
import { keccak_256 } from '@noble/hashes/sha3.js';
|
|
12
|
+
import { utf8ToBytes } from '@noble/hashes/utils.js';
|
|
12
13
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
13
14
|
import '@better-auth/utils/hash';
|
|
14
15
|
import '@better-auth/utils/base64';
|
|
15
16
|
import '../../crypto/index.mjs';
|
|
16
|
-
import '@noble/ciphers/chacha';
|
|
17
|
-
import '@noble/ciphers/utils';
|
|
18
|
-
import '@noble/ciphers/webcrypto';
|
|
17
|
+
import '@noble/ciphers/chacha.js';
|
|
18
|
+
import '@noble/ciphers/utils.js';
|
|
19
19
|
import 'jose';
|
|
20
|
-
import '@noble/hashes/scrypt';
|
|
20
|
+
import '@noble/hashes/scrypt.js';
|
|
21
21
|
import '@better-auth/utils';
|
|
22
22
|
import '@better-auth/utils/hex';
|
|
23
|
-
import '@noble/hashes/utils';
|
|
24
23
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
25
24
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
26
25
|
import '@better-auth/utils/random';
|
|
@@ -65,7 +64,7 @@ const schema = {
|
|
|
65
64
|
|
|
66
65
|
function toChecksumAddress(address) {
|
|
67
66
|
address = address.toLowerCase().replace("0x", "");
|
|
68
|
-
const hash = [...keccak_256(address)].map((v) => v.toString(16).padStart(2, "0")).join("");
|
|
67
|
+
const hash = [...keccak_256(utf8ToBytes(address))].map((v) => v.toString(16).padStart(2, "0")).join("");
|
|
69
68
|
let ret = "0x";
|
|
70
69
|
for (let i = 0; i < 40; i++) {
|
|
71
70
|
if (parseInt(hash[i], 16) >= 8) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const z = require('zod/v4');
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
|
-
const socialProviders_index = require('../../shared/better-auth.
|
|
5
|
+
const socialProviders_index = require('../../shared/better-auth.BlsHS68J.cjs');
|
|
6
6
|
const session = require('../../shared/better-auth.CLv80Pwz.cjs');
|
|
7
7
|
const cookies_index = require('../../shared/better-auth.D5q0JUiv.cjs');
|
|
8
8
|
require('../../shared/better-auth.gN3g-znU.cjs');
|
|
@@ -14,13 +14,12 @@ const jose = require('jose');
|
|
|
14
14
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
15
15
|
require('@better-auth/utils/hash');
|
|
16
16
|
require('../../crypto/index.cjs');
|
|
17
|
-
require('@noble/ciphers/chacha');
|
|
18
|
-
require('@noble/ciphers/utils');
|
|
19
|
-
require('@noble/
|
|
20
|
-
require('@noble/hashes/scrypt');
|
|
17
|
+
require('@noble/ciphers/chacha.js');
|
|
18
|
+
require('@noble/ciphers/utils.js');
|
|
19
|
+
require('@noble/hashes/scrypt.js');
|
|
21
20
|
require('@better-auth/utils');
|
|
22
21
|
require('@better-auth/utils/hex');
|
|
23
|
-
require('@noble/hashes/utils');
|
|
22
|
+
require('@noble/hashes/utils.js');
|
|
24
23
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
25
24
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
26
25
|
require('@better-auth/utils/random');
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { O as OAuth2Tokens } from '../../shared/better-auth.
|
|
4
|
-
import { U as User } from '../../shared/better-auth.
|
|
3
|
+
import { O as OAuth2Tokens } from '../../shared/better-auth.BaMSx6K3.cjs';
|
|
4
|
+
import { U as User } from '../../shared/better-auth.6crrbXrP.cjs';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import 'jose';
|
|
7
6
|
import 'kysely';
|
|
8
7
|
import 'zod/v4/core';
|
|
9
8
|
import 'zod';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { O as OAuth2Tokens } from '../../shared/better-auth.
|
|
4
|
-
import { U as User } from '../../shared/better-auth.
|
|
3
|
+
import { O as OAuth2Tokens } from '../../shared/better-auth.DR57bygo.mjs';
|
|
4
|
+
import { U as User } from '../../shared/better-auth.YK5LQtFt.mjs';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import 'jose';
|
|
7
6
|
import 'kysely';
|
|
8
7
|
import 'zod/v4/core';
|
|
9
8
|
import 'zod';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { O as OAuth2Tokens } from '../../shared/better-auth.
|
|
4
|
-
import { U as User } from '../../shared/better-auth.
|
|
3
|
+
import { O as OAuth2Tokens } from '../../shared/better-auth.B5FL4Q2B.js';
|
|
4
|
+
import { U as User } from '../../shared/better-auth.S3lnSz8Y.js';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import 'jose';
|
|
7
6
|
import 'kysely';
|
|
8
7
|
import 'zod/v4/core';
|
|
9
8
|
import 'zod';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
|
-
import { p as parseState, v as validateAuthorizationCode, b as validateToken, j as handleOAuthUserInfo, s as setTokenUtil, g as generateState, c as createAuthorizationURL } from '../../shared/better-auth.
|
|
3
|
+
import { p as parseState, v as validateAuthorizationCode, b as validateToken, j as handleOAuthUserInfo, s as setTokenUtil, g as generateState, c as createAuthorizationURL } from '../../shared/better-auth.CSEecXfV.mjs';
|
|
4
4
|
import { a as createAuthEndpoint, s as sessionMiddleware } from '../../shared/better-auth.DV5EHeYG.mjs';
|
|
5
5
|
import { s as setSessionCookie } from '../../shared/better-auth.UfVWArIB.mjs';
|
|
6
6
|
import '../../shared/better-auth.Dcv8PS7T.mjs';
|
|
@@ -12,13 +12,12 @@ import { decodeJwt } from 'jose';
|
|
|
12
12
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
13
13
|
import '@better-auth/utils/hash';
|
|
14
14
|
import '../../crypto/index.mjs';
|
|
15
|
-
import '@noble/ciphers/chacha';
|
|
16
|
-
import '@noble/ciphers/utils';
|
|
17
|
-
import '@noble/
|
|
18
|
-
import '@noble/hashes/scrypt';
|
|
15
|
+
import '@noble/ciphers/chacha.js';
|
|
16
|
+
import '@noble/ciphers/utils.js';
|
|
17
|
+
import '@noble/hashes/scrypt.js';
|
|
19
18
|
import '@better-auth/utils';
|
|
20
19
|
import '@better-auth/utils/hex';
|
|
21
|
-
import '@noble/hashes/utils';
|
|
20
|
+
import '@noble/hashes/utils.js';
|
|
22
21
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
23
22
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
24
23
|
import '@better-auth/utils/random';
|
|
@@ -4,7 +4,7 @@ const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
|
4
4
|
const z = require('zod/v4');
|
|
5
5
|
const session = require('../../shared/better-auth.CLv80Pwz.cjs');
|
|
6
6
|
const betterCall = require('better-call');
|
|
7
|
-
require('../../shared/better-auth.
|
|
7
|
+
require('../../shared/better-auth.BlsHS68J.cjs');
|
|
8
8
|
const cookies_index = require('../../shared/better-auth.D5q0JUiv.cjs');
|
|
9
9
|
const schema$1 = require('../../shared/better-auth.gN3g-znU.cjs');
|
|
10
10
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
@@ -22,13 +22,12 @@ require('../../shared/better-auth.C1hdVENX.cjs');
|
|
|
22
22
|
require('../../shared/better-auth.vPQBmXQL.cjs');
|
|
23
23
|
require('@better-fetch/fetch');
|
|
24
24
|
require('jose');
|
|
25
|
-
require('@noble/ciphers/chacha');
|
|
26
|
-
require('@noble/ciphers/utils');
|
|
27
|
-
require('@noble/
|
|
28
|
-
require('@noble/hashes/scrypt');
|
|
25
|
+
require('@noble/ciphers/chacha.js');
|
|
26
|
+
require('@noble/ciphers/utils.js');
|
|
27
|
+
require('@noble/hashes/scrypt.js');
|
|
29
28
|
require('@better-auth/utils');
|
|
30
29
|
require('@better-auth/utils/hex');
|
|
31
|
-
require('@noble/hashes/utils');
|
|
30
|
+
require('@noble/hashes/utils.js');
|
|
32
31
|
require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
33
32
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
34
33
|
require('jose/errors');
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { U as User, I as InferOptionSchema, z as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema, z as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.6crrbXrP.cjs';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import 'kysely';
|
|
7
|
-
import '../../shared/better-auth.
|
|
8
|
-
import 'jose';
|
|
7
|
+
import '../../shared/better-auth.BaMSx6K3.cjs';
|
|
9
8
|
import 'zod/v4/core';
|
|
10
9
|
import 'zod';
|
|
11
10
|
import 'better-sqlite3';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { U as User, I as InferOptionSchema, z as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema, z as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.YK5LQtFt.mjs';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import 'kysely';
|
|
7
|
-
import '../../shared/better-auth.
|
|
8
|
-
import 'jose';
|
|
7
|
+
import '../../shared/better-auth.DR57bygo.mjs';
|
|
9
8
|
import 'zod/v4/core';
|
|
10
9
|
import 'zod';
|
|
11
10
|
import 'better-sqlite3';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { U as User, I as InferOptionSchema, z as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema, z as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.S3lnSz8Y.js';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.DTtXpZYr.js';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import 'kysely';
|
|
7
|
-
import '../../shared/better-auth.
|
|
8
|
-
import 'jose';
|
|
7
|
+
import '../../shared/better-auth.B5FL4Q2B.js';
|
|
9
8
|
import 'zod/v4/core';
|
|
10
9
|
import 'zod';
|
|
11
10
|
import 'better-sqlite3';
|
|
@@ -2,7 +2,7 @@ import { g as generateRandomString } from '../../shared/better-auth.B4Qoxdgc.mjs
|
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
3
|
import { g as getSessionFromCtx, a as createAuthEndpoint, s as sessionMiddleware, B as BASE_ERROR_CODES, c as createAuthMiddleware } from '../../shared/better-auth.DV5EHeYG.mjs';
|
|
4
4
|
import { APIError } from 'better-call';
|
|
5
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.CSEecXfV.mjs';
|
|
6
6
|
import { s as setSessionCookie, d as deleteSessionCookie } from '../../shared/better-auth.UfVWArIB.mjs';
|
|
7
7
|
import { m as mergeSchema } from '../../shared/better-auth.Dcv8PS7T.mjs';
|
|
8
8
|
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
@@ -20,13 +20,12 @@ import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
|
20
20
|
import '../../shared/better-auth.BZZKN1g7.mjs';
|
|
21
21
|
import '@better-fetch/fetch';
|
|
22
22
|
import 'jose';
|
|
23
|
-
import '@noble/ciphers/chacha';
|
|
24
|
-
import '@noble/ciphers/utils';
|
|
25
|
-
import '@noble/
|
|
26
|
-
import '@noble/hashes/scrypt';
|
|
23
|
+
import '@noble/ciphers/chacha.js';
|
|
24
|
+
import '@noble/ciphers/utils.js';
|
|
25
|
+
import '@noble/hashes/scrypt.js';
|
|
27
26
|
import '@better-auth/utils';
|
|
28
27
|
import '@better-auth/utils/hex';
|
|
29
|
-
import '@noble/hashes/utils';
|
|
28
|
+
import '@noble/hashes/utils.js';
|
|
30
29
|
import '../../shared/better-auth.CuS_eDdK.mjs';
|
|
31
30
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
32
31
|
import 'jose/errors';
|
|
@@ -4,7 +4,7 @@ const z = require('zod/v4');
|
|
|
4
4
|
const session = require('../../shared/better-auth.CLv80Pwz.cjs');
|
|
5
5
|
const betterCall = require('better-call');
|
|
6
6
|
const cookies_index = require('../../shared/better-auth.D5q0JUiv.cjs');
|
|
7
|
-
const socialProviders_index = require('../../shared/better-auth.
|
|
7
|
+
const socialProviders_index = require('../../shared/better-auth.BlsHS68J.cjs');
|
|
8
8
|
const schema = require('../../shared/better-auth.gN3g-znU.cjs');
|
|
9
9
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
10
10
|
require('../../shared/better-auth.B3274wGK.cjs');
|
|
@@ -17,14 +17,13 @@ require('../../shared/better-auth.ANpbi45u.cjs');
|
|
|
17
17
|
require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
18
18
|
require('@better-auth/utils/hash');
|
|
19
19
|
require('../../crypto/index.cjs');
|
|
20
|
-
require('@noble/ciphers/chacha');
|
|
21
|
-
require('@noble/ciphers/utils');
|
|
22
|
-
require('@noble/ciphers/webcrypto');
|
|
20
|
+
require('@noble/ciphers/chacha.js');
|
|
21
|
+
require('@noble/ciphers/utils.js');
|
|
23
22
|
require('jose');
|
|
24
|
-
require('@noble/hashes/scrypt');
|
|
23
|
+
require('@noble/hashes/scrypt.js');
|
|
25
24
|
require('@better-auth/utils');
|
|
26
25
|
require('@better-auth/utils/hex');
|
|
27
|
-
require('@noble/hashes/utils');
|
|
26
|
+
require('@noble/hashes/utils.js');
|
|
28
27
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
29
28
|
require('@better-auth/utils/random');
|
|
30
29
|
require('@better-fetch/fetch');
|
|
@@ -184,6 +183,21 @@ const username = (options) => {
|
|
|
184
183
|
}
|
|
185
184
|
}
|
|
186
185
|
}
|
|
186
|
+
},
|
|
187
|
+
422: {
|
|
188
|
+
description: "Unprocessable Entity. Validation error",
|
|
189
|
+
content: {
|
|
190
|
+
"application/json": {
|
|
191
|
+
schema: {
|
|
192
|
+
type: "object",
|
|
193
|
+
properties: {
|
|
194
|
+
message: {
|
|
195
|
+
type: "string"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
187
201
|
}
|
|
188
202
|
}
|
|
189
203
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { I as InferOptionSchema, h as AuthContext, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { I as InferOptionSchema, h as AuthContext, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.6crrbXrP.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.
|
|
7
|
-
import 'jose';
|
|
6
|
+
import '../../shared/better-auth.BaMSx6K3.cjs';
|
|
8
7
|
import 'zod/v4/core';
|
|
9
8
|
import 'zod';
|
|
10
9
|
import 'better-sqlite3';
|
|
@@ -24,14 +23,14 @@ declare const getSchema: (normalizer: {
|
|
|
24
23
|
unique: true;
|
|
25
24
|
returned: true;
|
|
26
25
|
transform: {
|
|
27
|
-
input(value: string | number | boolean |
|
|
26
|
+
input(value: string | number | boolean | string[] | Date | number[] | null | undefined): string | null | undefined;
|
|
28
27
|
};
|
|
29
28
|
};
|
|
30
29
|
displayUsername: {
|
|
31
30
|
type: "string";
|
|
32
31
|
required: false;
|
|
33
32
|
transform: {
|
|
34
|
-
input(value: string | number | boolean |
|
|
33
|
+
input(value: string | number | boolean | string[] | Date | number[] | null | undefined): string | null | undefined;
|
|
35
34
|
};
|
|
36
35
|
};
|
|
37
36
|
};
|
|
@@ -252,6 +251,21 @@ declare const username: (options?: UsernameOptions) => {
|
|
|
252
251
|
};
|
|
253
252
|
};
|
|
254
253
|
};
|
|
254
|
+
422: {
|
|
255
|
+
description: string;
|
|
256
|
+
content: {
|
|
257
|
+
"application/json": {
|
|
258
|
+
schema: {
|
|
259
|
+
type: "object";
|
|
260
|
+
properties: {
|
|
261
|
+
message: {
|
|
262
|
+
type: string;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
};
|
|
255
269
|
};
|
|
256
270
|
};
|
|
257
271
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { I as InferOptionSchema, h as AuthContext, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { I as InferOptionSchema, h as AuthContext, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.YK5LQtFt.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.
|
|
7
|
-
import 'jose';
|
|
6
|
+
import '../../shared/better-auth.DR57bygo.mjs';
|
|
8
7
|
import 'zod/v4/core';
|
|
9
8
|
import 'zod';
|
|
10
9
|
import 'better-sqlite3';
|
|
@@ -24,14 +23,14 @@ declare const getSchema: (normalizer: {
|
|
|
24
23
|
unique: true;
|
|
25
24
|
returned: true;
|
|
26
25
|
transform: {
|
|
27
|
-
input(value: string | number | boolean |
|
|
26
|
+
input(value: string | number | boolean | string[] | Date | number[] | null | undefined): string | null | undefined;
|
|
28
27
|
};
|
|
29
28
|
};
|
|
30
29
|
displayUsername: {
|
|
31
30
|
type: "string";
|
|
32
31
|
required: false;
|
|
33
32
|
transform: {
|
|
34
|
-
input(value: string | number | boolean |
|
|
33
|
+
input(value: string | number | boolean | string[] | Date | number[] | null | undefined): string | null | undefined;
|
|
35
34
|
};
|
|
36
35
|
};
|
|
37
36
|
};
|
|
@@ -252,6 +251,21 @@ declare const username: (options?: UsernameOptions) => {
|
|
|
252
251
|
};
|
|
253
252
|
};
|
|
254
253
|
};
|
|
254
|
+
422: {
|
|
255
|
+
description: string;
|
|
256
|
+
content: {
|
|
257
|
+
"application/json": {
|
|
258
|
+
schema: {
|
|
259
|
+
type: "object";
|
|
260
|
+
properties: {
|
|
261
|
+
message: {
|
|
262
|
+
type: string;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
};
|
|
255
269
|
};
|
|
256
270
|
};
|
|
257
271
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { I as InferOptionSchema, h as AuthContext, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { I as InferOptionSchema, h as AuthContext, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.S3lnSz8Y.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.
|
|
7
|
-
import 'jose';
|
|
6
|
+
import '../../shared/better-auth.B5FL4Q2B.js';
|
|
8
7
|
import 'zod/v4/core';
|
|
9
8
|
import 'zod';
|
|
10
9
|
import 'better-sqlite3';
|
|
@@ -24,14 +23,14 @@ declare const getSchema: (normalizer: {
|
|
|
24
23
|
unique: true;
|
|
25
24
|
returned: true;
|
|
26
25
|
transform: {
|
|
27
|
-
input(value: string | number | boolean |
|
|
26
|
+
input(value: string | number | boolean | string[] | Date | number[] | null | undefined): string | null | undefined;
|
|
28
27
|
};
|
|
29
28
|
};
|
|
30
29
|
displayUsername: {
|
|
31
30
|
type: "string";
|
|
32
31
|
required: false;
|
|
33
32
|
transform: {
|
|
34
|
-
input(value: string | number | boolean |
|
|
33
|
+
input(value: string | number | boolean | string[] | Date | number[] | null | undefined): string | null | undefined;
|
|
35
34
|
};
|
|
36
35
|
};
|
|
37
36
|
};
|
|
@@ -252,6 +251,21 @@ declare const username: (options?: UsernameOptions) => {
|
|
|
252
251
|
};
|
|
253
252
|
};
|
|
254
253
|
};
|
|
254
|
+
422: {
|
|
255
|
+
description: string;
|
|
256
|
+
content: {
|
|
257
|
+
"application/json": {
|
|
258
|
+
schema: {
|
|
259
|
+
type: "object";
|
|
260
|
+
properties: {
|
|
261
|
+
message: {
|
|
262
|
+
type: string;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
};
|
|
255
269
|
};
|
|
256
270
|
};
|
|
257
271
|
};
|
|
@@ -2,7 +2,7 @@ import * as z from 'zod/v4';
|
|
|
2
2
|
import { c as createAuthMiddleware, a as createAuthEndpoint, B as BASE_ERROR_CODES } from '../../shared/better-auth.DV5EHeYG.mjs';
|
|
3
3
|
import { APIError } from 'better-call';
|
|
4
4
|
import { s as setSessionCookie } from '../../shared/better-auth.UfVWArIB.mjs';
|
|
5
|
-
import { T as sendVerificationEmailFn } from '../../shared/better-auth.
|
|
5
|
+
import { T as sendVerificationEmailFn } from '../../shared/better-auth.CSEecXfV.mjs';
|
|
6
6
|
import { m as mergeSchema } from '../../shared/better-auth.Dcv8PS7T.mjs';
|
|
7
7
|
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
8
8
|
import '../../shared/better-auth.BjBlybv-.mjs';
|
|
@@ -15,14 +15,13 @@ import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
|
15
15
|
import '../../shared/better-auth.CuS_eDdK.mjs';
|
|
16
16
|
import '@better-auth/utils/hash';
|
|
17
17
|
import '../../crypto/index.mjs';
|
|
18
|
-
import '@noble/ciphers/chacha';
|
|
19
|
-
import '@noble/ciphers/utils';
|
|
20
|
-
import '@noble/ciphers/webcrypto';
|
|
18
|
+
import '@noble/ciphers/chacha.js';
|
|
19
|
+
import '@noble/ciphers/utils.js';
|
|
21
20
|
import 'jose';
|
|
22
|
-
import '@noble/hashes/scrypt';
|
|
21
|
+
import '@noble/hashes/scrypt.js';
|
|
23
22
|
import '@better-auth/utils';
|
|
24
23
|
import '@better-auth/utils/hex';
|
|
25
|
-
import '@noble/hashes/utils';
|
|
24
|
+
import '@noble/hashes/utils.js';
|
|
26
25
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
27
26
|
import '@better-auth/utils/random';
|
|
28
27
|
import '@better-fetch/fetch';
|
|
@@ -168,6 +167,21 @@ const username = (options) => {
|
|
|
168
167
|
}
|
|
169
168
|
}
|
|
170
169
|
}
|
|
170
|
+
},
|
|
171
|
+
422: {
|
|
172
|
+
description: "Unprocessable Entity. Validation error",
|
|
173
|
+
content: {
|
|
174
|
+
"application/json": {
|
|
175
|
+
schema: {
|
|
176
|
+
type: "object",
|
|
177
|
+
properties: {
|
|
178
|
+
message: {
|
|
179
|
+
type: "string"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
171
185
|
}
|
|
172
186
|
}
|
|
173
187
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as createAuthMiddleware, s as sessionMiddleware } from './better-auth.DV5EHeYG.mjs';
|
|
2
2
|
import 'better-call';
|
|
3
|
-
import './better-auth.
|
|
3
|
+
import './better-auth.CSEecXfV.mjs';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
5
5
|
import './better-auth.CMQ3rA-I.mjs';
|
|
6
6
|
import '@better-auth/utils/base64';
|
|
@@ -10,14 +10,13 @@ import '@better-auth/utils/binary';
|
|
|
10
10
|
import './better-auth.Dcv8PS7T.mjs';
|
|
11
11
|
import { g as generateId } from './better-auth.BUPPRXfK.mjs';
|
|
12
12
|
import '@better-auth/utils/hash';
|
|
13
|
-
import '@noble/ciphers/chacha';
|
|
14
|
-
import '@noble/ciphers/utils';
|
|
15
|
-
import '@noble/ciphers/webcrypto';
|
|
13
|
+
import '@noble/ciphers/chacha.js';
|
|
14
|
+
import '@noble/ciphers/utils.js';
|
|
16
15
|
import 'jose';
|
|
17
|
-
import '@noble/hashes/scrypt';
|
|
16
|
+
import '@noble/hashes/scrypt.js';
|
|
18
17
|
import '@better-auth/utils';
|
|
19
18
|
import '@better-auth/utils/hex';
|
|
20
|
-
import '@noble/hashes/utils';
|
|
19
|
+
import '@noble/hashes/utils.js';
|
|
21
20
|
import './better-auth.B4Qoxdgc.mjs';
|
|
22
21
|
|
|
23
22
|
const orgMiddleware = createAuthMiddleware(async () => {
|