better-auth 0.3.3-beta.10 → 0.3.3-beta.12

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/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  <p align="center">
2
2
  <picture>
3
- <source srcset="./banner-dark.png" media="(prefers-color-scheme: dark)">
4
- <source srcset="./banner.png" media="(prefers-color-scheme: light)">
5
- <img src="./banner.png" alt="Better Auth Logo">
3
+ <source srcset="https://github.com/better-auth/better-auth/blob/main/banner-dark.png?raw=true" media="(prefers-color-scheme: dark)">
4
+ <source srcset="https://github.com/better-auth/better-auth/blob/main/banner.png?raw=true" media="(prefers-color-scheme: light)">
5
+ <img src="https://github.com/better-auth/better-auth/blob/main/banner.png?raw=true" alt="Better Auth Logo">
6
6
  </picture>
7
7
  <h2 align="center">
8
8
  Better Auth
@@ -26,8 +26,6 @@
26
26
  > [!WARNING]
27
27
  > **Note:** 🚧 This project is currently in beta. Features and APIs may change.
28
28
 
29
- ## About the Project
30
-
31
29
  Better Auth is framework-agnostic authentication (and authorization) library for TypeScript. It provides a comprehensive set of features out of the box and includes a plugin ecosystem that simplifies adding advanced functionalities with minimal code in short amount of time. Whether you need 2FA, multi-tenant support, or other complex features. It lets you focus on building your actual application instead of reinventing the wheel.
32
30
 
33
31
  ## Getting Started
@@ -1,4 +1,4 @@
1
- import { A as Adapter } from '../index-wCaeR-eR.js';
1
+ import { A as Adapter } from '../index-CMdWCO_J.js';
2
2
  import 'kysely';
3
3
  import '../index-CT4RHCuS.js';
4
4
  import 'arctic';
@@ -1,5 +1,5 @@
1
1
  import { Db } from 'mongodb';
2
- import { W as Where } from '../index-wCaeR-eR.js';
2
+ import { W as Where } from '../index-CMdWCO_J.js';
3
3
  import 'kysely';
4
4
  import '../index-CT4RHCuS.js';
5
5
  import 'arctic';
@@ -1,4 +1,4 @@
1
- import { A as Adapter } from '../index-wCaeR-eR.js';
1
+ import { A as Adapter } from '../index-CMdWCO_J.js';
2
2
  import 'kysely';
3
3
  import '../index-CT4RHCuS.js';
4
4
  import 'arctic';
package/dist/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { f as AuthEndpoint, g as AuthMiddleware, n as callbackOAuth, L as changePassword, e as createAuthEndpoint, d as createAuthMiddleware, D as createEmailVerificationToken, V as csrfMiddleware, N as deleteUser, Q as error, y as forgetPassword, z as forgetPasswordCallback, O as getCSRFToken, l as getEndpoints, p as getSession, q as getSessionFromCtx, u as listSessions, T as ok, o as optionsMiddleware, C as resetPassword, v as revokeSession, w as revokeSessions, r as router, E as sendVerificationEmail, t as sessionMiddleware, M as setPassword, m as signInEmail, s as signInOAuth, x as signOut, U as signUpEmail, K as updateUser, J as verifyEmail } from './index-wCaeR-eR.js';
1
+ export { f as AuthEndpoint, g as AuthMiddleware, n as callbackOAuth, L as changePassword, e as createAuthEndpoint, d as createAuthMiddleware, D as createEmailVerificationToken, V as csrfMiddleware, N as deleteUser, Q as error, y as forgetPassword, z as forgetPasswordCallback, O as getCSRFToken, l as getEndpoints, p as getSession, q as getSessionFromCtx, u as listSessions, T as ok, o as optionsMiddleware, C as resetPassword, v as revokeSession, w as revokeSessions, r as router, E as sendVerificationEmail, t as sessionMiddleware, M as setPassword, m as signInEmail, s as signInOAuth, x as signOut, U as signUpEmail, K as updateUser, J as verifyEmail } from './index-CMdWCO_J.js';
2
2
  import 'zod';
3
3
  import './helper-DPDj8Nix.js';
4
4
  export { APIError } from 'better-call';
@@ -2,14 +2,14 @@ import * as nanostores from 'nanostores';
2
2
  import { A as AccessControl, S as StatementsPrimitive, R as Role } from '../statement-CfnyN34h.js';
3
3
  import * as _better_fetch_fetch from '@better-fetch/fetch';
4
4
  import { BetterFetchOption } from '@better-fetch/fetch';
5
- import { o as organization, f as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, e as anonymous } from '../index-DmB7VmkS.js';
6
- export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-DmB7VmkS.js';
5
+ import { o as organization, f as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, e as anonymous } from '../index-BMFlIsH6.js';
6
+ export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-BMFlIsH6.js';
7
7
  import { P as Prettify } from '../helper-DPDj8Nix.js';
