better-auth 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/drizzle-adapter/index.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/index.d.cts +2 -2
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/index.d.ts +2 -2
- 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 +3 -3
- 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 +3 -3
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.mts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/plugins/index.d.cts +3 -3
- package/dist/client/plugins/index.d.mts +3 -3
- package/dist/client/plugins/index.d.ts +3 -3
- package/dist/client/react/index.d.cts +8 -8
- package/dist/client/react/index.d.mts +8 -8
- package/dist/client/react/index.d.ts +8 -8
- package/dist/client/solid/index.d.cts +8 -8
- package/dist/client/solid/index.d.mts +8 -8
- package/dist/client/solid/index.d.ts +8 -8
- package/dist/client/svelte/index.d.cts +2 -2
- package/dist/client/svelte/index.d.mts +2 -2
- package/dist/client/svelte/index.d.ts +2 -2
- package/dist/client/vue/index.d.cts +2 -2
- package/dist/client/vue/index.d.mts +2 -2
- package/dist/client/vue/index.d.ts +2 -2
- 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.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +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/node.d.cts +1 -1
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/node.d.ts +1 -1
- package/dist/integrations/react-start.d.cts +1 -1
- package/dist/integrations/react-start.d.mts +1 -1
- package/dist/integrations/react-start.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.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/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/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/captcha/index.d.cts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.ts +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/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/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/haveibeenpwned/index.d.cts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.ts +1 -1
- package/dist/plugins/index.cjs +4 -3
- package/dist/plugins/index.d.cts +5 -5
- package/dist/plugins/index.d.mts +5 -5
- package/dist/plugins/index.d.ts +5 -5
- package/dist/plugins/index.mjs +4 -4
- package/dist/plugins/jwt/index.cjs +294 -11
- package/dist/plugins/jwt/index.d.cts +4 -2
- package/dist/plugins/jwt/index.d.mts +4 -2
- package/dist/plugins/jwt/index.d.ts +4 -2
- package/dist/plugins/jwt/index.mjs +295 -9
- 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/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/oidc-provider/index.cjs +2 -2
- package/dist/plugins/oidc-provider/index.d.cts +5 -5
- package/dist/plugins/oidc-provider/index.d.mts +5 -5
- package/dist/plugins/oidc-provider/index.d.ts +5 -5
- package/dist/plugins/oidc-provider/index.mjs +2 -2
- package/dist/plugins/one-time-token/index.d.cts +1 -1
- package/dist/plugins/one-time-token/index.d.mts +1 -1
- package/dist/plugins/one-time-token/index.d.ts +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/organization/index.cjs +1 -1
- package/dist/plugins/organization/index.d.cts +6 -5
- package/dist/plugins/organization/index.d.mts +6 -5
- package/dist/plugins/organization/index.d.ts +6 -5
- package/dist/plugins/organization/index.mjs +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/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/sso/index.d.cts +3 -3
- package/dist/plugins/sso/index.d.mts +3 -3
- package/dist/plugins/sso/index.d.ts +3 -3
- 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/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/shared/{better-auth.B1VHvePI.d.mts → better-auth.B36j7OCI.d.mts} +1 -1
- package/dist/shared/{better-auth.BXW4aAiQ.cjs → better-auth.B3p123j1.cjs} +1 -1
- package/dist/shared/{better-auth.CeY8lCIq.cjs → better-auth.BDsrc21Q.cjs} +17 -36
- package/dist/shared/{better-auth.CF-FWRQL.d.cts → better-auth.BQyjc_QW.d.cts} +1 -1
- package/dist/shared/{better-auth.DR6QsC6j.mjs → better-auth.C1Ly154X.mjs} +17 -36
- package/dist/shared/{better-auth.DEgvs2nh.d.cts → better-auth.C_oxxeck.d.mts} +1 -1
- package/dist/shared/{better-auth.B0e3ZzlM.d.cts → better-auth.Co08Vfmu.d.cts} +1 -1
- package/dist/shared/{better-auth.Bwe61noi.d.ts → better-auth.CtrZTpKh.d.ts} +1 -1
- package/dist/shared/{better-auth.HDgvLN7B.mjs → better-auth.CvxACSRz.mjs} +1 -1
- package/dist/shared/{better-auth.B_G094Aj.d.ts → better-auth.DM13Kwsw.d.ts} +1 -1
- package/dist/shared/{better-auth.BF0l18Af.d.mts → better-auth.VRX5gxZv.d.cts} +1 -1
- package/dist/shared/{better-auth.DbqVX6sp.d.mts → better-auth.f91UNEc0.d.mts} +1 -1
- package/dist/shared/{better-auth.CHvHihjD.d.ts → better-auth.xU7dIFql.d.ts} +1 -1
- package/dist/test-utils/index.d.cts +2 -2
- package/dist/test-utils/index.d.mts +2 -2
- package/dist/test-utils/index.d.ts +2 -2
- 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
- package/dist/shared/better-auth.D1SaVuxk.mjs +0 -301
- package/dist/shared/better-auth.johXc5IC.cjs +0 -305
- package/dist/shared/{better-auth.CiGummYu.d.cts → better-auth.84gXUliC.d.cts} +1 -1
- package/dist/shared/{better-auth.CePXeKag.d.mts → better-auth.BFooP6d2.d.mts} +1 -1
- package/dist/shared/{better-auth.Dj2HyOmw.d.ts → better-auth.DdfarOau.d.ts} +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.84gXUliC.cjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.BFooP6d2.mjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.DdfarOau.js';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.84gXUliC.cjs';
|
|
2
|
+
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.84gXUliC.cjs';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.BFooP6d2.mjs';
|
|
2
|
+
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.BFooP6d2.mjs';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.DdfarOau.js';
|
|
2
|
+
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.DdfarOau.js';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.84gXUliC.cjs';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.BFooP6d2.mjs';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.DdfarOau.js';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.84gXUliC.cjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.BFooP6d2.mjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.DdfarOau.js';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.84gXUliC.cjs';
|
|
2
2
|
import { Db } from 'mongodb';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.BFooP6d2.mjs';
|
|
2
2
|
import { Db } from 'mongodb';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.DdfarOau.js';
|
|
2
2
|
import { Db } from 'mongodb';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.84gXUliC.cjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.BFooP6d2.mjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.DdfarOau.js';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
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
|
@@ -346,7 +346,7 @@ function getRetryAfter(lastRequest, window) {
|
|
|
346
346
|
return Math.ceil((lastRequest + windowInMs - now) / 1e3);
|
|
347
347
|
}
|
|
348
348
|
function createDBStorage(ctx) {
|
|
349
|
-
const model =
|
|
349
|
+
const model = "rateLimit";
|
|
350
350
|
const db = ctx.adapter;
|
|
351
351
|
return {
|
|
352
352
|
get: async (key) => {
|
|
@@ -364,7 +364,7 @@ function createDBStorage(ctx) {
|
|
|
364
364
|
try {
|
|
365
365
|
if (_update) {
|
|
366
366
|
await db.updateMany({
|
|
367
|
-
model
|
|
367
|
+
model,
|
|
368
368
|
where: [{ field: "key", value: key }],
|
|
369
369
|
update: {
|
|
370
370
|
count: value.count,
|
|
@@ -373,7 +373,7 @@ function createDBStorage(ctx) {
|
|
|
373
373
|
});
|
|
374
374
|
} else {
|
|
375
375
|
await db.create({
|
|
376
|
-
model
|
|
376
|
+
model,
|
|
377
377
|
data: {
|
|
378
378
|
key,
|
|
379
379
|
count: value.count,
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.npEvGVS_.cjs';
|
|
2
|
-
export { l as AuthEndpoint, m as AuthMiddleware, bj as accountInfo, aN as callbackOAuth, ba as changeEmail, b6 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, b1 as createEmailVerificationToken, b8 as deleteUser, b9 as deleteUserCallback, bb as error, aZ as forgetPassword, a$ as forgetPasswordCallback, aS as freshSessionMiddleware, bh as getAccessToken, aJ as getEndpoints, aO as getSession, aP as getSessionFromCtx, bf as linkSocialAccount, aT as listSessions, be as listUserAccounts, bc as ok, o as optionsMiddleware, bl as originCheck, bk as originCheckMiddleware, bi as refreshToken, aR as requestOnlySessionMiddleware, aY as requestPasswordReset, a_ as requestPasswordResetCallback, b0 as resetPassword, aW as revokeOtherSessions, aU as revokeSession, aV as revokeSessions, aK as router, b3 as sendVerificationEmail, b2 as sendVerificationEmailFn, aQ as sessionMiddleware, b7 as setPassword, aM as signInEmail, aL as signInSocial, aX as signOut, bd as signUpEmail, bg as unlinkAccount, b5 as updateUser, b4 as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { l as AuthEndpoint, m as AuthMiddleware, bj as accountInfo, aN as callbackOAuth, ba as changeEmail, b6 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, b1 as createEmailVerificationToken, b8 as deleteUser, b9 as deleteUserCallback, bb as error, aZ as forgetPassword, a$ as forgetPasswordCallback, aS as freshSessionMiddleware, bh as getAccessToken, aJ as getEndpoints, aO as getSession, aP as getSessionFromCtx, bf as linkSocialAccount, aT as listSessions, be as listUserAccounts, bc as ok, o as optionsMiddleware, bl as originCheck, bk as originCheckMiddleware, bi as refreshToken, aR as requestOnlySessionMiddleware, aY as requestPasswordReset, a_ as requestPasswordResetCallback, b0 as resetPassword, aW as revokeOtherSessions, aU as revokeSession, aV as revokeSessions, aK as router, b3 as sendVerificationEmail, b2 as sendVerificationEmailFn, aQ as sessionMiddleware, b7 as setPassword, aM as signInEmail, aL as signInSocial, aX as signOut, bd as signUpEmail, bg as unlinkAccount, b5 as updateUser, b4 as verifyEmail } from '../shared/better-auth.84gXUliC.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import '../shared/better-auth.ZSfSbnQT.cjs';
|
|
5
5
|
import 'zod/v4';
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.IegS6fw_.mjs';
|
|
2
|
-
export { l as AuthEndpoint, m as AuthMiddleware, bj as accountInfo, aN as callbackOAuth, ba as changeEmail, b6 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, b1 as createEmailVerificationToken, b8 as deleteUser, b9 as deleteUserCallback, bb as error, aZ as forgetPassword, a$ as forgetPasswordCallback, aS as freshSessionMiddleware, bh as getAccessToken, aJ as getEndpoints, aO as getSession, aP as getSessionFromCtx, bf as linkSocialAccount, aT as listSessions, be as listUserAccounts, bc as ok, o as optionsMiddleware, bl as originCheck, bk as originCheckMiddleware, bi as refreshToken, aR as requestOnlySessionMiddleware, aY as requestPasswordReset, a_ as requestPasswordResetCallback, b0 as resetPassword, aW as revokeOtherSessions, aU as revokeSession, aV as revokeSessions, aK as router, b3 as sendVerificationEmail, b2 as sendVerificationEmailFn, aQ as sessionMiddleware, b7 as setPassword, aM as signInEmail, aL as signInSocial, aX as signOut, bd as signUpEmail, bg as unlinkAccount, b5 as updateUser, b4 as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { l as AuthEndpoint, m as AuthMiddleware, bj as accountInfo, aN as callbackOAuth, ba as changeEmail, b6 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, b1 as createEmailVerificationToken, b8 as deleteUser, b9 as deleteUserCallback, bb as error, aZ as forgetPassword, a$ as forgetPasswordCallback, aS as freshSessionMiddleware, bh as getAccessToken, aJ as getEndpoints, aO as getSession, aP as getSessionFromCtx, bf as linkSocialAccount, aT as listSessions, be as listUserAccounts, bc as ok, o as optionsMiddleware, bl as originCheck, bk as originCheckMiddleware, bi as refreshToken, aR as requestOnlySessionMiddleware, aY as requestPasswordReset, a_ as requestPasswordResetCallback, b0 as resetPassword, aW as revokeOtherSessions, aU as revokeSession, aV as revokeSessions, aK as router, b3 as sendVerificationEmail, b2 as sendVerificationEmailFn, aQ as sessionMiddleware, b7 as setPassword, aM as signInEmail, aL as signInSocial, aX as signOut, bd as signUpEmail, bg as unlinkAccount, b5 as updateUser, b4 as verifyEmail } from '../shared/better-auth.BFooP6d2.mjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import '../shared/better-auth.ZSfSbnQT.mjs';
|
|
5
5
|
import 'zod/v4';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.DPa2nz5L.js';
|
|
2
|
-
export { l as AuthEndpoint, m as AuthMiddleware, bj as accountInfo, aN as callbackOAuth, ba as changeEmail, b6 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, b1 as createEmailVerificationToken, b8 as deleteUser, b9 as deleteUserCallback, bb as error, aZ as forgetPassword, a$ as forgetPasswordCallback, aS as freshSessionMiddleware, bh as getAccessToken, aJ as getEndpoints, aO as getSession, aP as getSessionFromCtx, bf as linkSocialAccount, aT as listSessions, be as listUserAccounts, bc as ok, o as optionsMiddleware, bl as originCheck, bk as originCheckMiddleware, bi as refreshToken, aR as requestOnlySessionMiddleware, aY as requestPasswordReset, a_ as requestPasswordResetCallback, b0 as resetPassword, aW as revokeOtherSessions, aU as revokeSession, aV as revokeSessions, aK as router, b3 as sendVerificationEmail, b2 as sendVerificationEmailFn, aQ as sessionMiddleware, b7 as setPassword, aM as signInEmail, aL as signInSocial, aX as signOut, bd as signUpEmail, bg as unlinkAccount, b5 as updateUser, b4 as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { l as AuthEndpoint, m as AuthMiddleware, bj as accountInfo, aN as callbackOAuth, ba as changeEmail, b6 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, b1 as createEmailVerificationToken, b8 as deleteUser, b9 as deleteUserCallback, bb as error, aZ as forgetPassword, a$ as forgetPasswordCallback, aS as freshSessionMiddleware, bh as getAccessToken, aJ as getEndpoints, aO as getSession, aP as getSessionFromCtx, bf as linkSocialAccount, aT as listSessions, be as listUserAccounts, bc as ok, o as optionsMiddleware, bl as originCheck, bk as originCheckMiddleware, bi as refreshToken, aR as requestOnlySessionMiddleware, aY as requestPasswordReset, a_ as requestPasswordResetCallback, b0 as resetPassword, aW as revokeOtherSessions, aU as revokeSession, aV as revokeSessions, aK as router, b3 as sendVerificationEmail, b2 as sendVerificationEmailFn, aQ as sessionMiddleware, b7 as setPassword, aM as signInEmail, aL as signInSocial, aX as signOut, bd as signUpEmail, bg as unlinkAccount, b5 as updateUser, b4 as verifyEmail } from '../shared/better-auth.DdfarOau.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import '../shared/better-auth.ZSfSbnQT.js';
|
|
5
5
|
import 'zod/v4';
|
package/dist/api/index.mjs
CHANGED
|
@@ -329,7 +329,7 @@ function getRetryAfter(lastRequest, window) {
|
|
|
329
329
|
return Math.ceil((lastRequest + windowInMs - now) / 1e3);
|
|
330
330
|
}
|
|
331
331
|
function createDBStorage(ctx) {
|
|
332
|
-
const model =
|
|
332
|
+
const model = "rateLimit";
|
|
333
333
|
const db = ctx.adapter;
|
|
334
334
|
return {
|
|
335
335
|
get: async (key) => {
|
|
@@ -347,7 +347,7 @@ function createDBStorage(ctx) {
|
|
|
347
347
|
try {
|
|
348
348
|
if (_update) {
|
|
349
349
|
await db.updateMany({
|
|
350
|
-
model
|
|
350
|
+
model,
|
|
351
351
|
where: [{ field: "key", value: key }],
|
|
352
352
|
update: {
|
|
353
353
|
count: value.count,
|
|
@@ -356,7 +356,7 @@ function createDBStorage(ctx) {
|
|
|
356
356
|
});
|
|
357
357
|
} else {
|
|
358
358
|
await db.create({
|
|
359
|
-
model
|
|
359
|
+
model,
|
|
360
360
|
data: {
|
|
361
361
|
key,
|
|
362
362
|
count: value.count,
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.84gXUliC.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';
|
|
5
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.BQyjc_QW.cjs';
|
|
6
|
+
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.BQyjc_QW.cjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.BFooP6d2.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';
|
|
5
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.f91UNEc0.mjs';
|
|
6
|
+
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.f91UNEc0.mjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.DdfarOau.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';
|
|
5
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.DM13Kwsw.js';
|
|
6
|
+
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.DM13Kwsw.js';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
@@ -4,7 +4,7 @@ import { AccessControl, Role, Statements } from '../../plugins/access/index.cjs'
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
6
6
|
import { organization, InferMember, InferInvitation, Team, Organization, Member, Invitation } from '../../plugins/organization/index.cjs';
|
|
7
|
-
import { h as BetterAuthPlugin, a4 as FieldAttribute, B as BetterAuthOptions } from '../../shared/better-auth.
|
|
7
|
+
import { h as BetterAuthPlugin, a4 as FieldAttribute, B as BetterAuthOptions } from '../../shared/better-auth.84gXUliC.cjs';
|
|
8
8
|
import { a as Prettify } from '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
9
9
|
import { username } from '../../plugins/username/index.cjs';
|
|
10
10
|
import { Passkey, passkey } from '../../plugins/passkey/index.cjs';
|
|
@@ -17,10 +17,10 @@ import { genericOAuth } from '../../plugins/generic-oauth/index.cjs';
|
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.cjs';
|
|
18
18
|
import { multiSession } from '../../plugins/multi-session/index.cjs';
|
|
19
19
|
import { emailOTP } from '../../plugins/email-otp/index.cjs';
|
|
20
|
-
import { S as Store } from '../../shared/better-auth.
|
|
20
|
+
import { S as Store } from '../../shared/better-auth.BQyjc_QW.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.Co08Vfmu.cjs';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.cjs';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
26
|
export { global } from '@simplewebauthn/server';
|
|
@@ -4,7 +4,7 @@ import { AccessControl, Role, Statements } from '../../plugins/access/index.mjs'
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
6
6
|
import { organization, InferMember, InferInvitation, Team, Organization, Member, Invitation } from '../../plugins/organization/index.mjs';
|
|
7
|
-
import { h as BetterAuthPlugin, a4 as FieldAttribute, B as BetterAuthOptions } from '../../shared/better-auth.
|
|
7
|
+
import { h as BetterAuthPlugin, a4 as FieldAttribute, B as BetterAuthOptions } from '../../shared/better-auth.BFooP6d2.mjs';
|
|
8
8
|
import { a as Prettify } from '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
9
9
|
import { username } from '../../plugins/username/index.mjs';
|
|
10
10
|
import { Passkey, passkey } from '../../plugins/passkey/index.mjs';
|
|
@@ -17,10 +17,10 @@ import { genericOAuth } from '../../plugins/generic-oauth/index.mjs';
|
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.mjs';
|
|
18
18
|
import { multiSession } from '../../plugins/multi-session/index.mjs';
|
|
19
19
|
import { emailOTP } from '../../plugins/email-otp/index.mjs';
|
|
20
|
-
import { S as Store } from '../../shared/better-auth.
|
|
20
|
+
import { S as Store } from '../../shared/better-auth.f91UNEc0.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.B36j7OCI.mjs';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.mjs';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
26
|
export { global } from '@simplewebauthn/server';
|
|
@@ -4,7 +4,7 @@ import { AccessControl, Role, Statements } from '../../plugins/access/index.js';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
6
6
|
import { organization, InferMember, InferInvitation, Team, Organization, Member, Invitation } from '../../plugins/organization/index.js';
|
|
7
|
-
import { h as BetterAuthPlugin, a4 as FieldAttribute, B as BetterAuthOptions } from '../../shared/better-auth.
|
|
7
|
+
import { h as BetterAuthPlugin, a4 as FieldAttribute, B as BetterAuthOptions } from '../../shared/better-auth.DdfarOau.js';
|
|
8
8
|
import { a as Prettify } from '../../shared/better-auth.ZSfSbnQT.js';
|
|
9
9
|
import { username } from '../../plugins/username/index.js';
|
|
10
10
|
import { Passkey, passkey } from '../../plugins/passkey/index.js';
|
|
@@ -17,10 +17,10 @@ import { genericOAuth } from '../../plugins/generic-oauth/index.js';
|
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.js';
|
|
18
18
|
import { multiSession } from '../../plugins/multi-session/index.js';
|
|
19
19
|
import { emailOTP } from '../../plugins/email-otp/index.js';
|
|
20
|
-
import { S as Store } from '../../shared/better-auth.
|
|
20
|
+
import { S as Store } from '../../shared/better-auth.DM13Kwsw.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.xU7dIFql.js';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.js';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
26
|
export { global } from '@simplewebauthn/server';
|
|
@@ -4,10 +4,10 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BQyjc_QW.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.84gXUliC.cjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod/v4';
|
|
13
13
|
import 'kysely';
|
|
@@ -67,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
67
67
|
data: InferClientAPI<Option> extends {
|
|
68
68
|
getSession: () => Promise<infer Res>;
|
|
69
69
|
} ? Res extends {
|
|
70
|
-
data: infer S;
|
|
71
|
-
error: null;
|
|
72
|
-
} | {
|
|
73
70
|
data: null;
|
|
74
71
|
error: {
|
|
75
72
|
message?: string | undefined;
|
|
76
73
|
status: number;
|
|
77
74
|
statusText: string;
|
|
78
75
|
};
|
|
76
|
+
} | {
|
|
77
|
+
data: infer S;
|
|
78
|
+
error: null;
|
|
79
79
|
} ? S : Res : never;
|
|
80
80
|
isPending: boolean;
|
|
81
81
|
error: BetterFetchError | null;
|
|
@@ -85,15 +85,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
85
85
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
86
86
|
getSession: () => Promise<infer Res>;
|
|
87
87
|
} ? Res extends {
|
|
88
|
-
data: infer S;
|
|
89
|
-
error: null;
|
|
90
|
-
} | {
|
|
91
88
|
data: null;
|
|
92
89
|
error: {
|
|
93
90
|
message?: string | undefined;
|
|
94
91
|
status: number;
|
|
95
92
|
statusText: string;
|
|
96
93
|
};
|
|
94
|
+
} | {
|
|
95
|
+
data: infer S;
|
|
96
|
+
error: null;
|
|
97
97
|
} ? S : Res : never>;
|
|
98
98
|
};
|
|
99
99
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -4,10 +4,10 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.f91UNEc0.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BFooP6d2.mjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod/v4';
|
|
13
13
|
import 'kysely';
|
|
@@ -67,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
67
67
|
data: InferClientAPI<Option> extends {
|
|
68
68
|
getSession: () => Promise<infer Res>;
|
|
69
69
|
} ? Res extends {
|
|
70
|
-
data: infer S;
|
|
71
|
-
error: null;
|
|
72
|
-
} | {
|
|
73
70
|
data: null;
|
|
74
71
|
error: {
|
|
75
72
|
message?: string | undefined;
|
|
76
73
|
status: number;
|
|
77
74
|
statusText: string;
|
|
78
75
|
};
|
|
76
|
+
} | {
|
|
77
|
+
data: infer S;
|
|
78
|
+
error: null;
|
|
79
79
|
} ? S : Res : never;
|
|
80
80
|
isPending: boolean;
|
|
81
81
|
error: BetterFetchError | null;
|
|
@@ -85,15 +85,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
85
85
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
86
86
|
getSession: () => Promise<infer Res>;
|
|
87
87
|
} ? Res extends {
|
|
88
|
-
data: infer S;
|
|
89
|
-
error: null;
|
|
90
|
-
} | {
|
|
91
88
|
data: null;
|
|
92
89
|
error: {
|
|
93
90
|
message?: string | undefined;
|
|
94
91
|
status: number;
|
|
95
92
|
statusText: string;
|
|
96
93
|
};
|
|
94
|
+
} | {
|
|
95
|
+
data: infer S;
|
|
96
|
+
error: null;
|
|
97
97
|
} ? S : Res : never>;
|
|
98
98
|
};
|
|
99
99
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -4,10 +4,10 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.DM13Kwsw.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.js';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DdfarOau.js';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod/v4';
|
|
13
13
|
import 'kysely';
|
|
@@ -67,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
67
67
|
data: InferClientAPI<Option> extends {
|
|
68
68
|
getSession: () => Promise<infer Res>;
|
|
69
69
|
} ? Res extends {
|
|
70
|
-
data: infer S;
|
|
71
|
-
error: null;
|
|
72
|
-
} | {
|
|
73
70
|
data: null;
|
|
74
71
|
error: {
|
|
75
72
|
message?: string | undefined;
|
|
76
73
|
status: number;
|
|
77
74
|
statusText: string;
|
|
78
75
|
};
|
|
76
|
+
} | {
|
|
77
|
+
data: infer S;
|
|
78
|
+
error: null;
|
|
79
79
|
} ? S : Res : never;
|
|
80
80
|
isPending: boolean;
|
|
81
81
|
error: BetterFetchError | null;
|
|
@@ -85,15 +85,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
85
85
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
86
86
|
getSession: () => Promise<infer Res>;
|
|
87
87
|
} ? Res extends {
|
|
88
|
-
data: infer S;
|
|
89
|
-
error: null;
|
|
90
|
-
} | {
|
|
91
88
|
data: null;
|
|
92
89
|
error: {
|
|
93
90
|
message?: string | undefined;
|
|
94
91
|
status: number;
|
|
95
92
|
statusText: string;
|
|
96
93
|
};
|
|
94
|
+
} | {
|
|
95
|
+
data: infer S;
|
|
96
|
+
error: null;
|
|
97
97
|
} ? S : Res : never>;
|
|
98
98
|
};
|
|
99
99
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
2
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
3
3
|
export * from '@better-fetch/fetch';
|
|
4
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
4
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BQyjc_QW.cjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.84gXUliC.cjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod/v4';
|
|
@@ -23,15 +23,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
23
23
|
data: InferClientAPI<Option> extends {
|
|
24
24
|
getSession: () => Promise<infer Res>;
|
|
25
25
|
} ? Res extends {
|
|
26
|
+
data: infer S;
|
|
27
|
+
error: null;
|
|
28
|
+
} | {
|
|
26
29
|
data: null;
|
|
27
30
|
error: {
|
|
28
31
|
message?: string | undefined;
|
|
29
32
|
status: number;
|
|
30
33
|
statusText: string;
|
|
31
34
|
};
|
|
32
|
-
} | {
|
|
33
|
-
data: infer S;
|
|
34
|
-
error: null;
|
|
35
35
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
36
36
|
isPending: boolean;
|
|
37
37
|
isRefetching: boolean;
|
|
@@ -41,15 +41,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
41
41
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
42
42
|
getSession: () => Promise<infer Res>;
|
|
43
43
|
} ? Res extends {
|
|
44
|
+
data: infer S;
|
|
45
|
+
error: null;
|
|
46
|
+
} | {
|
|
44
47
|
data: null;
|
|
45
48
|
error: {
|
|
46
49
|
message?: string | undefined;
|
|
47
50
|
status: number;
|
|
48
51
|
statusText: string;
|
|
49
52
|
};
|
|
50
|
-
} | {
|
|
51
|
-
data: infer S;
|
|
52
|
-
error: null;
|
|
53
53
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
54
54
|
};
|
|
55
55
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
2
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
3
3
|
export * from '@better-fetch/fetch';
|
|
4
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
4
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.f91UNEc0.mjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BFooP6d2.mjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod/v4';
|
|
@@ -23,15 +23,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
23
23
|
data: InferClientAPI<Option> extends {
|
|
24
24
|
getSession: () => Promise<infer Res>;
|
|
25
25
|
} ? Res extends {
|
|
26
|
+
data: infer S;
|
|
27
|
+
error: null;
|
|
28
|
+
} | {
|
|
26
29
|
data: null;
|
|
27
30
|
error: {
|
|
28
31
|
message?: string | undefined;
|
|
29
32
|
status: number;
|
|
30
33
|
statusText: string;
|
|
31
34
|
};
|
|
32
|
-
} | {
|
|
33
|
-
data: infer S;
|
|
34
|
-
error: null;
|
|
35
35
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
36
36
|
isPending: boolean;
|
|
37
37
|
isRefetching: boolean;
|
|
@@ -41,15 +41,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
41
41
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
42
42
|
getSession: () => Promise<infer Res>;
|
|
43
43
|
} ? Res extends {
|
|
44
|
+
data: infer S;
|
|
45
|
+
error: null;
|
|
46
|
+
} | {
|
|
44
47
|
data: null;
|
|
45
48
|
error: {
|
|
46
49
|
message?: string | undefined;
|
|
47
50
|
status: number;
|
|
48
51
|
statusText: string;
|
|
49
52
|
};
|
|
50
|
-
} | {
|
|
51
|
-
data: infer S;
|
|
52
|
-
error: null;
|
|
53
53
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
54
54
|
};
|
|
55
55
|
$fetch: _better_fetch_fetch.BetterFetch<{
|