better-auth 1.2.5-beta.7 → 1.2.5-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 +1 -1
- package/dist/adapters/drizzle-adapter/index.d.mts +1 -1
- package/dist/adapters/drizzle-adapter/index.d.ts +1 -1
- package/dist/adapters/kysely-adapter/index.d.cts +1 -1
- package/dist/adapters/kysely-adapter/index.d.mts +1 -1
- package/dist/adapters/kysely-adapter/index.d.ts +1 -1
- package/dist/adapters/memory-adapter/index.d.cts +1 -1
- package/dist/adapters/memory-adapter/index.d.mts +1 -1
- package/dist/adapters/memory-adapter/index.d.ts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.cts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.mts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.ts +1 -1
- package/dist/adapters/prisma-adapter/index.d.cts +1 -1
- package/dist/adapters/prisma-adapter/index.d.mts +1 -1
- package/dist/adapters/prisma-adapter/index.d.ts +1 -1
- package/dist/adapters/test.d.cts +1 -1
- package/dist/adapters/test.d.mts +1 -1
- package/dist/adapters/test.d.ts +1 -1
- package/dist/api/index.cjs +8 -4
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.mjs +9 -5
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/plugins/index.d.cts +2 -2
- package/dist/client/plugins/index.d.mts +2 -2
- package/dist/client/plugins/index.d.ts +2 -2
- package/dist/client/react/index.d.cts +1 -1
- package/dist/client/react/index.d.mts +1 -1
- package/dist/client/react/index.d.ts +1 -1
- package/dist/client/solid/index.d.cts +1 -1
- package/dist/client/solid/index.d.mts +1 -1
- package/dist/client/solid/index.d.ts +1 -1
- package/dist/client/svelte/index.d.cts +1 -1
- package/dist/client/svelte/index.d.mts +1 -1
- package/dist/client/svelte/index.d.ts +1 -1
- package/dist/client/vue/index.d.cts +1 -1
- package/dist/client/vue/index.d.mts +1 -1
- package/dist/client/vue/index.d.ts +1 -1
- package/dist/cookies/index.d.cts +1 -1
- package/dist/cookies/index.d.mts +1 -1
- package/dist/cookies/index.d.ts +1 -1
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/integrations/next-js.cjs +3 -3
- package/dist/integrations/next-js.d.cts +1 -1
- package/dist/integrations/next-js.d.mts +1 -1
- package/dist/integrations/next-js.d.ts +1 -1
- package/dist/integrations/next-js.mjs +3 -3
- package/dist/integrations/node.d.cts +1 -1
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/node.d.ts +1 -1
- package/dist/integrations/svelte-kit.d.cts +1 -1
- package/dist/integrations/svelte-kit.d.mts +1 -1
- package/dist/integrations/svelte-kit.d.ts +1 -1
- package/dist/oauth2/index.d.cts +2 -2
- package/dist/oauth2/index.d.mts +2 -2
- package/dist/oauth2/index.d.ts +2 -2
- package/dist/plugins/admin/index.cjs +2 -2
- package/dist/plugins/admin/index.d.cts +1 -1
- package/dist/plugins/admin/index.d.mts +1 -1
- package/dist/plugins/admin/index.d.ts +1 -1
- package/dist/plugins/admin/index.mjs +2 -2
- package/dist/plugins/anonymous/index.cjs +1 -1
- package/dist/plugins/anonymous/index.d.cts +1 -1
- package/dist/plugins/anonymous/index.d.mts +1 -1
- package/dist/plugins/anonymous/index.d.ts +1 -1
- package/dist/plugins/anonymous/index.mjs +1 -1
- package/dist/plugins/bearer/index.cjs +1 -1
- package/dist/plugins/bearer/index.d.cts +1 -1
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/bearer/index.d.ts +1 -1
- package/dist/plugins/bearer/index.mjs +1 -1
- package/dist/plugins/custom-session/index.cjs +1 -1
- package/dist/plugins/custom-session/index.d.cts +1 -1
- package/dist/plugins/custom-session/index.d.mts +1 -1
- package/dist/plugins/custom-session/index.d.ts +1 -1
- package/dist/plugins/custom-session/index.mjs +1 -1
- package/dist/plugins/email-otp/index.cjs +1 -1
- package/dist/plugins/email-otp/index.d.cts +1 -1
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.ts +1 -1
- package/dist/plugins/email-otp/index.mjs +1 -1
- package/dist/plugins/generic-oauth/index.cjs +1 -1
- package/dist/plugins/generic-oauth/index.d.cts +1 -1
- package/dist/plugins/generic-oauth/index.d.mts +1 -1
- package/dist/plugins/generic-oauth/index.d.ts +1 -1
- package/dist/plugins/generic-oauth/index.mjs +1 -1
- package/dist/plugins/index.cjs +4 -4
- package/dist/plugins/index.d.cts +2 -2
- package/dist/plugins/index.d.mts +2 -2
- package/dist/plugins/index.d.ts +2 -2
- package/dist/plugins/index.mjs +5 -5
- package/dist/plugins/jwt/index.cjs +1 -1
- package/dist/plugins/jwt/index.d.cts +1 -1
- package/dist/plugins/jwt/index.d.mts +1 -1
- package/dist/plugins/jwt/index.d.ts +1 -1
- package/dist/plugins/jwt/index.mjs +1 -1
- package/dist/plugins/magic-link/index.cjs +1 -1
- package/dist/plugins/magic-link/index.mjs +1 -1
- package/dist/plugins/multi-session/index.cjs +1 -1
- package/dist/plugins/multi-session/index.d.cts +1 -1
- package/dist/plugins/multi-session/index.d.mts +1 -1
- package/dist/plugins/multi-session/index.d.ts +1 -1
- package/dist/plugins/multi-session/index.mjs +1 -1
- package/dist/plugins/oauth-proxy/index.cjs +1 -1
- package/dist/plugins/oauth-proxy/index.d.cts +1 -1
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.d.ts +1 -1
- package/dist/plugins/oauth-proxy/index.mjs +1 -1
- package/dist/plugins/oidc-provider/index.cjs +1 -1
- package/dist/plugins/oidc-provider/index.d.cts +1 -1
- package/dist/plugins/oidc-provider/index.d.mts +1 -1
- package/dist/plugins/oidc-provider/index.d.ts +1 -1
- package/dist/plugins/oidc-provider/index.mjs +1 -1
- package/dist/plugins/one-tap/index.cjs +1 -1
- package/dist/plugins/one-tap/index.mjs +1 -1
- package/dist/plugins/open-api/index.cjs +1 -1
- package/dist/plugins/open-api/index.d.cts +1 -1
- package/dist/plugins/open-api/index.d.mts +1 -1
- package/dist/plugins/open-api/index.d.ts +1 -1
- package/dist/plugins/open-api/index.mjs +1 -1
- package/dist/plugins/organization/index.cjs +2 -2
- package/dist/plugins/organization/index.d.cts +1 -1
- package/dist/plugins/organization/index.d.mts +1 -1
- package/dist/plugins/organization/index.d.ts +1 -1
- package/dist/plugins/organization/index.mjs +2 -2
- package/dist/plugins/passkey/index.cjs +1 -1
- package/dist/plugins/passkey/index.d.cts +1 -1
- package/dist/plugins/passkey/index.d.mts +1 -1
- package/dist/plugins/passkey/index.d.ts +1 -1
- package/dist/plugins/passkey/index.mjs +1 -1
- package/dist/plugins/phone-number/index.cjs +1 -1
- package/dist/plugins/phone-number/index.d.cts +1 -1
- package/dist/plugins/phone-number/index.d.mts +1 -1
- package/dist/plugins/phone-number/index.d.ts +1 -1
- package/dist/plugins/phone-number/index.mjs +1 -1
- package/dist/plugins/sso/index.cjs +1 -1
- package/dist/plugins/sso/index.d.cts +1 -1
- package/dist/plugins/sso/index.d.mts +1 -1
- package/dist/plugins/sso/index.d.ts +1 -1
- package/dist/plugins/sso/index.mjs +1 -1
- package/dist/plugins/two-factor/index.cjs +2 -2
- package/dist/plugins/two-factor/index.d.cts +1 -1
- package/dist/plugins/two-factor/index.d.mts +1 -1
- package/dist/plugins/two-factor/index.d.ts +1 -1
- package/dist/plugins/two-factor/index.mjs +2 -2
- package/dist/plugins/username/index.cjs +1 -1
- package/dist/plugins/username/index.d.cts +1 -1
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/plugins/username/index.d.ts +1 -1
- package/dist/plugins/username/index.mjs +1 -1
- package/dist/shared/{better-auth.2fbYHU01.d.mts → better-auth.3uxCR-1i.d.ts} +2 -2
- package/dist/shared/{better-auth.vdKrG2Zp.mjs → better-auth.73eFuzj6.mjs} +7 -8
- package/dist/shared/{better-auth.UO_GAdaM.mjs → better-auth.BCV_xmAm.mjs} +2 -3
- package/dist/shared/{better-auth.1GtLBK1J.cjs → better-auth.BKKQIUTB.cjs} +2 -3
- package/dist/shared/{better-auth.CV08HOs_.d.ts → better-auth.Blj1xlkZ.d.mts} +2 -2
- package/dist/shared/{better-auth.CKCPM9Oy.mjs → better-auth.Bmxywnpb.mjs} +1 -1
- package/dist/shared/{better-auth.aci1hpij.cjs → better-auth.BpqrcwQV.cjs} +1 -1
- package/dist/shared/{better-auth.BjXInNL7.d.ts → better-auth.BrZtYPth.d.ts} +1 -1
- package/dist/shared/{better-auth.D_6ikAPh.d.mts → better-auth.Ci5pgoju.d.mts} +24 -24
- package/dist/shared/{better-auth.lijknCkI.mjs → better-auth.CroE2PB-.mjs} +1 -1
- package/dist/shared/{better-auth.B3unKFue.cjs → better-auth.D34f3UQF.cjs} +1 -1
- package/dist/shared/{better-auth.BODzPfJo.d.ts → better-auth.DPgLMy-i.d.ts} +24 -24
- package/dist/shared/{better-auth.C7O0617V.d.mts → better-auth.DXkSM8GQ.d.mts} +1 -1
- package/dist/shared/{better-auth.Al7ra9Pe.d.cts → better-auth.Ddyg4QNk.d.cts} +1 -1
- package/dist/shared/{better-auth.RZCibiKy.d.cts → better-auth.UATG5YO8.d.cts} +1 -1
- package/dist/shared/{better-auth.ChassmKE.cjs → better-auth.UNIWw9Sf.cjs} +7 -8
- package/dist/shared/{better-auth.BkL9ntGY.d.cts → better-auth.feQWZZzF.d.cts} +24 -24
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.
|
|
2
|
+
import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.feQWZZzF.cjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'better-call';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.
|
|
2
|
+
import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.Ci5pgoju.mjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'better-call';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.
|
|
2
|
+
import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.DPgLMy-i.js';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'better-call';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Db } from 'mongodb';
|
|
2
|
-
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
2
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.feQWZZzF.cjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'kysely';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Db } from 'mongodb';
|
|
2
|
-
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
2
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.Ci5pgoju.mjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'kysely';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Db } from 'mongodb';
|
|
2
|
-
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
2
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.DPgLMy-i.js';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'kysely';
|
package/dist/adapters/test.d.cts
CHANGED
package/dist/adapters/test.d.mts
CHANGED
package/dist/adapters/test.d.ts
CHANGED
package/dist/api/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
const account = require('../shared/better-auth.
|
|
4
|
+
const account = require('../shared/better-auth.UNIWw9Sf.cjs');
|
|
5
5
|
const zod = require('zod');
|
|
6
6
|
const cookies_index = require('../cookies/index.cjs');
|
|
7
7
|
const schema = require('../shared/better-auth.C5H9XEzZ.cjs');
|
|
@@ -298,7 +298,7 @@ function createDBStorage(ctx, modelName) {
|
|
|
298
298
|
try {
|
|
299
299
|
if (_update) {
|
|
300
300
|
await db.updateMany({
|
|
301
|
-
model:
|
|
301
|
+
model: "rateLimit",
|
|
302
302
|
where: [{ field: "key", value: key }],
|
|
303
303
|
update: {
|
|
304
304
|
count: value.count,
|
|
@@ -307,7 +307,7 @@ function createDBStorage(ctx, modelName) {
|
|
|
307
307
|
});
|
|
308
308
|
} else {
|
|
309
309
|
await db.create({
|
|
310
|
-
model:
|
|
310
|
+
model: "rateLimit",
|
|
311
311
|
data: {
|
|
312
312
|
key,
|
|
313
313
|
count: value.count,
|
|
@@ -360,7 +360,11 @@ async function onRequestRateLimit(req, ctx) {
|
|
|
360
360
|
);
|
|
361
361
|
let window = ctx.rateLimit.window;
|
|
362
362
|
let max = ctx.rateLimit.max;
|
|
363
|
-
const
|
|
363
|
+
const ip = getRequestIp.getIp(req, ctx.options);
|
|
364
|
+
if (!ip) {
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
const key = ip + path;
|
|
364
368
|
const specialRules = getDefaultSpecialRules();
|
|
365
369
|
const specialRule = specialRules.find((rule) => rule.pathMatcher(path));
|
|
366
370
|
if (specialRule) {
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
2
|
-
export { d as AuthEndpoint, e as AuthMiddleware, aE as callbackOAuth, a$ as changeEmail, aX as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aA as getEndpoints, aF as getSession, aG as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b7 as originCheck, b6 as originCheckMiddleware, aI as requestOnlySessionMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aB as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aH as sessionMiddleware, aY as setPassword, aD as signInEmail, aC as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { d as AuthEndpoint, e as AuthMiddleware, aE as callbackOAuth, a$ as changeEmail, aX as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aA as getEndpoints, aF as getSession, aG as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b7 as originCheck, b6 as originCheckMiddleware, aI as requestOnlySessionMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aB as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aH as sessionMiddleware, aY as setPassword, aD as signInEmail, aC as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from '../shared/better-auth.feQWZZzF.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'kysely';
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
2
|
-
export { d as AuthEndpoint, e as AuthMiddleware, aE as callbackOAuth, a$ as changeEmail, aX as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aA as getEndpoints, aF as getSession, aG as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b7 as originCheck, b6 as originCheckMiddleware, aI as requestOnlySessionMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aB as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aH as sessionMiddleware, aY as setPassword, aD as signInEmail, aC as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { d as AuthEndpoint, e as AuthMiddleware, aE as callbackOAuth, a$ as changeEmail, aX as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aA as getEndpoints, aF as getSession, aG as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b7 as originCheck, b6 as originCheckMiddleware, aI as requestOnlySessionMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aB as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aH as sessionMiddleware, aY as setPassword, aD as signInEmail, aC as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from '../shared/better-auth.Ci5pgoju.mjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'kysely';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.Bi8FQwDD.js';
|
|
2
|
-
export { d as AuthEndpoint, e as AuthMiddleware, aE as callbackOAuth, a$ as changeEmail, aX as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aA as getEndpoints, aF as getSession, aG as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b7 as originCheck, b6 as originCheckMiddleware, aI as requestOnlySessionMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aB as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aH as sessionMiddleware, aY as setPassword, aD as signInEmail, aC as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { d as AuthEndpoint, e as AuthMiddleware, aE as callbackOAuth, a$ as changeEmail, aX as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aA as getEndpoints, aF as getSession, aG as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b7 as originCheck, b6 as originCheckMiddleware, aI as requestOnlySessionMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aB as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aH as sessionMiddleware, aY as setPassword, aD as signInEmail, aC as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from '../shared/better-auth.DPgLMy-i.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'kysely';
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIError, toResponse, createRouter } from 'better-call';
|
|
2
2
|
export { APIError } from 'better-call';
|
|
3
|
-
import { a as createAuthEndpoint, B as BASE_ERROR_CODES, d as createEmailVerificationToken, w as wildcardMatch, l as listSessions, u as updateUser, e as getSession, i as originCheckMiddleware, j as error, k as ok, m as unlinkAccount, n as deleteUserCallback, p as listUserAccounts, q as linkSocialAccount, r as revokeOtherSessions, t as revokeSessions, v as revokeSession, x as forgetPasswordCallback, y as deleteUser, z as setPassword, A as changePassword, C as changeEmail, D as sendVerificationEmail, E as verifyEmail, F as resetPassword, G as forgetPassword, I as signInEmail, J as signOut, K as callbackOAuth, L as signInSocial } from '../shared/better-auth.
|
|
4
|
-
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx, N as optionsMiddleware, o as originCheck, M as requestOnlySessionMiddleware, b as sendVerificationEmailFn, s as sessionMiddleware } from '../shared/better-auth.
|
|
3
|
+
import { a as createAuthEndpoint, B as BASE_ERROR_CODES, d as createEmailVerificationToken, w as wildcardMatch, l as listSessions, u as updateUser, e as getSession, i as originCheckMiddleware, j as error, k as ok, m as unlinkAccount, n as deleteUserCallback, p as listUserAccounts, q as linkSocialAccount, r as revokeOtherSessions, t as revokeSessions, v as revokeSession, x as forgetPasswordCallback, y as deleteUser, z as setPassword, A as changePassword, C as changeEmail, D as sendVerificationEmail, E as verifyEmail, F as resetPassword, G as forgetPassword, I as signInEmail, J as signOut, K as callbackOAuth, L as signInSocial } from '../shared/better-auth.73eFuzj6.mjs';
|
|
4
|
+
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx, N as optionsMiddleware, o as originCheck, M as requestOnlySessionMiddleware, b as sendVerificationEmailFn, s as sessionMiddleware } from '../shared/better-auth.73eFuzj6.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { setSessionCookie } from '../cookies/index.mjs';
|
|
7
7
|
import { f as parseUserInput } from '../shared/better-auth.CepcSj5H.mjs';
|
|
@@ -294,7 +294,7 @@ function createDBStorage(ctx, modelName) {
|
|
|
294
294
|
try {
|
|
295
295
|
if (_update) {
|
|
296
296
|
await db.updateMany({
|
|
297
|
-
model:
|
|
297
|
+
model: "rateLimit",
|
|
298
298
|
where: [{ field: "key", value: key }],
|
|
299
299
|
update: {
|
|
300
300
|
count: value.count,
|
|
@@ -303,7 +303,7 @@ function createDBStorage(ctx, modelName) {
|
|
|
303
303
|
});
|
|
304
304
|
} else {
|
|
305
305
|
await db.create({
|
|
306
|
-
model:
|
|
306
|
+
model: "rateLimit",
|
|
307
307
|
data: {
|
|
308
308
|
key,
|
|
309
309
|
count: value.count,
|
|
@@ -356,7 +356,11 @@ async function onRequestRateLimit(req, ctx) {
|
|
|
356
356
|
);
|
|
357
357
|
let window = ctx.rateLimit.window;
|
|
358
358
|
let max = ctx.rateLimit.max;
|
|
359
|
-
const
|
|
359
|
+
const ip = getIp(req, ctx.options);
|
|
360
|
+
if (!ip) {
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
const key = ip + path;
|
|
360
364
|
const specialRules = getDefaultSpecialRules();
|
|
361
365
|
const specialRule = specialRules.find((rule) => rule.pathMatcher(path));
|
|
362
366
|
if (specialRule) {
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as BASE_ERROR_CODES, B as BetterAuthPlugin } from '../shared/better-auth.
|
|
1
|
+
import { h as BASE_ERROR_CODES, B as BetterAuthPlugin } from '../shared/better-auth.feQWZZzF.cjs';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as BASE_ERROR_CODES, B as BetterAuthPlugin } from '../shared/better-auth.
|
|
1
|
+
import { h as BASE_ERROR_CODES, B as BetterAuthPlugin } from '../shared/better-auth.Ci5pgoju.mjs';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as BASE_ERROR_CODES, B as BetterAuthPlugin } from '../shared/better-auth.
|
|
1
|
+
import { h as BASE_ERROR_CODES, B as BetterAuthPlugin } from '../shared/better-auth.DPgLMy-i.js';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
@@ -11,7 +11,7 @@ export { twoFactorClient } from '../../plugins/two-factor/index.cjs';
|
|
|
11
11
|
import { magicLink } from '../../plugins/magic-link/index.cjs';
|
|
12
12
|
import { phoneNumber } from '../../plugins/phone-number/index.cjs';
|
|
13
13
|
import { anonymous } from '../../plugins/anonymous/index.cjs';
|
|
14
|
-
import { T as FieldAttribute, f as BetterAuthOptions, B as BetterAuthPlugin } from '../../shared/better-auth.
|
|
14
|
+
import { T as FieldAttribute, f as BetterAuthOptions, B as BetterAuthPlugin } from '../../shared/better-auth.feQWZZzF.cjs';
|
|
15
15
|
import { admin } from '../../plugins/admin/index.cjs';
|
|
16
16
|
import { genericOAuth } from '../../plugins/generic-oauth/index.cjs';
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.cjs';
|
|
@@ -20,7 +20,7 @@ import { emailOTP } from '../../plugins/email-otp/index.cjs';
|
|
|
20
20
|
import { Store } from '../../types/index.cjs';
|
|
21
21
|
import { sso } from '../../plugins/sso/index.cjs';
|
|
22
22
|
import { oidcProvider } from '../../plugins/oidc-provider/index.cjs';
|
|
23
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
23
|
+
import { a as apiKey } from '../../shared/better-auth.Ddyg4QNk.cjs';
|
|
24
24
|
export * from '@simplewebauthn/server';
|
|
25
25
|
import 'zod';
|
|
26
26
|
import 'better-call';
|
|
@@ -11,7 +11,7 @@ export { twoFactorClient } from '../../plugins/two-factor/index.mjs';
|
|
|
11
11
|
import { magicLink } from '../../plugins/magic-link/index.mjs';
|
|
12
12
|
import { phoneNumber } from '../../plugins/phone-number/index.mjs';
|
|
13
13
|
import { anonymous } from '../../plugins/anonymous/index.mjs';
|
|
14
|
-
import { T as FieldAttribute, f as BetterAuthOptions, B as BetterAuthPlugin } from '../../shared/better-auth.
|
|
14
|
+
import { T as FieldAttribute, f as BetterAuthOptions, B as BetterAuthPlugin } from '../../shared/better-auth.Ci5pgoju.mjs';
|
|
15
15
|
import { admin } from '../../plugins/admin/index.mjs';
|
|
16
16
|
import { genericOAuth } from '../../plugins/generic-oauth/index.mjs';
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.mjs';
|
|
@@ -20,7 +20,7 @@ import { emailOTP } from '../../plugins/email-otp/index.mjs';
|
|
|
20
20
|
import { Store } from '../../types/index.mjs';
|
|
21
21
|
import { sso } from '../../plugins/sso/index.mjs';
|
|
22
22
|
import { oidcProvider } from '../../plugins/oidc-provider/index.mjs';
|
|
23
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
23
|
+
import { a as apiKey } from '../../shared/better-auth.Blj1xlkZ.mjs';
|
|
24
24
|
export * from '@simplewebauthn/server';
|
|
25
25
|
import 'zod';
|
|
26
26
|
import 'better-call';
|
|
@@ -11,7 +11,7 @@ export { twoFactorClient } from '../../plugins/two-factor/index.js';
|
|
|
11
11
|
import { magicLink } from '../../plugins/magic-link/index.js';
|
|
12
12
|
import { phoneNumber } from '../../plugins/phone-number/index.js';
|
|
13
13
|
import { anonymous } from '../../plugins/anonymous/index.js';
|
|
14
|
-
import { T as FieldAttribute, f as BetterAuthOptions, B as BetterAuthPlugin } from '../../shared/better-auth.
|
|
14
|
+
import { T as FieldAttribute, f as BetterAuthOptions, B as BetterAuthPlugin } from '../../shared/better-auth.DPgLMy-i.js';
|
|
15
15
|
import { admin } from '../../plugins/admin/index.js';
|
|
16
16
|
import { genericOAuth } from '../../plugins/generic-oauth/index.js';
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.js';
|
|
@@ -20,7 +20,7 @@ import { emailOTP } from '../../plugins/email-otp/index.js';
|
|
|
20
20
|
import { Store } from '../../types/index.js';
|
|
21
21
|
import { sso } from '../../plugins/sso/index.js';
|
|
22
22
|
import { oidcProvider } from '../../plugins/oidc-provider/index.js';
|
|
23
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
23
|
+
import { a as apiKey } from '../../shared/better-auth.3uxCR-1i.js';
|
|
24
24
|
export * from '@simplewebauthn/server';
|
|
25
25
|
import 'zod';
|
|
26
26
|
import 'better-call';
|
|
@@ -7,7 +7,7 @@ export * from '@better-fetch/fetch';
|
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.feQWZZzF.cjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import 'kysely';
|
|
@@ -7,7 +7,7 @@ export * from '@better-fetch/fetch';
|
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.Ci5pgoju.mjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import 'kysely';
|
|
@@ -7,7 +7,7 @@ export * from '@better-fetch/fetch';
|
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.DPgLMy-i.js';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import 'kysely';
|
|
@@ -4,7 +4,7 @@ export * from '@better-fetch/fetch';
|
|
|
4
4
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
7
|
-
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.feQWZZzF.cjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
@@ -4,7 +4,7 @@ export * from '@better-fetch/fetch';
|
|
|
4
4
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
7
|
-
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.Ci5pgoju.mjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
@@ -4,7 +4,7 @@ export * from '@better-fetch/fetch';
|
|
|
4
4
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
7
|
-
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.DPgLMy-i.js';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
@@ -6,7 +6,7 @@ import { BetterFetchError } from '@better-fetch/fetch';
|
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
9
|
-
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.feQWZZzF.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'kysely';
|
|
@@ -6,7 +6,7 @@ import { BetterFetchError } from '@better-fetch/fetch';
|
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
9
|
-
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.Ci5pgoju.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'kysely';
|
|
@@ -6,7 +6,7 @@ import { BetterFetchError } from '@better-fetch/fetch';
|
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
9
|
-
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.DPgLMy-i.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'kysely';
|
|
@@ -6,7 +6,7 @@ export * from '@better-fetch/fetch';
|
|
|
6
6
|
import { DeepReadonly, Ref } from 'vue';
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
9
|
-
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.feQWZZzF.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'kysely';
|
|
@@ -6,7 +6,7 @@ export * from '@better-fetch/fetch';
|
|
|
6
6
|
import { DeepReadonly, Ref } from 'vue';
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
9
|
-
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.Ci5pgoju.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'kysely';
|
|
@@ -6,7 +6,7 @@ export * from '@better-fetch/fetch';
|
|
|
6
6
|
import { DeepReadonly, Ref } from 'vue';
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
9
|
-
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { h as BASE_ERROR_CODES } from '../../shared/better-auth.DPgLMy-i.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'kysely';
|
package/dist/cookies/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { aq as BetterAuthCookies, av as EligibleCookies, ao as createCookieGetter, at as deleteSessionCookie, ax as getCookieCache, ap as getCookies, aw as getSessionCookie, au as parseCookies, ay as parseSetCookieHeader, ar as setCookieCache, az as setCookieToHeader, as as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { aq as BetterAuthCookies, av as EligibleCookies, ao as createCookieGetter, at as deleteSessionCookie, ax as getCookieCache, ap as getCookies, aw as getSessionCookie, au as parseCookies, ay as parseSetCookieHeader, ar as setCookieCache, az as setCookieToHeader, as as setSessionCookie } from '../shared/better-auth.feQWZZzF.cjs';
|
|
3
3
|
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'kysely';
|
package/dist/cookies/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { aq as BetterAuthCookies, av as EligibleCookies, ao as createCookieGetter, at as deleteSessionCookie, ax as getCookieCache, ap as getCookies, aw as getSessionCookie, au as parseCookies, ay as parseSetCookieHeader, ar as setCookieCache, az as setCookieToHeader, as as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { aq as BetterAuthCookies, av as EligibleCookies, ao as createCookieGetter, at as deleteSessionCookie, ax as getCookieCache, ap as getCookies, aw as getSessionCookie, au as parseCookies, ay as parseSetCookieHeader, ar as setCookieCache, az as setCookieToHeader, as as setSessionCookie } from '../shared/better-auth.Ci5pgoju.mjs';
|
|
3
3
|
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'kysely';
|
package/dist/cookies/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { aq as BetterAuthCookies, av as EligibleCookies, ao as createCookieGetter, at as deleteSessionCookie, ax as getCookieCache, ap as getCookies, aw as getSessionCookie, au as parseCookies, ay as parseSetCookieHeader, ar as setCookieCache, az as setCookieToHeader, as as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { aq as BetterAuthCookies, av as EligibleCookies, ao as createCookieGetter, at as deleteSessionCookie, ax as getCookieCache, ap as getCookies, aw as getSessionCookie, au as parseCookies, ay as parseSetCookieHeader, ar as setCookieCache, az as setCookieToHeader, as as setSessionCookie } from '../shared/better-auth.DPgLMy-i.js';
|
|
3
3
|
import '../shared/better-auth.Bi8FQwDD.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'kysely';
|
package/dist/db/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Adapter, f as BetterAuthOptions, G as GenericEndpointContext, W as Where, T as FieldAttribute, X as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { a7 as BetterAuthDbSchema, _ as FieldAttributeConfig, a6 as InferFieldsFromOptions, a5 as InferFieldsFromPlugins, a2 as InferFieldsInput, a3 as InferFieldsInputClient, a1 as InferFieldsOutput, a0 as InferValueType, Z as InternalAdapter, a4 as PluginFieldAttribute, a9 as accountSchema, $ as createFieldAttribute, Y as createInternalAdapter, ae as getAllFields, a8 as getAuthTables, an as mergeSchema, al as parseAccountInput, ag as parseAccountOutput, ak as parseAdditionalUserInput, ai as parseInputData, ad as parseOutputData, am as parseSessionInput, ah as parseSessionOutput, aj as parseUserInput, af as parseUserOutput, ab as sessionSchema, aa as userSchema, ac as verificationSchema } from '../shared/better-auth.
|
|
1
|
+
import { g as Adapter, f as BetterAuthOptions, G as GenericEndpointContext, W as Where, T as FieldAttribute, X as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.feQWZZzF.cjs';
|
|
2
|
+
export { a7 as BetterAuthDbSchema, _ as FieldAttributeConfig, a6 as InferFieldsFromOptions, a5 as InferFieldsFromPlugins, a2 as InferFieldsInput, a3 as InferFieldsInputClient, a1 as InferFieldsOutput, a0 as InferValueType, Z as InternalAdapter, a4 as PluginFieldAttribute, a9 as accountSchema, $ as createFieldAttribute, Y as createInternalAdapter, ae as getAllFields, a8 as getAuthTables, an as mergeSchema, al as parseAccountInput, ag as parseAccountOutput, ak as parseAdditionalUserInput, ai as parseInputData, ad as parseOutputData, am as parseSessionInput, ah as parseSessionOutput, aj as parseUserInput, af as parseUserOutput, ab as sessionSchema, aa as userSchema, ac as verificationSchema } from '../shared/better-auth.feQWZZzF.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
5
5
|
import 'kysely';
|
package/dist/db/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Adapter, f as BetterAuthOptions, G as GenericEndpointContext, W as Where, T as FieldAttribute, X as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { a7 as BetterAuthDbSchema, _ as FieldAttributeConfig, a6 as InferFieldsFromOptions, a5 as InferFieldsFromPlugins, a2 as InferFieldsInput, a3 as InferFieldsInputClient, a1 as InferFieldsOutput, a0 as InferValueType, Z as InternalAdapter, a4 as PluginFieldAttribute, a9 as accountSchema, $ as createFieldAttribute, Y as createInternalAdapter, ae as getAllFields, a8 as getAuthTables, an as mergeSchema, al as parseAccountInput, ag as parseAccountOutput, ak as parseAdditionalUserInput, ai as parseInputData, ad as parseOutputData, am as parseSessionInput, ah as parseSessionOutput, aj as parseUserInput, af as parseUserOutput, ab as sessionSchema, aa as userSchema, ac as verificationSchema } from '../shared/better-auth.
|
|
1
|
+
import { g as Adapter, f as BetterAuthOptions, G as GenericEndpointContext, W as Where, T as FieldAttribute, X as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.Ci5pgoju.mjs';
|
|
2
|
+
export { a7 as BetterAuthDbSchema, _ as FieldAttributeConfig, a6 as InferFieldsFromOptions, a5 as InferFieldsFromPlugins, a2 as InferFieldsInput, a3 as InferFieldsInputClient, a1 as InferFieldsOutput, a0 as InferValueType, Z as InternalAdapter, a4 as PluginFieldAttribute, a9 as accountSchema, $ as createFieldAttribute, Y as createInternalAdapter, ae as getAllFields, a8 as getAuthTables, an as mergeSchema, al as parseAccountInput, ag as parseAccountOutput, ak as parseAdditionalUserInput, ai as parseInputData, ad as parseOutputData, am as parseSessionInput, ah as parseSessionOutput, aj as parseUserInput, af as parseUserOutput, ab as sessionSchema, aa as userSchema, ac as verificationSchema } from '../shared/better-auth.Ci5pgoju.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
5
5
|
import 'kysely';
|
package/dist/db/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Adapter, f as BetterAuthOptions, G as GenericEndpointContext, W as Where, T as FieldAttribute, X as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { a7 as BetterAuthDbSchema, _ as FieldAttributeConfig, a6 as InferFieldsFromOptions, a5 as InferFieldsFromPlugins, a2 as InferFieldsInput, a3 as InferFieldsInputClient, a1 as InferFieldsOutput, a0 as InferValueType, Z as InternalAdapter, a4 as PluginFieldAttribute, a9 as accountSchema, $ as createFieldAttribute, Y as createInternalAdapter, ae as getAllFields, a8 as getAuthTables, an as mergeSchema, al as parseAccountInput, ag as parseAccountOutput, ak as parseAdditionalUserInput, ai as parseInputData, ad as parseOutputData, am as parseSessionInput, ah as parseSessionOutput, aj as parseUserInput, af as parseUserOutput, ab as sessionSchema, aa as userSchema, ac as verificationSchema } from '../shared/better-auth.
|
|
1
|
+
import { g as Adapter, f as BetterAuthOptions, G as GenericEndpointContext, W as Where, T as FieldAttribute, X as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.DPgLMy-i.js';
|
|
2
|
+
export { a7 as BetterAuthDbSchema, _ as FieldAttributeConfig, a6 as InferFieldsFromOptions, a5 as InferFieldsFromPlugins, a2 as InferFieldsInput, a3 as InferFieldsInputClient, a1 as InferFieldsOutput, a0 as InferValueType, Z as InternalAdapter, a4 as PluginFieldAttribute, a9 as accountSchema, $ as createFieldAttribute, Y as createInternalAdapter, ae as getAllFields, a8 as getAuthTables, an as mergeSchema, al as parseAccountInput, ag as parseAccountOutput, ak as parseAdditionalUserInput, ai as parseInputData, ad as parseOutputData, am as parseSessionInput, ah as parseSessionOutput, aj as parseUserInput, af as parseUserOutput, ab as sessionSchema, aa as userSchema, ac as verificationSchema } from '../shared/better-auth.DPgLMy-i.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import '../shared/better-auth.Bi8FQwDD.js';
|
|
5
5
|
import 'kysely';
|
package/dist/index.cjs
CHANGED
|
@@ -23,7 +23,7 @@ const env = require('./shared/better-auth.DiSjtgs9.cjs');
|
|
|
23
23
|
const password$1 = require('./shared/better-auth.CDXNofOe.cjs');
|
|
24
24
|
const url = require('./shared/better-auth.C-R0J0n1.cjs');
|
|
25
25
|
const index = require('./shared/better-auth.ANpbi45u.cjs');
|
|
26
|
-
const account = require('./shared/better-auth.
|
|
26
|
+
const account = require('./shared/better-auth.UNIWw9Sf.cjs');
|
|
27
27
|
const misc = require('./shared/better-auth.BLDOwz3i.cjs');
|
|
28
28
|
const state = require('./shared/better-auth.QbbyHMYf.cjs');
|
|
29
29
|
require('./shared/better-auth.i9-25Ul9.cjs');
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { u as Account, g as Adapter, x as AdapterInstance, w as AdapterSchemaCreation, r as AdditionalSessionFieldsInput, s as AdditionalSessionFieldsOutput, p as AdditionalUserFieldsInput, q as AdditionalUserFieldsOutput, i as Auth, l as AuthContext, A as AuthPluginSchema, f as BetterAuthOptions, B as BetterAuthPlugin, z as FilterActions, F as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, D as InferAPI, I as InferOptionSchema, a as InferPluginErrorCodes, t as InferPluginTypes, k as InferSession, C as InferSessionAPI, j as InferUser, O as LogHandlerParams, L as LogLevel, N as Logger, M as Models, R as RateLimit, y as SecondaryStorage, S as Session, U as User, V as Verification, W as Where, m as WithJsDoc, n as betterAuth, P as createLogger, v as init, E as levels, Q as logger, J as shouldPublishLog } from './shared/better-auth.
|
|
1
|
+
export { u as Account, g as Adapter, x as AdapterInstance, w as AdapterSchemaCreation, r as AdditionalSessionFieldsInput, s as AdditionalSessionFieldsOutput, p as AdditionalUserFieldsInput, q as AdditionalUserFieldsOutput, i as Auth, l as AuthContext, A as AuthPluginSchema, f as BetterAuthOptions, B as BetterAuthPlugin, z as FilterActions, F as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, D as InferAPI, I as InferOptionSchema, a as InferPluginErrorCodes, t as InferPluginTypes, k as InferSession, C as InferSessionAPI, j as InferUser, O as LogHandlerParams, L as LogLevel, N as Logger, M as Models, R as RateLimit, y as SecondaryStorage, S as Session, U as User, V as Verification, W as Where, m as WithJsDoc, n as betterAuth, P as createLogger, v as init, E as levels, Q as logger, J as shouldPublishLog } from './shared/better-auth.feQWZZzF.cjs';
|
|
2
2
|
export { AtomListener, BetterAuthClientPlugin, ClientOptions, InferActions, InferAdditionalFromClient, InferClientAPI, InferErrorCodes, InferPluginsFromClient, InferSessionFromClient, InferUserFromClient, IsSignal, Store } from './types/index.cjs';
|
|
3
3
|
export { H as HIDE_METADATA } from './shared/better-auth.DEHJp1rk.cjs';
|
|
4
|
-
export { g as generateState, p as parseState } from './shared/better-auth.
|
|
4
|
+
export { g as generateState, p as parseState } from './shared/better-auth.UATG5YO8.cjs';
|
|
5
5
|
export * from 'better-call';
|
|
6
6
|
export * from 'zod';
|
|
7
7
|
export { D as DeepPartial, E as Expand, H as HasRequiredKeys, a as LiteralNumber, L as LiteralString, d as LiteralUnion, O as OmitId, c as PreserveJSDoc, b as Prettify, P as PrettifyDeep, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './shared/better-auth.Bi8FQwDD.cjs';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { u as Account, g as Adapter, x as AdapterInstance, w as AdapterSchemaCreation, r as AdditionalSessionFieldsInput, s as AdditionalSessionFieldsOutput, p as AdditionalUserFieldsInput, q as AdditionalUserFieldsOutput, i as Auth, l as AuthContext, A as AuthPluginSchema, f as BetterAuthOptions, B as BetterAuthPlugin, z as FilterActions, F as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, D as InferAPI, I as InferOptionSchema, a as InferPluginErrorCodes, t as InferPluginTypes, k as InferSession, C as InferSessionAPI, j as InferUser, O as LogHandlerParams, L as LogLevel, N as Logger, M as Models, R as RateLimit, y as SecondaryStorage, S as Session, U as User, V as Verification, W as Where, m as WithJsDoc, n as betterAuth, P as createLogger, v as init, E as levels, Q as logger, J as shouldPublishLog } from './shared/better-auth.
|
|
1
|
+
export { u as Account, g as Adapter, x as AdapterInstance, w as AdapterSchemaCreation, r as AdditionalSessionFieldsInput, s as AdditionalSessionFieldsOutput, p as AdditionalUserFieldsInput, q as AdditionalUserFieldsOutput, i as Auth, l as AuthContext, A as AuthPluginSchema, f as BetterAuthOptions, B as BetterAuthPlugin, z as FilterActions, F as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, D as InferAPI, I as InferOptionSchema, a as InferPluginErrorCodes, t as InferPluginTypes, k as InferSession, C as InferSessionAPI, j as InferUser, O as LogHandlerParams, L as LogLevel, N as Logger, M as Models, R as RateLimit, y as SecondaryStorage, S as Session, U as User, V as Verification, W as Where, m as WithJsDoc, n as betterAuth, P as createLogger, v as init, E as levels, Q as logger, J as shouldPublishLog } from './shared/better-auth.Ci5pgoju.mjs';
|
|
2
2
|
export { AtomListener, BetterAuthClientPlugin, ClientOptions, InferActions, InferAdditionalFromClient, InferClientAPI, InferErrorCodes, InferPluginsFromClient, InferSessionFromClient, InferUserFromClient, IsSignal, Store } from './types/index.mjs';
|
|
3
3
|
export { H as HIDE_METADATA } from './shared/better-auth.DEHJp1rk.mjs';
|
|
4
|
-
export { g as generateState, p as parseState } from './shared/better-auth.
|
|
4
|
+
export { g as generateState, p as parseState } from './shared/better-auth.DXkSM8GQ.mjs';
|
|
5
5
|
export * from 'better-call';
|
|
6
6
|
export * from 'zod';
|
|
7
7
|
export { D as DeepPartial, E as Expand, H as HasRequiredKeys, a as LiteralNumber, L as LiteralString, d as LiteralUnion, O as OmitId, c as PreserveJSDoc, b as Prettify, P as PrettifyDeep, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './shared/better-auth.Bi8FQwDD.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { u as Account, g as Adapter, x as AdapterInstance, w as AdapterSchemaCreation, r as AdditionalSessionFieldsInput, s as AdditionalSessionFieldsOutput, p as AdditionalUserFieldsInput, q as AdditionalUserFieldsOutput, i as Auth, l as AuthContext, A as AuthPluginSchema, f as BetterAuthOptions, B as BetterAuthPlugin, z as FilterActions, F as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, D as InferAPI, I as InferOptionSchema, a as InferPluginErrorCodes, t as InferPluginTypes, k as InferSession, C as InferSessionAPI, j as InferUser, O as LogHandlerParams, L as LogLevel, N as Logger, M as Models, R as RateLimit, y as SecondaryStorage, S as Session, U as User, V as Verification, W as Where, m as WithJsDoc, n as betterAuth, P as createLogger, v as init, E as levels, Q as logger, J as shouldPublishLog } from './shared/better-auth.
|
|
1
|
+
export { u as Account, g as Adapter, x as AdapterInstance, w as AdapterSchemaCreation, r as AdditionalSessionFieldsInput, s as AdditionalSessionFieldsOutput, p as AdditionalUserFieldsInput, q as AdditionalUserFieldsOutput, i as Auth, l as AuthContext, A as AuthPluginSchema, f as BetterAuthOptions, B as BetterAuthPlugin, z as FilterActions, F as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, D as InferAPI, I as InferOptionSchema, a as InferPluginErrorCodes, t as InferPluginTypes, k as InferSession, C as InferSessionAPI, j as InferUser, O as LogHandlerParams, L as LogLevel, N as Logger, M as Models, R as RateLimit, y as SecondaryStorage, S as Session, U as User, V as Verification, W as Where, m as WithJsDoc, n as betterAuth, P as createLogger, v as init, E as levels, Q as logger, J as shouldPublishLog } from './shared/better-auth.DPgLMy-i.js';
|
|
2
2
|
export { AtomListener, BetterAuthClientPlugin, ClientOptions, InferActions, InferAdditionalFromClient, InferClientAPI, InferErrorCodes, InferPluginsFromClient, InferSessionFromClient, InferUserFromClient, IsSignal, Store } from './types/index.js';
|
|
3
3
|
export { H as HIDE_METADATA } from './shared/better-auth.DEHJp1rk.js';
|
|
4
|
-
export { g as generateState, p as parseState } from './shared/better-auth.
|
|
4
|
+
export { g as generateState, p as parseState } from './shared/better-auth.BrZtYPth.js';
|
|
5
5
|
export * from 'better-call';
|
|
6
6
|
export * from 'zod';
|
|
7
7
|
export { D as DeepPartial, E as Expand, H as HasRequiredKeys, a as LiteralNumber, L as LiteralString, d as LiteralUnion, O as OmitId, c as PreserveJSDoc, b as Prettify, P as PrettifyDeep, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './shared/better-auth.Bi8FQwDD.js';
|
package/dist/index.mjs
CHANGED
|
@@ -23,8 +23,8 @@ import { c as checkPassword } from './shared/better-auth.YwDQhoPc.mjs';
|
|
|
23
23
|
import { a as getBaseURL, g as getOrigin } from './shared/better-auth.VTXNLFMT.mjs';
|
|
24
24
|
import { B as BetterAuthError } from './shared/better-auth.DdzSJf-n.mjs';
|
|
25
25
|
export { M as MissingDependencyError } from './shared/better-auth.DdzSJf-n.mjs';
|
|
26
|
-
import { B as BASE_ERROR_CODES } from './shared/better-auth.
|
|
27
|
-
export { H as HIDE_METADATA } from './shared/better-auth.
|
|
26
|
+
import { B as BASE_ERROR_CODES } from './shared/better-auth.73eFuzj6.mjs';
|
|
27
|
+
export { H as HIDE_METADATA } from './shared/better-auth.73eFuzj6.mjs';
|
|
28
28
|
export { c as capitalizeFirstLetter } from './shared/better-auth.D-2CmEwz.mjs';
|
|
29
29
|
export { g as generateState, p as parseState } from './shared/better-auth.BdyOG_p4.mjs';
|
|
30
30
|
import './shared/better-auth.DZGc_87_.mjs';
|