8
8
  import '../index-CT4RHCuS.js';
9
9
  import 'arctic';
10
10
  import 'zod';
11
11
  import 'better-call';
12
- import '../index-wCaeR-eR.js';
12
+ import '../index-CMdWCO_J.js';
13
13
  import 'kysely';
14
14
  import 'better-sqlite3';
15
15
  import 'mysql2';
package/dist/client.d.ts CHANGED
@@ -6,7 +6,7 @@ import { BetterFetch, BetterFetchError, BetterFetchOption } from '@better-fetch/
6
6
  import { U as UnionToIntersection, P as Prettify, S as StripEmptyObjects } from './helper-DPDj8Nix.js';
7
7
  import { ClientOptions, InferClientAPI, InferActions, InferAdditionalFromClient, InferSessionFromClient, InferUserFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
8
8
  export { AtomListener, InferPluginsFromClient } from './types.js';
9
- import './index-wCaeR-eR.js';
9
+ import './index-CMdWCO_J.js';
10
10
  import 'kysely';
11
11
  import './index-CT4RHCuS.js';
12
12
  import 'arctic';
@@ -5,7 +5,7 @@ import { P as Prettify } from './helper-DPDj8Nix.js';
5
5
  import { A as AccessControl, R as Role, S as StatementsPrimitive, g as defaultRoles } from './statement-CfnyN34h.js';
6
6
  import * as _better_fetch_fetch from '@better-fetch/fetch';
7
7
  import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
8
- import { H as HookEndpointContext } from './index-wCaeR-eR.js';
8
+ import { H as HookEndpointContext } from './index-CMdWCO_J.js';
9
9
  import * as nanostores from 'nanostores';
10
10
  import { atom } from 'nanostores';
11
11
  import * as _simplewebauthn_types from '@simplewebauthn/types';
@@ -1269,17 +1269,17 @@ declare const signInOAuth: {
1269
1269
  /**
1270
1270
  * OAuth2 provider to use`
1271
1271
  */
1272
- provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
1272
+ provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter")[]]>;
1273
1273
  /**
1274
1274
  * If this is true the session will only be valid for the current browser session
1275
1275
  */
1276
1276
  dontRememberMe: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1277
1277
  }, "strip", z.ZodTypeAny, {
1278
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
1278
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
1279
1279
  callbackURL?: string | undefined;
1280
1280
  dontRememberMe?: boolean | undefined;
1281
1281
  }, {
1282
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
1282
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
1283
1283
  callbackURL?: string | undefined;
1284
1284
  dontRememberMe?: boolean | undefined;
1285
1285
  }>;
@@ -1314,17 +1314,17 @@ declare const signInOAuth: {
1314
1314
  /**
1315
1315
  * OAuth2 provider to use`
1316
1316
  */
1317
- provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
1317
+ provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter")[]]>;
1318
1318
  /**
1319
1319
  * If this is true the session will only be valid for the current browser session
1320
1320
  */
1321
1321
  dontRememberMe: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1322
1322
  }, "strip", z.ZodTypeAny, {
1323
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
1323
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
1324
1324
  callbackURL?: string | undefined;
1325
1325
  dontRememberMe?: boolean | undefined;
1326
1326
  }, {
1327
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
1327
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
1328
1328
  callbackURL?: string | undefined;
1329
1329
  dontRememberMe?: boolean | undefined;
1330
1330
  }>;
@@ -2518,14 +2518,14 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
2518
2518
  }>>;
2519
2519
  body: zod.ZodObject<{
2520
2520
  callbackURL: zod.ZodOptional<zod.ZodString>;
2521
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
2521
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter")[]]>;
2522
2522
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
2523
2523
  }, "strip", zod.ZodTypeAny, {
2524
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
2524
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
2525
2525
  callbackURL?: string | undefined;
2526
2526
  dontRememberMe?: boolean | undefined;
2527
2527
  }, {
2528
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
2528
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
2529
2529
  callbackURL?: string | undefined;
2530
2530
  dontRememberMe?: boolean | undefined;
2531
2531
  }>;
@@ -2550,14 +2550,14 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
2550
2550
  }>>;
2551
2551
  body: zod.ZodObject<{
2552
2552
  callbackURL: zod.ZodOptional<zod.ZodString>;
2553
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
2553
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter")[]]>;
2554
2554
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
2555
2555
  }, "strip", zod.ZodTypeAny, {
2556
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
2556
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
2557
2557
  callbackURL?: string | undefined;
2558
2558
  dontRememberMe?: boolean | undefined;
2559
2559
  }, {
2560
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
2560
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
2561
2561
  callbackURL?: string | undefined;
2562
2562
  dontRememberMe?: boolean | undefined;
2563
2563
  }>;
