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,5 +1,4 @@
|
|
|
1
1
|
import { L as LiteralString } from './better-auth.DTtXpZYr.cjs';
|
|
2
|
-
import * as jose from 'jose';
|
|
3
2
|
import * as z from 'zod/v4';
|
|
4
3
|
|
|
5
4
|
interface OAuth2Tokens {
|
|
@@ -2579,7 +2578,7 @@ declare const cognito: (options: CognitoOptions) => {
|
|
|
2579
2578
|
} | null>;
|
|
2580
2579
|
options: CognitoOptions;
|
|
2581
2580
|
};
|
|
2582
|
-
declare const getCognitoPublicKey: (kid: string, region: string, userPoolId: string) => Promise<Uint8Array<ArrayBufferLike
|
|
2581
|
+
declare const getCognitoPublicKey: (kid: string, region: string, userPoolId: string) => Promise<CryptoKey | Uint8Array<ArrayBufferLike>>;
|
|
2583
2582
|
|
|
2584
2583
|
interface AtlassianProfile {
|
|
2585
2584
|
account_type?: string;
|
|
@@ -2741,7 +2740,7 @@ declare const apple: (options: AppleOptions) => {
|
|
|
2741
2740
|
} | null>;
|
|
2742
2741
|
options: AppleOptions;
|
|
2743
2742
|
};
|
|
2744
|
-
declare const getApplePublicKey: (kid: string) => Promise<Uint8Array<ArrayBufferLike
|
|
2743
|
+
declare const getApplePublicKey: (kid: string) => Promise<CryptoKey | Uint8Array<ArrayBufferLike>>;
|
|
2745
2744
|
|
|
2746
2745
|
declare const socialProviders: {
|
|
2747
2746
|
apple: (options: AppleOptions) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SqliteDialect, MysqlDialect, PostgresDialect, MssqlDialect, Kysely } from 'kysely';
|
|
2
|
-
import { c as createAdapter } from './better-auth.
|
|
2
|
+
import { c as createAdapter } from './better-auth.DOXaXTC6.mjs';
|
|
3
3
|
|
|
4
4
|
function getKyselyDatabaseType(db) {
|
|
5
5
|
if (!db) {
|
|
@@ -9,13 +9,12 @@ const base64 = require('@better-auth/utils/base64');
|
|
|
9
9
|
const crypto_index = require('../crypto/index.cjs');
|
|
10
10
|
const fetch = require('@better-fetch/fetch');
|
|
11
11
|
const jose = require('jose');
|
|
12
|
-
require('@noble/ciphers/chacha');
|
|
13
|
-
require('@noble/ciphers/utils');
|
|
14
|
-
require('@noble/
|
|
15
|
-
require('@noble/hashes/scrypt');
|
|
12
|
+
require('@noble/ciphers/chacha.js');
|
|
13
|
+
require('@noble/ciphers/utils.js');
|
|
14
|
+
require('@noble/hashes/scrypt.js');
|
|
16
15
|
require('@better-auth/utils');
|
|
17
16
|
require('@better-auth/utils/hex');
|
|
18
|
-
require('@noble/hashes/utils');
|
|
17
|
+
require('@noble/hashes/utils.js');
|
|
19
18
|
const random = require('./better-auth.CYeOI8C-.cjs');
|
|
20
19
|
const url = require('./better-auth.DRmln2Nr.cjs');
|
|
21
20
|
const cookies_index = require('./better-auth.D5q0JUiv.cjs');
|
|
@@ -4550,6 +4549,9 @@ const callbackOAuth = session.createAuthEndpoint(
|
|
|
4550
4549
|
c.context.logger.error("Unable to link account - untrusted provider");
|
|
4551
4550
|
return redirectOnError("unable_to_link_account");
|
|
4552
4551
|
}
|
|
4552
|
+
if (userInfo.email !== link.email && c.context.options.account?.accountLinking?.allowDifferentEmails !== true) {
|
|
4553
|
+
return redirectOnError("email_doesn't_match");
|
|
4554
|
+
}
|
|
4553
4555
|
const existingAccount = await c.context.internalAdapter.findAccount(
|
|
4554
4556
|
String(userInfo.id)
|
|
4555
4557
|
);
|
|
@@ -5662,6 +5664,21 @@ const changeEmail = session.createAuthEndpoint(
|
|
|
5662
5664
|
}
|
|
5663
5665
|
}
|
|
5664
5666
|
}
|
|
5667
|
+
},
|
|
5668
|
+
"422": {
|
|
5669
|
+
description: "Unprocessable Entity. Email already exists",
|
|
5670
|
+
content: {
|
|
5671
|
+
"application/json": {
|
|
5672
|
+
schema: {
|
|
5673
|
+
type: "object",
|
|
5674
|
+
properties: {
|
|
5675
|
+
message: {
|
|
5676
|
+
type: "string"
|
|
5677
|
+
}
|
|
5678
|
+
}
|
|
5679
|
+
}
|
|
5680
|
+
}
|
|
5681
|
+
}
|
|
5665
5682
|
}
|
|
5666
5683
|
}
|
|
5667
5684
|
}
|
|
@@ -8,23 +8,22 @@ const id = require('./better-auth.Bg6iw3ig.cjs');
|
|
|
8
8
|
require('zod/v4');
|
|
9
9
|
require('better-call');
|
|
10
10
|
require('@better-auth/utils/hash');
|
|
11
|
-
require('@noble/ciphers/chacha');
|
|
12
|
-
require('@noble/ciphers/utils');
|
|
13
|
-
require('@noble/ciphers/webcrypto');
|
|
11
|
+
require('@noble/ciphers/chacha.js');
|
|
12
|
+
require('@noble/ciphers/utils.js');
|
|
14
13
|
require('@better-auth/utils/base64');
|
|
15
14
|
require('jose');
|
|
16
|
-
require('@noble/hashes/scrypt');
|
|
15
|
+
require('@noble/hashes/scrypt.js');
|
|
17
16
|
require('@better-auth/utils');
|
|
18
17
|
require('@better-auth/utils/hex');
|
|
19
|
-
require('@noble/hashes/utils');
|
|
18
|
+
require('@noble/hashes/utils.js');
|
|
20
19
|
require('./better-auth.CYeOI8C-.cjs');
|
|
21
20
|
const logger = require('./better-auth.B3274wGK.cjs');
|
|
22
21
|
require('./better-auth.B6fIklBU.cjs');
|
|
23
22
|
require('@better-auth/utils/random');
|
|
24
23
|
const index = require('./better-auth.ANpbi45u.cjs');
|
|
25
24
|
const getTables = require('./better-auth.Byugpn9h.cjs');
|
|
26
|
-
const kyselyAdapter = require('./better-auth.
|
|
27
|
-
const memoryAdapter = require('./better-auth.
|
|
25
|
+
const kyselyAdapter = require('./better-auth.WyvofoOW.cjs');
|
|
26
|
+
const memoryAdapter = require('./better-auth.QqWdVDmR.cjs');
|
|
28
27
|
const kysely = require('kysely');
|
|
29
28
|
|
|
30
29
|
function getWithHooks(adapter, ctx) {
|
|
@@ -196,6 +196,7 @@ async function getJwtToken(ctx, options) {
|
|
|
196
196
|
return await signJWT(ctx, {
|
|
197
197
|
options,
|
|
198
198
|
payload: {
|
|
199
|
+
iat: Math.floor(Date.now() / 1e3),
|
|
199
200
|
...payload,
|
|
200
201
|
sub: await options?.jwt?.getSubject?.(ctx.context.session) ?? ctx.context.session.user.id
|
|
201
202
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const z = require('zod/v4');
|
|
4
4
|
const jose = require('jose');
|
|
5
5
|
const betterCall = require('better-call');
|
|
6
|
-
require('./better-auth.
|
|
6
|
+
require('./better-auth.BlsHS68J.cjs');
|
|
7
7
|
const session = require('./better-auth.CLv80Pwz.cjs');
|
|
8
8
|
require('./better-auth.B6fIklBU.cjs');
|
|
9
9
|
const base64 = require('@better-auth/utils/base64');
|
|
@@ -14,15 +14,14 @@ const cookies_index = require('./better-auth.D5q0JUiv.cjs');
|
|
|
14
14
|
const schema$1 = require('./better-auth.gN3g-znU.cjs');
|
|
15
15
|
const crypto_index = require('../crypto/index.cjs');
|
|
16
16
|
const hash = require('@better-auth/utils/hash');
|
|
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
|
const random = require('./better-auth.CYeOI8C-.cjs');
|
|
25
|
-
const sign = require('./better-auth.
|
|
24
|
+
const sign = require('./better-auth.CMwM5enp.cjs');
|
|
26
25
|
require('@better-auth/utils/random');
|
|
27
26
|
require('kysely');
|
|
28
27
|
|
|
@@ -7,13 +7,12 @@ import { base64Url, base64 } from '@better-auth/utils/base64';
|
|
|
7
7
|
import { signJWT, symmetricEncrypt, symmetricDecrypt } from '../crypto/index.mjs';
|
|
8
8
|
import { betterFetch } from '@better-fetch/fetch';
|
|
9
9
|
import { jwtVerify, decodeJwt, decodeProtectedHeader, importJWK, createRemoteJWKSet } from 'jose';
|
|
10
|
-
import '@noble/ciphers/chacha';
|
|
11
|
-
import '@noble/ciphers/utils';
|
|
12
|
-
import '@noble/
|
|
13
|
-
import '@noble/hashes/scrypt';
|
|
10
|
+
import '@noble/ciphers/chacha.js';
|
|
11
|
+
import '@noble/ciphers/utils.js';
|
|
12
|
+
import '@noble/hashes/scrypt.js';
|
|
14
13
|
import '@better-auth/utils';
|
|
15
14
|
import '@better-auth/utils/hex';
|
|
16
|
-
import '@noble/hashes/utils';
|
|
15
|
+
import '@noble/hashes/utils.js';
|
|
17
16
|
import { g as generateRandomString } from './better-auth.B4Qoxdgc.mjs';
|
|
18
17
|
import { g as getOrigin, b as getHost, c as getProtocol } from './better-auth.CuS_eDdK.mjs';
|
|
19
18
|
import { s as setSessionCookie, d as deleteSessionCookie } from './better-auth.UfVWArIB.mjs';
|
|
@@ -4534,6 +4533,9 @@ const callbackOAuth = createAuthEndpoint(
|
|
|
4534
4533
|
c.context.logger.error("Unable to link account - untrusted provider");
|
|
4535
4534
|
return redirectOnError("unable_to_link_account");
|
|
4536
4535
|
}
|
|
4536
|
+
if (userInfo.email !== link.email && c.context.options.account?.accountLinking?.allowDifferentEmails !== true) {
|
|
4537
|
+
return redirectOnError("email_doesn't_match");
|
|
4538
|
+
}
|
|
4537
4539
|
const existingAccount = await c.context.internalAdapter.findAccount(
|
|
4538
4540
|
String(userInfo.id)
|
|
4539
4541
|
);
|
|
@@ -5646,6 +5648,21 @@ const changeEmail = createAuthEndpoint(
|
|
|
5646
5648
|
}
|
|
5647
5649
|
}
|
|
5648
5650
|
}
|
|
5651
|
+
},
|
|
5652
|
+
"422": {
|
|
5653
|
+
description: "Unprocessable Entity. Email already exists",
|
|
5654
|
+
content: {
|
|
5655
|
+
"application/json": {
|
|
5656
|
+
schema: {
|
|
5657
|
+
type: "object",
|
|
5658
|
+
properties: {
|
|
5659
|
+
message: {
|
|
5660
|
+
type: "string"
|
|
5661
|
+
}
|
|
5662
|
+
}
|
|
5663
|
+
}
|
|
5664
|
+
}
|
|
5665
|
+
}
|
|
5649
5666
|
}
|
|
5650
5667
|
}
|
|
5651
5668
|
}
|
|
@@ -3,25 +3,24 @@
|
|
|
3
3
|
const z = require('zod/v4');
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
5
|
const session = require('./better-auth.CLv80Pwz.cjs');
|
|
6
|
-
require('./better-auth.
|
|
6
|
+
require('./better-auth.BlsHS68J.cjs');
|
|
7
7
|
require('./better-auth.B6fIklBU.cjs');
|
|
8
8
|
const base64 = require('@better-auth/utils/base64');
|
|
9
9
|
require('@better-auth/utils/hmac');
|
|
10
10
|
require('./better-auth.B3274wGK.cjs');
|
|
11
11
|
require('@better-auth/utils/binary');
|
|
12
12
|
const schema = require('./better-auth.gN3g-znU.cjs');
|
|
13
|
-
require('./better-auth.
|
|
13
|
+
require('./better-auth.DPsIzckY.cjs');
|
|
14
14
|
require('../plugins/organization/access/index.cjs');
|
|
15
15
|
require('@better-auth/utils/random');
|
|
16
16
|
const hash = require('@better-auth/utils/hash');
|
|
17
|
-
require('@noble/ciphers/chacha');
|
|
18
|
-
require('@noble/ciphers/utils');
|
|
19
|
-
require('@noble/ciphers/webcrypto');
|
|
17
|
+
require('@noble/ciphers/chacha.js');
|
|
18
|
+
require('@noble/ciphers/utils.js');
|
|
20
19
|
require('jose');
|
|
21
|
-
require('@noble/hashes/scrypt');
|
|
20
|
+
require('@noble/hashes/scrypt.js');
|
|
22
21
|
require('@better-auth/utils');
|
|
23
22
|
require('@better-auth/utils/hex');
|
|
24
|
-
require('@noble/hashes/utils');
|
|
23
|
+
require('@noble/hashes/utils.js');
|
|
25
24
|
const random = require('./better-auth.CYeOI8C-.cjs');
|
|
26
25
|
require('kysely');
|
|
27
26
|
require('@better-auth/utils/otp');
|
|
@@ -34,7 +33,7 @@ const getRequestIp = require('./better-auth.Cxlqz5AU.cjs');
|
|
|
34
33
|
const parser = require('./better-auth.DhsGZ30Q.cjs');
|
|
35
34
|
const json = require('./better-auth.vPQBmXQL.cjs');
|
|
36
35
|
const plugins_access_index = require('../plugins/access/index.cjs');
|
|
37
|
-
require('@noble/hashes/sha3');
|
|
36
|
+
require('@noble/hashes/sha3.js');
|
|
38
37
|
require('../plugins/device-authorization/index.cjs');
|
|
39
38
|
|
|
40
39
|
function _interopNamespaceCompat(e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
|
-
import './better-auth.
|
|
3
|
+
import './better-auth.CSEecXfV.mjs';
|
|
4
4
|
import { c as createAuthMiddleware, g as getSessionFromCtx, a as createAuthEndpoint } from './better-auth.DV5EHeYG.mjs';
|
|
5
5
|
import { s as setSessionCookie, d as deleteSessionCookie } from './better-auth.UfVWArIB.mjs';
|
|
6
6
|
import { m as mergeSchema } from './better-auth.Dcv8PS7T.mjs';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
4
|
const z = require('zod/v4');
|
|
5
5
|
const session = require('./better-auth.CLv80Pwz.cjs');
|
|
6
|
-
require('./better-auth.
|
|
6
|
+
require('./better-auth.BlsHS68J.cjs');
|
|
7
7
|
require('./better-auth.B6fIklBU.cjs');
|
|
8
8
|
require('@better-auth/utils/base64');
|
|
9
9
|
require('@better-auth/utils/hmac');
|
|
@@ -13,20 +13,19 @@ require('./better-auth.gN3g-znU.cjs');
|
|
|
13
13
|
const date = require('./better-auth.C1hdVENX.cjs');
|
|
14
14
|
const index = require('./better-auth.ANpbi45u.cjs');
|
|
15
15
|
const parser = require('./better-auth.DhsGZ30Q.cjs');
|
|
16
|
-
const schema = require('./better-auth.
|
|
16
|
+
const schema = require('./better-auth.DPsIzckY.cjs');
|
|
17
17
|
const cookies_index = require('./better-auth.D5q0JUiv.cjs');
|
|
18
|
-
const hasPermission = require('./better-auth.
|
|
18
|
+
const hasPermission = require('./better-auth.DEKJQy4E.cjs');
|
|
19
19
|
const toZod = require('./better-auth.CpS2FLSa.cjs');
|
|
20
20
|
require('@better-auth/utils/random');
|
|
21
21
|
require('@better-auth/utils/hash');
|
|
22
|
-
require('@noble/ciphers/chacha');
|
|
23
|
-
require('@noble/ciphers/utils');
|
|
24
|
-
require('@noble/ciphers/webcrypto');
|
|
22
|
+
require('@noble/ciphers/chacha.js');
|
|
23
|
+
require('@noble/ciphers/utils.js');
|
|
25
24
|
require('jose');
|
|
26
|
-
require('@noble/hashes/scrypt');
|
|
25
|
+
require('@noble/hashes/scrypt.js');
|
|
27
26
|
require('@better-auth/utils');
|
|
28
27
|
require('@better-auth/utils/hex');
|
|
29
|
-
require('@noble/hashes/utils');
|
|
28
|
+
require('@noble/hashes/utils.js');
|
|
30
29
|
require('./better-auth.CYeOI8C-.cjs');
|
|
31
30
|
require('kysely');
|
|
32
31
|
const plugins_organization_access_index = require('../plugins/organization/access/index.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
import { SignJWT } from 'jose';
|
|
3
3
|
import { APIError } from 'better-call';
|
|
4
|
-
import './better-auth.
|
|
4
|
+
import './better-auth.CSEecXfV.mjs';
|
|
5
5
|
import { g as getSessionFromCtx, a as createAuthEndpoint, c as createAuthMiddleware, s as sessionMiddleware } from './better-auth.DV5EHeYG.mjs';
|
|
6
6
|
import './better-auth.CMQ3rA-I.mjs';
|
|
7
7
|
import { base64Url, base64 } from '@better-auth/utils/base64';
|
|
@@ -12,15 +12,14 @@ import { p as parseSetCookieHeader } from './better-auth.UfVWArIB.mjs';
|
|
|
12
12
|
import { m as mergeSchema } from './better-auth.Dcv8PS7T.mjs';
|
|
13
13
|
import { symmetricEncrypt, symmetricDecrypt } from '../crypto/index.mjs';
|
|
14
14
|
import { createHash } from '@better-auth/utils/hash';
|
|
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 { g as generateRandomString } from './better-auth.B4Qoxdgc.mjs';
|
|
23
|
-
import { g as getJwtToken } from './better-auth.
|
|
22
|
+
import { g as getJwtToken } from './better-auth.DDuRjwGK.mjs';
|
|
24
23
|
import '@better-auth/utils/random';
|
|
25
24
|
import 'kysely';
|
|
26
25
|
|
|
@@ -194,6 +194,7 @@ async function getJwtToken(ctx, options) {
|
|
|
194
194
|
return await signJWT(ctx, {
|
|
195
195
|
options,
|
|
196
196
|
payload: {
|
|
197
|
+
iat: Math.floor(Date.now() / 1e3),
|
|
197
198
|
...payload,
|
|
198
199
|
sub: await options?.jwt?.getSubject?.(ctx.context.session) ?? ctx.context.session.user.id
|
|
199
200
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const plugins_organization_access_index = require('../plugins/organization/access/index.cjs');
|
|
4
4
|
const z = require('zod/v4');
|
|
5
5
|
const betterCall = require('better-call');
|
|
6
|
-
require('./better-auth.
|
|
6
|
+
require('./better-auth.BlsHS68J.cjs');
|
|
7
7
|
require('./better-auth.CLv80Pwz.cjs');
|
|
8
8
|
require('./better-auth.B6fIklBU.cjs');
|
|
9
9
|
require('@better-auth/utils/base64');
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { checkEndpointConflicts, getEndpoints, router } from '../api/index.mjs';
|
|
2
2
|
import { defu } from 'defu';
|
|
3
3
|
import { hashToBase64, verifyPassword, hashPassword } from '../crypto/index.mjs';
|
|
4
|
-
import { a as getAdapter, c as createInternalAdapter, e as getMigrations } from './better-auth.
|
|
4
|
+
import { a as getAdapter, c as createInternalAdapter, e as getMigrations } from './better-auth.DV0Lly8-.mjs';
|
|
5
5
|
import { g as getAuthTables } from './better-auth.B_PTVODM.mjs';
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import './better-auth.Dcv8PS7T.mjs';
|
|
8
8
|
import { g as getCookies, c as createCookieGetter } from './better-auth.UfVWArIB.mjs';
|
|
9
9
|
import { a as logger, c as createLogger } from './better-auth.BjBlybv-.mjs';
|
|
10
|
-
import { U as socialProviders } from './better-auth.
|
|
10
|
+
import { U as socialProviders } from './better-auth.CSEecXfV.mjs';
|
|
11
11
|
import { g as generateId } from './better-auth.BUPPRXfK.mjs';
|
|
12
12
|
import 'better-call';
|
|
13
13
|
import '@better-auth/utils/hash';
|
|
14
|
-
import '@noble/ciphers/chacha';
|
|
15
|
-
import '@noble/ciphers/utils';
|
|
16
|
-
import '@noble/ciphers/webcrypto';
|
|
14
|
+
import '@noble/ciphers/chacha.js';
|
|
15
|
+
import '@noble/ciphers/utils.js';
|
|
17
16
|
import '@better-auth/utils/base64';
|
|
18
17
|
import 'jose';
|
|
19
18
|
import './better-auth.B4Qoxdgc.mjs';
|
|
@@ -21,13 +20,13 @@ import { e as env, g as getEnvVar, i as isTest, c as getBooleanEnvVar, E as ENV,
|
|
|
21
20
|
import { c as checkPassword } from './better-auth.YwDQhoPc.mjs';
|
|
22
21
|
import { a as getBaseURL, g as getOrigin } from './better-auth.CuS_eDdK.mjs';
|
|
23
22
|
import { B as BetterAuthError } from './better-auth.DdzSJf-n.mjs';
|
|
24
|
-
import '@noble/hashes/scrypt';
|
|
23
|
+
import '@noble/hashes/scrypt.js';
|
|
25
24
|
import '@better-auth/utils';
|
|
26
25
|
import '@better-auth/utils/hex';
|
|
27
|
-
import '@noble/hashes/utils';
|
|
26
|
+
import '@noble/hashes/utils.js';
|
|
28
27
|
import { betterFetch } from '@better-fetch/fetch';
|
|
29
28
|
import '@better-auth/utils/random';
|
|
30
|
-
import { g as getKyselyDatabaseType } from './better-auth.
|
|
29
|
+
import { g as getKyselyDatabaseType } from './better-auth.BduPtJy8.mjs';
|
|
31
30
|
import { B as BASE_ERROR_CODES } from './better-auth.DV5EHeYG.mjs';
|
|
32
31
|
|
|
33
32
|
const DEFAULT_SECRET = "better-auth-secret-123456789";
|
|
@@ -4,15 +4,14 @@ import { g as generateId } from './better-auth.BUPPRXfK.mjs';
|
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '@better-auth/utils/hash';
|
|
7
|
-
import '@noble/ciphers/chacha';
|
|
8
|
-
import '@noble/ciphers/utils';
|
|
9
|
-
import '@noble/ciphers/webcrypto';
|
|
7
|
+
import '@noble/ciphers/chacha.js';
|
|
8
|
+
import '@noble/ciphers/utils.js';
|
|
10
9
|
import '@better-auth/utils/base64';
|
|
11
10
|
import 'jose';
|
|
12
|
-
import '@noble/hashes/scrypt';
|
|
11
|
+
import '@noble/hashes/scrypt.js';
|
|
13
12
|
import '@better-auth/utils';
|
|
14
13
|
import '@better-auth/utils/hex';
|
|
15
|
-
import '@noble/hashes/utils';
|
|
14
|
+
import '@noble/hashes/utils.js';
|
|
16
15
|
import './better-auth.B4Qoxdgc.mjs';
|
|
17
16
|
import { a as logger } from './better-auth.BjBlybv-.mjs';
|
|
18
17
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const session = require('./better-auth.CLv80Pwz.cjs');
|
|
4
4
|
require('better-call');
|
|
5
|
-
require('./better-auth.
|
|
5
|
+
require('./better-auth.BlsHS68J.cjs');
|
|
6
6
|
const z = require('zod/v4');
|
|
7
7
|
require('./better-auth.B6fIklBU.cjs');
|
|
8
8
|
require('@better-auth/utils/base64');
|
|
@@ -12,14 +12,13 @@ require('@better-auth/utils/binary');
|
|
|
12
12
|
require('./better-auth.gN3g-znU.cjs');
|
|
13
13
|
const id = require('./better-auth.Bg6iw3ig.cjs');
|
|
14
14
|
require('@better-auth/utils/hash');
|
|
15
|
-
require('@noble/ciphers/chacha');
|
|
16
|
-
require('@noble/ciphers/utils');
|
|
17
|
-
require('@noble/ciphers/webcrypto');
|
|
15
|
+
require('@noble/ciphers/chacha.js');
|
|
16
|
+
require('@noble/ciphers/utils.js');
|
|
18
17
|
require('jose');
|
|
19
|
-
require('@noble/hashes/scrypt');
|
|
18
|
+
require('@noble/hashes/scrypt.js');
|
|
20
19
|
require('@better-auth/utils');
|
|
21
20
|
require('@better-auth/utils/hex');
|
|
22
|
-
require('@noble/hashes/utils');
|
|
21
|
+
require('@noble/hashes/utils.js');
|
|
23
22
|
require('./better-auth.CYeOI8C-.cjs');
|
|
24
23
|
|
|
25
24
|
function _interopNamespaceCompat(e) {
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
3
|
import { a as createAuthEndpoint, g as getSessionFromCtx, s as sessionMiddleware, c as createAuthMiddleware } from './better-auth.DV5EHeYG.mjs';
|
|
4
|
-
import './better-auth.
|
|
4
|
+
import './better-auth.CSEecXfV.mjs';
|
|
5
5
|
import './better-auth.CMQ3rA-I.mjs';
|
|
6
6
|
import { base64Url } from '@better-auth/utils/base64';
|
|
7
7
|
import '@better-auth/utils/hmac';
|
|
8
8
|
import './better-auth.BjBlybv-.mjs';
|
|
9
9
|
import '@better-auth/utils/binary';
|
|
10
10
|
import { m as mergeSchema } from './better-auth.Dcv8PS7T.mjs';
|
|
11
|
-
import './better-auth.
|
|
11
|
+
import './better-auth.5WTE-uUO.mjs';
|
|
12
12
|
import '../plugins/organization/access/index.mjs';
|
|
13
13
|
import '@better-auth/utils/random';
|
|
14
14
|
import { createHash } from '@better-auth/utils/hash';
|
|
15
|
-
import '@noble/ciphers/chacha';
|
|
16
|
-
import '@noble/ciphers/utils';
|
|
17
|
-
import '@noble/ciphers/webcrypto';
|
|
15
|
+
import '@noble/ciphers/chacha.js';
|
|
16
|
+
import '@noble/ciphers/utils.js';
|
|
18
17
|
import 'jose';
|
|
19
|
-
import '@noble/hashes/scrypt';
|
|
18
|
+
import '@noble/hashes/scrypt.js';
|
|
20
19
|
import '@better-auth/utils';
|
|
21
20
|
import '@better-auth/utils/hex';
|
|
22
|
-
import '@noble/hashes/utils';
|
|
21
|
+
import '@noble/hashes/utils.js';
|
|
23
22
|
import { g as generateRandomString } from './better-auth.B4Qoxdgc.mjs';
|
|
24
23
|
import 'kysely';
|
|
25
24
|
import '@better-auth/utils/otp';
|
|
@@ -32,7 +31,7 @@ import { g as getIp } from './better-auth.O2VtDkDK.mjs';
|
|
|
32
31
|
import { p as parseJSON } from './better-auth.ffWeg50w.mjs';
|
|
33
32
|
import { s as safeJSONParse } from './better-auth.BZZKN1g7.mjs';
|
|
34
33
|
import { role } from '../plugins/access/index.mjs';
|
|
35
|
-
import '@noble/hashes/sha3';
|
|
34
|
+
import '@noble/hashes/sha3.js';
|
|
36
35
|
import '../plugins/device-authorization/index.mjs';
|
|
37
36
|
|
|
38
37
|
const apiKeySchema = ({
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { L as LiteralString } from './better-auth.DTtXpZYr.mjs';
|
|
2
|
-
import * as jose from 'jose';
|
|
3
2
|
import * as z from 'zod/v4';
|
|
4
3
|
|
|
5
4
|
interface OAuth2Tokens {
|
|
@@ -2579,7 +2578,7 @@ declare const cognito: (options: CognitoOptions) => {
|
|
|
2579
2578
|
} | null>;
|
|
2580
2579
|
options: CognitoOptions;
|
|
2581
2580
|
};
|
|
2582
|
-
declare const getCognitoPublicKey: (kid: string, region: string, userPoolId: string) => Promise<Uint8Array<ArrayBufferLike
|
|
2581
|
+
declare const getCognitoPublicKey: (kid: string, region: string, userPoolId: string) => Promise<CryptoKey | Uint8Array<ArrayBufferLike>>;
|
|
2583
2582
|
|
|
2584
2583
|
interface AtlassianProfile {
|
|
2585
2584
|
account_type?: string;
|
|
@@ -2741,7 +2740,7 @@ declare const apple: (options: AppleOptions) => {
|
|
|
2741
2740
|
} | null>;
|
|
2742
2741
|
options: AppleOptions;
|
|
2743
2742
|
};
|
|
2744
|
-
declare const getApplePublicKey: (kid: string) => Promise<Uint8Array<ArrayBufferLike
|
|
2743
|
+
declare const getApplePublicKey: (kid: string) => Promise<CryptoKey | Uint8Array<ArrayBufferLike>>;
|
|
2745
2744
|
|
|
2746
2745
|
declare const socialProviders: {
|
|
2747
2746
|
apple: (options: AppleOptions) => {
|
|
@@ -6,23 +6,22 @@ import { g as generateId } from './better-auth.BUPPRXfK.mjs';
|
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import 'better-call';
|
|
8
8
|
import '@better-auth/utils/hash';
|
|
9
|
-
import '@noble/ciphers/chacha';
|
|
10
|
-
import '@noble/ciphers/utils';
|
|
11
|
-
import '@noble/ciphers/webcrypto';
|
|
9
|
+
import '@noble/ciphers/chacha.js';
|
|
10
|
+
import '@noble/ciphers/utils.js';
|
|
12
11
|
import '@better-auth/utils/base64';
|
|
13
12
|
import 'jose';
|
|
14
|
-
import '@noble/hashes/scrypt';
|
|
13
|
+
import '@noble/hashes/scrypt.js';
|
|
15
14
|
import '@better-auth/utils';
|
|
16
15
|
import '@better-auth/utils/hex';
|
|
17
|
-
import '@noble/hashes/utils';
|
|
16
|
+
import '@noble/hashes/utils.js';
|
|
18
17
|
import './better-auth.B4Qoxdgc.mjs';
|
|
19
18
|
import { a as logger, c as createLogger } from './better-auth.BjBlybv-.mjs';
|
|
20
19
|
import './better-auth.CMQ3rA-I.mjs';
|
|
21
20
|
import '@better-auth/utils/random';
|
|
22
21
|
import { B as BetterAuthError } from './better-auth.DdzSJf-n.mjs';
|
|
23
22
|
import { g as getAuthTables } from './better-auth.B_PTVODM.mjs';
|
|
24
|
-
import { c as createKyselyAdapter, k as kyselyAdapter } from './better-auth.
|
|
25
|
-
import { m as memoryAdapter } from './better-auth.
|
|
23
|
+
import { c as createKyselyAdapter, k as kyselyAdapter } from './better-auth.BduPtJy8.mjs';
|
|
24
|
+
import { m as memoryAdapter } from './better-auth.7ZeACU2v.mjs';
|
|
26
25
|
import { sql } from 'kysely';
|
|
27
26
|
|
|
28
27
|
function getWithHooks(adapter, ctx) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext, h as AuthContext } from './better-auth.
|
|
1
|
+
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext, h as AuthContext } from './better-auth.S3lnSz8Y.js';
|
|
2
2
|
import { Statements } from '../plugins/access/index.js';
|
|
3
3
|
import * as zod_v4_core from 'zod/v4/core';
|
|
4
4
|
import * as zod from 'zod';
|
|
@@ -184,8 +184,8 @@ declare const apiKeySchema: ({ timeWindow, rateLimitMax, }: {
|
|
|
184
184
|
required: false;
|
|
185
185
|
input: true;
|
|
186
186
|
transform: {
|
|
187
|
-
input(value: string | number | boolean |
|
|
188
|
-
output(value: string | number | boolean |
|
|
187
|
+
input(value: string | number | boolean | string[] | Date | number[] | null | undefined): string;
|
|
188
|
+
output(value: string | number | boolean | string[] | Date | number[] | null | undefined): any;
|
|
189
189
|
};
|
|
190
190
|
};
|
|
191
191
|
};
|
|
@@ -1894,8 +1894,8 @@ declare const apiKey: (options?: ApiKeyOptions) => {
|
|
|
1894
1894
|
required: false;
|
|
1895
1895
|
input: true;
|
|
1896
1896
|
transform: {
|
|
1897
|
-
input(value: string | number | boolean |
|
|
1898
|
-
output(value: string | number | boolean |
|
|
1897
|
+
input(value: string | number | boolean | string[] | Date | number[] | null | undefined): string;
|
|
1898
|
+
output(value: string | number | boolean | string[] | Date | number[] | null | undefined): any;
|
|
1899
1899
|
};
|
|
1900
1900
|
};
|
|
1901
1901
|
};
|
|
@@ -4,18 +4,17 @@ require('@better-auth/utils/random');
|
|
|
4
4
|
require('zod/v4');
|
|
5
5
|
require('better-call');
|
|
6
6
|
require('@better-auth/utils/hash');
|
|
7
|
-
require('@noble/ciphers/chacha');
|
|
8
|
-
require('@noble/ciphers/utils');
|
|
9
|
-
require('@noble/ciphers/webcrypto');
|
|
7
|
+
require('@noble/ciphers/chacha.js');
|
|
8
|
+
require('@noble/ciphers/utils.js');
|
|
10
9
|
require('@better-auth/utils/base64');
|
|
11
10
|
require('jose');
|
|
12
|
-
require('@noble/hashes/scrypt');
|
|
11
|
+
require('@noble/hashes/scrypt.js');
|
|
13
12
|
require('@better-auth/utils');
|
|
14
13
|
require('@better-auth/utils/hex');
|
|
15
|
-
require('@noble/hashes/utils');
|
|
14
|
+
require('@noble/hashes/utils.js');
|
|
16
15
|
require('./better-auth.CYeOI8C-.cjs');
|
|
17
16
|
const logger = require('./better-auth.B3274wGK.cjs');
|
|
18
|
-
const index = require('./better-auth.
|
|
17
|
+
const index = require('./better-auth.Szg-8evr.cjs');
|
|
19
18
|
|
|
20
19
|
const memoryAdapter = (db, config) => index.createAdapter({
|
|
21
20
|
config: {
|