@@ -3623,14 +3623,14 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
3623
3623
  }>>;
3624
3624
  body: zod.ZodObject<{
3625
3625
  callbackURL: zod.ZodOptional<zod.ZodString>;
3626
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
3626
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter")[]]>;
3627
3627
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
3628
3628
  }, "strip", zod.ZodTypeAny, {
3629
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
3629
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
3630
3630
  callbackURL?: string | undefined;
3631
3631
  dontRememberMe?: boolean | undefined;
3632
3632
  }, {
3633
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
3633
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
3634
3634
  callbackURL?: string | undefined;
3635
3635
  dontRememberMe?: boolean | undefined;
3636
3636
  }>;
@@ -3655,14 +3655,14 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
3655
3655
  }>>;
3656
3656
  body: zod.ZodObject<{
3657
3657
  callbackURL: zod.ZodOptional<zod.ZodString>;
3658
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
3658
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter")[]]>;
3659
3659
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
3660
3660
  }, "strip", zod.ZodTypeAny, {
3661
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
3661
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
3662
3662
  callbackURL?: string | undefined;
3663
3663
  dontRememberMe?: boolean | undefined;
3664
3664
  }, {
3665
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
3665
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
3666
3666
  callbackURL?: string | undefined;
3667
3667
  dontRememberMe?: boolean | undefined;
3668
3668
  }>;
@@ -4730,14 +4730,14 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
4730
4730
  }>>;
4731
4731
  body: zod.ZodObject<{
4732
4732
  callbackURL: zod.ZodOptional<zod.ZodString>;
4733
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
4733
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter")[]]>;
4734
4734
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
4735
4735
  }, "strip", zod.ZodTypeAny, {
4736
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
4736
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
4737
4737
  callbackURL?: string | undefined;
4738
4738
  dontRememberMe?: boolean | undefined;
4739
4739
  }, {
4740
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
4740
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
4741
4741
  callbackURL?: string | undefined;
4742
4742
  dontRememberMe?: boolean | undefined;
4743
4743
  }>;
@@ -4762,14 +4762,14 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
4762
4762
  }>>;
4763
4763
  body: zod.ZodObject<{
4764
4764
  callbackURL: zod.ZodOptional<zod.ZodString>;
4765
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
4765
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter")[]]>;
4766
4766
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
4767
4767
  }, "strip", zod.ZodTypeAny, {
4768
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
4768
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
4769
4769
  callbackURL?: string | undefined;
4770
4770
  dontRememberMe?: boolean | undefined;
4771
4771
  }, {
4772
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
4772
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter";
4773
4773
  callbackURL?: string | undefined;
4774
4774
  dontRememberMe?: boolean | undefined;
4775
4775
  }>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { a as Auth, X as betterAuth } from './index-wCaeR-eR.js';
1
+ export { a as Auth, X as betterAuth } from './index-CMdWCO_J.js';
2
2
  import 'kysely';
3
3
  import './index-CT4RHCuS.js';
4
4
  import 'arctic';
package/dist/next-js.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Auth } from './index-wCaeR-eR.js';
1
+ import { a as Auth } from './index-CMdWCO_J.js';
2
2
  import { U as User, S as Session } from './index-CT4RHCuS.js';
3
3
  import { NextRequest } from 'next/server';
4
4
  import 'kysely';
package/dist/node.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as http from 'http';
2
- import { a as Auth } from './index-wCaeR-eR.js';
2
+ import { a as Auth } from './index-CMdWCO_J.js';
3
3
  import 'kysely';
4
4
  import './index-CT4RHCuS.js';
5
5
  import 'arctic';
package/dist/plugins.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { A as AnonymousOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, U as UserWithPhoneNumber, e as anonymous, g as getPasskeyActions, m as magicLink, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-DmB7VmkS.js';
1
+ export { A as AnonymousOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, U as UserWithPhoneNumber, e as anonymous, g as getPasskeyActions, m as magicLink, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-BMFlIsH6.js';
2
2
  export { i as ac } from './index-DfAHOgpj.js';
3
- import { b as AuthContext } from './index-wCaeR-eR.js';
4
- export { f as AuthEndpoint, g as AuthMiddleware, c as BetterAuthPlugin, P as PluginSchema, e as createAuthEndpoint, d as createAuthMiddleware, o as optionsMiddleware } from './index-wCaeR-eR.js';
3
+ import { b as AuthContext } from './index-CMdWCO_J.js';
4
+ export { f as AuthEndpoint, g as AuthMiddleware, c as BetterAuthPlugin, P as PluginSchema, e as createAuthEndpoint, d as createAuthMiddleware, o as optionsMiddleware } from './index-CMdWCO_J.js';
5
5
  import './index-CT4RHCuS.js';
6
6
  import 'arctic';
7
7
  import 'zod';
package/dist/react.d.ts CHANGED
@@ -3,7 +3,7 @@ import { U as UnionToIntersection, P as Prettify, S as StripEmptyObjects } from
3
3
  import { ClientOptions, InferClientAPI, InferActions, InferAdditionalFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
4
4
  import { useStore } from '@nanostores/react';
5
5
  import 'zod';
6
- import './index-wCaeR-eR.js';
6
+ import './index-CMdWCO_J.js';
7
7
  import 'kysely';
8
8
  import './index-CT4RHCuS.js';
9
9
  import 'arctic';
@@ -1,4 +1,4 @@
1
- import { a as Auth } from './index-wCaeR-eR.js';
1
+ import { a as Auth } from './index-CMdWCO_J.js';
2
2
  import 'kysely';
3
3
  import './index-CT4RHCuS.js';
4
4
  import 'arctic';
package/dist/solid.d.ts CHANGED
@@ -3,7 +3,7 @@ import { U as UnionToIntersection, P as Prettify, S as StripEmptyObjects } from
3
3
  import { ClientOptions, InferClientAPI, InferActions, InferAdditionalFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
4
4
  import { Accessor } from 'solid-js';
5
5
  import 'zod';
6
- import './index-wCaeR-eR.js';
6
+ import './index-CMdWCO_J.js';
7
7
  import 'kysely';
8
8
  import './index-CT4RHCuS.js';
9
9
  import 'arctic';
@@ -1,4 +1,4 @@
1
- import { a as Auth, B as BetterAuthOptions } from './index-wCaeR-eR.js';
1
+ import { a as Auth, B as BetterAuthOptions } from './index-CMdWCO_J.js';
2
2
  import 'kysely';
3
3
  import './index-CT4RHCuS.js';
4
4
  import 'arctic';
package/dist/svelte.d.ts CHANGED
@@ -3,7 +3,7 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
3
3
  import { U as UnionToIntersection, P as Prettify, S as StripEmptyObjects } from './helper-DPDj8Nix.js';
4
4
  import { ClientOptions, InferClientAPI, InferActions, InferAdditionalFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
5
5
  import 'zod';
6
- import './index-wCaeR-eR.js';
6
+ import './index-CMdWCO_J.js';
7
7
  import 'kysely';
8
8
  import './index-CT4RHCuS.js';
9
9
  import 'arctic';
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { c as BetterAuthPlugin, a as Auth, F as FieldAttribute, I as InferFieldOutput } from './index-wCaeR-eR.js';
2
- export { A as Adapter, b as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, j as InferPluginTypes, i as InferSession, h as InferUser, P as PluginSchema, R as RateLimit, S as SessionAdapter, W as Where, k as init } from './index-wCaeR-eR.js';
1
+ import { c as BetterAuthPlugin, a as Auth, F as FieldAttribute, I as InferFieldOutput } from './index-CMdWCO_J.js';
2
+ export { A as Adapter, b as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, j as InferPluginTypes, i as InferSession, h as InferUser, P as PluginSchema, R as RateLimit, S as SessionAdapter, W as Where, k as init } from './index-CMdWCO_J.js';
3
3
  import { U as UnionToIntersection, H as HasRequiredKeys, P as Prettify, S as StripEmptyObjects, L as LiteralString } from './helper-DPDj8Nix.js';
4
4
  export { D as DeepPartial, a as LiteralUnion, R as RequiredKeysOf, W as WithoutEmpty } from './helper-DPDj8Nix.js';
5
5
  import { S as Session, U as User } from './index-CT4RHCuS.js';
package/dist/vue.d.ts CHANGED
@@ -3,7 +3,7 @@ import { U as UnionToIntersection, P as Prettify, S as StripEmptyObjects } from
3
3
  import { ClientOptions, InferClientAPI, InferActions, InferAdditionalFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
4
4
  import { Ref, DeepReadonly } from 'vue';
5
5
  import 'zod';
6
- import './index-wCaeR-eR.js';
6
+ import './index-CMdWCO_J.js';
7
7
  import 'kysely';
8
8
  import './index-CT4RHCuS.js';
9
9
  import 'arctic';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-auth",
3
- "version": "0.3.3-beta.10",
3
+ "version": "0.3.3-beta.12",
4
4
  "description": "The most comprehensive authentication library for TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -83,7 +83,7 @@
83
83
  "@simplewebauthn/browser": "^10.0.0",
84
84
  "@simplewebauthn/server": "^10.0.1",
85
85
  "arctic": "2.0.0-next.9",
86
- "better-call": "0.2.5-beta.3",
86
+ "better-call": "0.2.5-beta.4",
87
87
  "c12": "^1.11.2",
88
88
  "chalk": "^5.3.0",
89
89
  "commander": "^12.1.0",