better-auth 1.3.29 → 1.3.31

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.
Files changed (66) hide show
  1. package/README.md +1 -1
  2. package/dist/api/index.cjs +10 -0
  3. package/dist/api/index.d.cts +1 -1
  4. package/dist/api/index.d.mts +1 -1
  5. package/dist/api/index.d.ts +1 -1
  6. package/dist/api/index.mjs +10 -0
  7. package/dist/client/index.d.cts +3 -3
  8. package/dist/client/index.d.mts +3 -3
  9. package/dist/client/index.d.ts +3 -3
  10. package/dist/client/lynx/index.d.cts +2 -2
  11. package/dist/client/lynx/index.d.mts +2 -2
  12. package/dist/client/lynx/index.d.ts +2 -2
  13. package/dist/client/plugins/index.d.cts +3 -3
  14. package/dist/client/plugins/index.d.mts +3 -3
  15. package/dist/client/plugins/index.d.ts +3 -3
  16. package/dist/client/react/index.d.cts +2 -2
  17. package/dist/client/react/index.d.mts +2 -2
  18. package/dist/client/react/index.d.ts +2 -2
  19. package/dist/client/solid/index.d.cts +8 -8
  20. package/dist/client/solid/index.d.mts +8 -8
  21. package/dist/client/solid/index.d.ts +8 -8
  22. package/dist/client/svelte/index.d.cts +2 -2
  23. package/dist/client/svelte/index.d.mts +2 -2
  24. package/dist/client/svelte/index.d.ts +2 -2
  25. package/dist/client/vue/index.d.cts +11 -11
  26. package/dist/client/vue/index.d.mts +11 -11
  27. package/dist/client/vue/index.d.ts +11 -11
  28. package/dist/db/index.d.cts +3 -3
  29. package/dist/db/index.d.mts +3 -3
  30. package/dist/db/index.d.ts +3 -3
  31. package/dist/index.cjs +1 -17
  32. package/dist/index.d.cts +4 -8
  33. package/dist/index.d.mts +4 -8
  34. package/dist/index.d.ts +4 -8
  35. package/dist/index.mjs +0 -19
  36. package/dist/integrations/node.d.cts +1 -1
  37. package/dist/integrations/node.d.mts +1 -1
  38. package/dist/integrations/node.d.ts +1 -1
  39. package/dist/plugins/admin/index.d.cts +2 -2
  40. package/dist/plugins/admin/index.d.mts +2 -2
  41. package/dist/plugins/admin/index.d.ts +2 -2
  42. package/dist/plugins/custom-session/index.d.cts +1 -1
  43. package/dist/plugins/custom-session/index.d.mts +1 -1
  44. package/dist/plugins/custom-session/index.d.ts +1 -1
  45. package/dist/plugins/index.d.cts +3 -3
  46. package/dist/plugins/index.d.mts +3 -3
  47. package/dist/plugins/index.d.ts +3 -3
  48. package/dist/plugins/jwt/index.d.cts +1 -1
  49. package/dist/plugins/jwt/index.d.mts +1 -1
  50. package/dist/plugins/jwt/index.d.ts +1 -1
  51. package/dist/plugins/organization/index.d.cts +8 -8
  52. package/dist/plugins/organization/index.d.mts +8 -8
  53. package/dist/plugins/organization/index.d.ts +8 -8
  54. package/dist/shared/{better-auth.BvP1ioeI.d.ts → better-auth.4x_9xnje.d.ts} +2 -2
  55. package/dist/shared/{better-auth.BUpnjBGu.d.ts → better-auth.BG5AQFLC.d.ts} +2 -2
  56. package/dist/shared/{better-auth.DM5lkN2F.d.mts → better-auth.BcYH5m45.d.mts} +2 -2
  57. package/dist/shared/{better-auth.Cs6Q8Z6v.d.cts → better-auth.CtsjRPyi.d.cts} +2 -2
  58. package/dist/shared/{better-auth.CafnB7YV.d.mts → better-auth.D8pZHsR7.d.mts} +2 -2
  59. package/dist/shared/{better-auth.Cj7kf8Ev.d.cts → better-auth.DYFBBatY.d.cts} +2 -2
  60. package/dist/test-utils/index.d.cts +2 -2
  61. package/dist/test-utils/index.d.mts +2 -2
  62. package/dist/test-utils/index.d.ts +2 -2
  63. package/dist/types/index.d.cts +2 -2
  64. package/dist/types/index.d.mts +2 -2
  65. package/dist/types/index.d.ts +2 -2
  66. package/package.json +4 -4
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  </h2>
10
10
 
11
11
  <p align="center">
12
- The most comprehensive authentication library for TypeScript
12
+ The most comprehensive authentication framework for TypeScript
13
13
  <br />
14
14
  <a href="https://better-auth.com"><strong>Learn more »</strong></a>
15
15
  <br />
@@ -719,6 +719,16 @@ const router = (ctx, options) => {
719
719
  if (response && "response" in response) {
720
720
  return response.response;
721
721
  }
722
+ if (response && "request" in response) {
723
+ const rateLimitResponse = await onRequestRateLimit(
724
+ response.request,
725
+ ctx
726
+ );
727
+ if (rateLimitResponse) {
728
+ return rateLimitResponse;
729
+ }
730
+ return response.request;
731
+ }
722
732
  }
723
733
  }
724
734
  return onRequestRateLimit(req, ctx);
@@ -3,7 +3,7 @@ export { APIError } from 'better-call';
3
3
  import '@better-auth/core';
4
4
  import '@better-auth/core/env';
5
5
  import '../shared/better-auth.kD29xbrE.cjs';
6
- export { a2 as accountInfo, n as callbackOAuth, U as changeEmail, Q as changePassword, k as checkEndpointConflicts, K as createEmailVerificationToken, S as deleteUser, T as deleteUserCallback, V as error, E as forgetPassword, H as forgetPasswordCallback, w as freshSessionMiddleware, a0 as getAccessToken, l as getEndpoints, p as getSession, q as getSessionFromCtx, o as getSessionQuerySchema, a5 as isSimpleRequest, _ as linkSocialAccount, x as listSessions, Z as listUserAccounts, X as ok, a4 as originCheck, a3 as originCheckMiddleware, a1 as refreshToken, v as requestOnlySessionMiddleware, D as requestPasswordReset, G as requestPasswordResetCallback, J as resetPassword, B as revokeOtherSessions, y as revokeSession, z as revokeSessions, r as router, N as sendVerificationEmail, L as sendVerificationEmailFn, u as sensitiveSessionMiddleware, t as sessionMiddleware, R as setPassword, m as signInEmail, s as signInSocial, C as signOut, Y as signUpEmail, $ as unlinkAccount, P as updateUser, O as verifyEmail } from '../shared/better-auth.Cj7kf8Ev.cjs';
6
+ export { a2 as accountInfo, n as callbackOAuth, U as changeEmail, Q as changePassword, k as checkEndpointConflicts, K as createEmailVerificationToken, S as deleteUser, T as deleteUserCallback, V as error, E as forgetPassword, H as forgetPasswordCallback, w as freshSessionMiddleware, a0 as getAccessToken, l as getEndpoints, p as getSession, q as getSessionFromCtx, o as getSessionQuerySchema, a5 as isSimpleRequest, _ as linkSocialAccount, x as listSessions, Z as listUserAccounts, X as ok, a4 as originCheck, a3 as originCheckMiddleware, a1 as refreshToken, v as requestOnlySessionMiddleware, D as requestPasswordReset, G as requestPasswordResetCallback, J as resetPassword, B as revokeOtherSessions, y as revokeSession, z as revokeSessions, r as router, N as sendVerificationEmail, L as sendVerificationEmailFn, u as sensitiveSessionMiddleware, t as sessionMiddleware, R as setPassword, m as signInEmail, s as signInSocial, C as signOut, Y as signUpEmail, $ as unlinkAccount, P as updateUser, O as verifyEmail } from '../shared/better-auth.DYFBBatY.cjs';
7
7
  import '../shared/better-auth.DNnBkMGu.cjs';
8
8
  import 'zod';
9
9
  import 'zod/v4/core';
@@ -3,7 +3,7 @@ export { APIError } from 'better-call';
3
3
  import '@better-auth/core';
4
4
  import '@better-auth/core/env';
5
5
  import '../shared/better-auth.kD29xbrE.mjs';
6
- export { a2 as accountInfo, n as callbackOAuth, U as changeEmail, Q as changePassword, k as checkEndpointConflicts, K as createEmailVerificationToken, S as deleteUser, T as deleteUserCallback, V as error, E as forgetPassword, H as forgetPasswordCallback, w as freshSessionMiddleware, a0 as getAccessToken, l as getEndpoints, p as getSession, q as getSessionFromCtx, o as getSessionQuerySchema, a5 as isSimpleRequest, _ as linkSocialAccount, x as listSessions, Z as listUserAccounts, X as ok, a4 as originCheck, a3 as originCheckMiddleware, a1 as refreshToken, v as requestOnlySessionMiddleware, D as requestPasswordReset, G as requestPasswordResetCallback, J as resetPassword, B as revokeOtherSessions, y as revokeSession, z as revokeSessions, r as router, N as sendVerificationEmail, L as sendVerificationEmailFn, u as sensitiveSessionMiddleware, t as sessionMiddleware, R as setPassword, m as signInEmail, s as signInSocial, C as signOut, Y as signUpEmail, $ as unlinkAccount, P as updateUser, O as verifyEmail } from '../shared/better-auth.CafnB7YV.mjs';
6
+ export { a2 as accountInfo, n as callbackOAuth, U as changeEmail, Q as changePassword, k as checkEndpointConflicts, K as createEmailVerificationToken, S as deleteUser, T as deleteUserCallback, V as error, E as forgetPassword, H as forgetPasswordCallback, w as freshSessionMiddleware, a0 as getAccessToken, l as getEndpoints, p as getSession, q as getSessionFromCtx, o as getSessionQuerySchema, a5 as isSimpleRequest, _ as linkSocialAccount, x as listSessions, Z as listUserAccounts, X as ok, a4 as originCheck, a3 as originCheckMiddleware, a1 as refreshToken, v as requestOnlySessionMiddleware, D as requestPasswordReset, G as requestPasswordResetCallback, J as resetPassword, B as revokeOtherSessions, y as revokeSession, z as revokeSessions, r as router, N as sendVerificationEmail, L as sendVerificationEmailFn, u as sensitiveSessionMiddleware, t as sessionMiddleware, R as setPassword, m as signInEmail, s as signInSocial, C as signOut, Y as signUpEmail, $ as unlinkAccount, P as updateUser, O as verifyEmail } from '../shared/better-auth.D8pZHsR7.mjs';
7
7
  import '../shared/better-auth.DNnBkMGu.mjs';
8
8
  import 'zod';
9
9
  import 'zod/v4/core';
@@ -3,7 +3,7 @@ export { APIError } from 'better-call';
3
3
  import '@better-auth/core';
4
4
  import '@better-auth/core/env';
5
5
  import '../shared/better-auth.kD29xbrE.js';
6
- export { a2 as accountInfo, n as callbackOAuth, U as changeEmail, Q as changePassword, k as checkEndpointConflicts, K as createEmailVerificationToken, S as deleteUser, T as deleteUserCallback, V as error, E as forgetPassword, H as forgetPasswordCallback, w as freshSessionMiddleware, a0 as getAccessToken, l as getEndpoints, p as getSession, q as getSessionFromCtx, o as getSessionQuerySchema, a5 as isSimpleRequest, _ as linkSocialAccount, x as listSessions, Z as listUserAccounts, X as ok, a4 as originCheck, a3 as originCheckMiddleware, a1 as refreshToken, v as requestOnlySessionMiddleware, D as requestPasswordReset, G as requestPasswordResetCallback, J as resetPassword, B as revokeOtherSessions, y as revokeSession, z as revokeSessions, r as router, N as sendVerificationEmail, L as sendVerificationEmailFn, u as sensitiveSessionMiddleware, t as sessionMiddleware, R as setPassword, m as signInEmail, s as signInSocial, C as signOut, Y as signUpEmail, $ as unlinkAccount, P as updateUser, O as verifyEmail } from '../shared/better-auth.BUpnjBGu.js';
6
+ export { a2 as accountInfo, n as callbackOAuth, U as changeEmail, Q as changePassword, k as checkEndpointConflicts, K as createEmailVerificationToken, S as deleteUser, T as deleteUserCallback, V as error, E as forgetPassword, H as forgetPasswordCallback, w as freshSessionMiddleware, a0 as getAccessToken, l as getEndpoints, p as getSession, q as getSessionFromCtx, o as getSessionQuerySchema, a5 as isSimpleRequest, _ as linkSocialAccount, x as listSessions, Z as listUserAccounts, X as ok, a4 as originCheck, a3 as originCheckMiddleware, a1 as refreshToken, v as requestOnlySessionMiddleware, D as requestPasswordReset, G as requestPasswordResetCallback, J as resetPassword, B as revokeOtherSessions, y as revokeSession, z as revokeSessions, r as router, N as sendVerificationEmail, L as sendVerificationEmailFn, u as sensitiveSessionMiddleware, t as sessionMiddleware, R as setPassword, m as signInEmail, s as signInSocial, C as signOut, Y as signUpEmail, $ as unlinkAccount, P as updateUser, O as verifyEmail } from '../shared/better-auth.BG5AQFLC.js';
7
7
  import '../shared/better-auth.DNnBkMGu.js';
8
8
  import 'zod';
9
9
  import 'zod/v4/core';
@@ -707,6 +707,16 @@ const router = (ctx, options) => {
707
707
  if (response && "response" in response) {
708
708
  return response.response;
709
709
  }
710
+ if (response && "request" in response) {
711
+ const rateLimitResponse = await onRequestRateLimit(
712
+ response.request,
713
+ ctx
714
+ );
715
+ if (rateLimitResponse) {
716
+ return rateLimitResponse;
717
+ }
718
+ return response.request;
719
+ }
710
720
  }
711
721
  }
712
722
  return onRequestRateLimit(req, ctx);
@@ -6,11 +6,11 @@ export * from 'nanostores';
6
6
  import * as _better_fetch_fetch from '@better-fetch/fetch';
7
7
  import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
8
8
  export * from '@better-fetch/fetch';
9
- import { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes, S as SessionQueryParams } from '../shared/better-auth.Cs6Q8Z6v.cjs';
10
- export { A as AtomListener, C as ClientOptions, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e as Store } from '../shared/better-auth.Cs6Q8Z6v.cjs';
9
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes, i as SessionQueryParams } from '../shared/better-auth.CtsjRPyi.cjs';
10
+ export { A as AtomListener, C as ClientOptions, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.CtsjRPyi.cjs';
11
11
  import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.DNnBkMGu.cjs';
12
12
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
13
- import '../shared/better-auth.Cj7kf8Ev.cjs';
13
+ import '../shared/better-auth.DYFBBatY.cjs';
14
14
  import 'packages/core/dist/oauth2';
15
15
  import 'better-call';
16
16
  import '@better-auth/core/env';
@@ -6,11 +6,11 @@ export * from 'nanostores';
6
6
  import * as _better_fetch_fetch from '@better-fetch/fetch';
7
7
  import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
8
8
  export * from '@better-fetch/fetch';
9
- import { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes, S as SessionQueryParams } from '../shared/better-auth.DM5lkN2F.mjs';
10
- export { A as AtomListener, C as ClientOptions, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e as Store } from '../shared/better-auth.DM5lkN2F.mjs';
9
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes, i as SessionQueryParams } from '../shared/better-auth.BcYH5m45.mjs';
10
+ export { A as AtomListener, C as ClientOptions, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.BcYH5m45.mjs';
11
11
  import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.DNnBkMGu.mjs';
12
12
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
13
- import '../shared/better-auth.CafnB7YV.mjs';
13
+ import '../shared/better-auth.D8pZHsR7.mjs';
14
14
  import 'packages/core/dist/oauth2';
15
15
  import 'better-call';
16
16
  import '@better-auth/core/env';
@@ -6,11 +6,11 @@ export * from 'nanostores';
6
6
  import * as _better_fetch_fetch from '@better-fetch/fetch';
7
7
  import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
8
8
  export * from '@better-fetch/fetch';
9
- import { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes, S as SessionQueryParams } from '../shared/better-auth.BvP1ioeI.js';
10
- export { A as AtomListener, C as ClientOptions, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e as Store } from '../shared/better-auth.BvP1ioeI.js';
9
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes, i as SessionQueryParams } from '../shared/better-auth.4x_9xnje.js';
10
+ export { A as AtomListener, C as ClientOptions, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.4x_9xnje.js';
11
11
  import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.DNnBkMGu.js';
12
12
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
13
- import '../shared/better-auth.BUpnjBGu.js';
13
+ import '../shared/better-auth.BG5AQFLC.js';
14
14
  import 'packages/core/dist/oauth2';
15
15
  import 'better-call';
16
16
  import '@better-auth/core/env';
@@ -4,12 +4,12 @@ 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 { I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.Cs6Q8Z6v.cjs';
7
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, i as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.CtsjRPyi.cjs';
8
8
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from '@better-auth/core';
9
9
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DNnBkMGu.cjs';
10
10
  import { DependencyList } from '@lynx-js/react';
11
11
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
12
- import '../../shared/better-auth.Cj7kf8Ev.cjs';
12
+ import '../../shared/better-auth.DYFBBatY.cjs';
13
13
  import 'packages/core/dist/oauth2';
14
14
  import 'better-call';
15
15
  import '@better-auth/core/env';
@@ -4,12 +4,12 @@ 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 { I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.DM5lkN2F.mjs';
7
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, i as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.BcYH5m45.mjs';
8
8
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from '@better-auth/core';
9
9
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DNnBkMGu.mjs';
10
10
  import { DependencyList } from '@lynx-js/react';
11
11
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
12
- import '../../shared/better-auth.CafnB7YV.mjs';
12
+ import '../../shared/better-auth.D8pZHsR7.mjs';
13
13
  import 'packages/core/dist/oauth2';
14
14
  import 'better-call';
15
15
  import '@better-auth/core/env';
@@ -4,12 +4,12 @@ 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 { I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.BvP1ioeI.js';
7
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, i as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.4x_9xnje.js';
8
8
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from '@better-auth/core';
9
9
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DNnBkMGu.js';
10
10
  import { DependencyList } from '@lynx-js/react';
11
11
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
12
- import '../../shared/better-auth.BUpnjBGu.js';
12
+ import '../../shared/better-auth.BG5AQFLC.js';
13
13
  import 'packages/core/dist/oauth2';
14
14
  import 'better-call';
15
15
  import '@better-auth/core/env';
@@ -4,7 +4,7 @@ import * as _better_auth_core from '@better-auth/core';
4
4
  import { BetterAuthOptions, ClientStore, BetterAuthPlugin } from '@better-auth/core';
5
5
  import { DBFieldAttribute, User } from '@better-auth/core/db';
6
6
  import { a as Prettify } from '../../shared/better-auth.DNnBkMGu.cjs';
7
- import { S as SessionQueryParams } from '../../shared/better-auth.Cs6Q8Z6v.cjs';
7
+ import { i as SessionQueryParams } from '../../shared/better-auth.CtsjRPyi.cjs';
8
8
  import * as nanostores from 'nanostores';
9
9
  import { atom } from 'nanostores';
10
10
  import * as _better_fetch_fetch from '@better-fetch/fetch';
@@ -36,7 +36,7 @@ import 'better-call';
36
36
  import 'packages/core/dist/db';
37
37
  import 'packages/core/dist';
38
38
  import '../../plugins/organization/access/index.cjs';
39
- import '../../shared/better-auth.Cj7kf8Ev.cjs';
39
+ import '../../shared/better-auth.DYFBBatY.cjs';
40
40
  import 'packages/core/dist/oauth2';
41
41
  import '@better-auth/core/env';
42
42
  import '../../shared/better-auth.CtDEK5dv.cjs';
@@ -591,7 +591,7 @@ declare const passkeyClient: () => {
591
591
  "/passkey/authenticate": "POST";
592
592
  };
593
593
  atomListeners: ({
594
- matcher(path: string): path is "/passkey/verify-registration" | "/passkey/delete-passkey" | "/passkey/update-passkey" | "/sign-out";
594
+ matcher(path: string): path is "/sign-out" | "/passkey/verify-registration" | "/passkey/delete-passkey" | "/passkey/update-passkey";
595
595
  signal: "$listPasskeys";
596
596
  } | {
597
597
  matcher: (path: string) => path is "/passkey/verify-authentication";
@@ -4,7 +4,7 @@ import * as _better_auth_core from '@better-auth/core';
4
4
  import { BetterAuthOptions, ClientStore, BetterAuthPlugin } from '@better-auth/core';
5
5
  import { DBFieldAttribute, User } from '@better-auth/core/db';
6
6
  import { a as Prettify } from '../../shared/better-auth.DNnBkMGu.mjs';
7
- import { S as SessionQueryParams } from '../../shared/better-auth.DM5lkN2F.mjs';
7
+ import { i as SessionQueryParams } from '../../shared/better-auth.BcYH5m45.mjs';
8
8
  import * as nanostores from 'nanostores';
9
9
  import { atom } from 'nanostores';
10
10
  import * as _better_fetch_fetch from '@better-fetch/fetch';
@@ -36,7 +36,7 @@ import 'better-call';
36
36
  import 'packages/core/dist/db';
37
37
  import 'packages/core/dist';
38
38
  import '../../plugins/organization/access/index.mjs';
39
- import '../../shared/better-auth.CafnB7YV.mjs';
39
+ import '../../shared/better-auth.D8pZHsR7.mjs';
40
40
  import 'packages/core/dist/oauth2';
41
41
  import '@better-auth/core/env';
42
42
  import '../../shared/better-auth.5wJlMsTX.mjs';
@@ -591,7 +591,7 @@ declare const passkeyClient: () => {
591
591
  "/passkey/authenticate": "POST";
592
592
  };
593
593
  atomListeners: ({
594
- matcher(path: string): path is "/passkey/verify-registration" | "/passkey/delete-passkey" | "/passkey/update-passkey" | "/sign-out";
594
+ matcher(path: string): path is "/sign-out" | "/passkey/verify-registration" | "/passkey/delete-passkey" | "/passkey/update-passkey";
595
595
  signal: "$listPasskeys";
596
596
  } | {
597
597
  matcher: (path: string) => path is "/passkey/verify-authentication";
@@ -4,7 +4,7 @@ import * as _better_auth_core from '@better-auth/core';
4
4
  import { BetterAuthOptions, ClientStore, BetterAuthPlugin } from '@better-auth/core';
5
5
  import { DBFieldAttribute, User } from '@better-auth/core/db';
6
6
  import { a as Prettify } from '../../shared/better-auth.DNnBkMGu.js';
7
- import { S as SessionQueryParams } from '../../shared/better-auth.BvP1ioeI.js';
7
+ import { i as SessionQueryParams } from '../../shared/better-auth.4x_9xnje.js';
8
8
  import * as nanostores from 'nanostores';
9
9
  import { atom } from 'nanostores';
10
10
  import * as _better_fetch_fetch from '@better-fetch/fetch';
@@ -36,7 +36,7 @@ import 'better-call';
36
36
  import 'packages/core/dist/db';
37
37
  import 'packages/core/dist';
38
38
  import '../../plugins/organization/access/index.js';
39
- import '../../shared/better-auth.BUpnjBGu.js';
39
+ import '../../shared/better-auth.BG5AQFLC.js';
40
40
  import 'packages/core/dist/oauth2';
41
41
  import '@better-auth/core/env';
42
42
  import '../../shared/better-auth.DyhDNJOb.js';
@@ -591,7 +591,7 @@ declare const passkeyClient: () => {
591
591
  "/passkey/authenticate": "POST";
592
592
  };
593
593
  atomListeners: ({
594
- matcher(path: string): path is "/passkey/verify-registration" | "/passkey/delete-passkey" | "/passkey/update-passkey" | "/sign-out";
594
+ matcher(path: string): path is "/sign-out" | "/passkey/verify-registration" | "/passkey/delete-passkey" | "/passkey/update-passkey";
595
595
  signal: "$listPasskeys";
596
596
  } | {
597
597
  matcher: (path: string) => path is "/passkey/verify-authentication";
@@ -4,12 +4,12 @@ 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 { I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.Cs6Q8Z6v.cjs';
7
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, i as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.CtsjRPyi.cjs';
8
8
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from '@better-auth/core';
9
9
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DNnBkMGu.cjs';
10
10
  import { DependencyList } from 'react';
11
11
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
12
- import '../../shared/better-auth.Cj7kf8Ev.cjs';
12
+ import '../../shared/better-auth.DYFBBatY.cjs';
13
13
  import 'packages/core/dist/oauth2';
14
14
  import 'better-call';
15
15
  import '@better-auth/core/env';
@@ -4,12 +4,12 @@ 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 { I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.DM5lkN2F.mjs';
7
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, i as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.BcYH5m45.mjs';
8
8
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from '@better-auth/core';
9
9
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DNnBkMGu.mjs';
10
10
  import { DependencyList } from 'react';
11
11
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
12
- import '../../shared/better-auth.CafnB7YV.mjs';
12
+ import '../../shared/better-auth.D8pZHsR7.mjs';
13
13
  import 'packages/core/dist/oauth2';
14
14
  import 'better-call';
15
15
  import '@better-auth/core/env';
@@ -4,12 +4,12 @@ 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 { I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.BvP1ioeI.js';
7
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, i as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.4x_9xnje.js';
8
8
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from '@better-auth/core';
9
9
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DNnBkMGu.js';
10
10
  import { DependencyList } from 'react';
11
11
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
12
- import '../../shared/better-auth.BUpnjBGu.js';
12
+ import '../../shared/better-auth.BG5AQFLC.js';
13
13
  import 'packages/core/dist/oauth2';
14
14
  import 'better-call';
15
15
  import '@better-auth/core/env';
@@ -1,13 +1,13 @@
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 { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.Cs6Q8Z6v.cjs';
4
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.CtsjRPyi.cjs';
5
5
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from '@better-auth/core';
6
6
  import { Accessor } from 'solid-js';
7
7
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DNnBkMGu.cjs';
8
8
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
9
9
  export * from 'nanostores';
10
- import '../../shared/better-auth.Cj7kf8Ev.cjs';
10
+ import '../../shared/better-auth.DYFBBatY.cjs';
11
11
  import 'packages/core/dist/oauth2';
12
12
  import 'better-call';
13
13
  import '@better-auth/core/env';
@@ -27,15 +27,15 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
27
27
  data: InferClientAPI<Option> extends {
28
28
  getSession: () => Promise<infer Res>;
29
29
  } ? Res extends {
30
+ data: infer S;
31
+ error: null;
32
+ } | {
30
33
  data: null;
31
34
  error: {
32
35
  message?: string | undefined;
33
36
  status: number;
34
37
  statusText: string;
35
38
  };
36
- } | {
37
- data: infer S;
38
- error: null;
39
39
  } ? S : Res extends Record<string, any> ? Res : never : never;
40
40
  isPending: boolean;
41
41
  isRefetching: boolean;
@@ -45,15 +45,15 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
45
45
  Session: NonNullable<InferClientAPI<Option> extends {
46
46
  getSession: () => Promise<infer Res>;
47
47
  } ? Res extends {
48
+ data: infer S;
49
+ error: null;
50
+ } | {
48
51
  data: null;
49
52
  error: {
50
53
  message?: string | undefined;
51
54
  status: number;
52
55
  statusText: string;
53
56
  };
54
- } | {
55
- data: infer S;
56
- error: null;
57
57
  } ? S : Res extends Record<string, any> ? Res : never : never>;
58
58
  };
59
59
  $fetch: _better_fetch_fetch.BetterFetch<{
@@ -1,13 +1,13 @@
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 { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.DM5lkN2F.mjs';
4
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BcYH5m45.mjs';
5
5
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from '@better-auth/core';
6
6
  import { Accessor } from 'solid-js';
7
7
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DNnBkMGu.mjs';
8
8
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
9
9
  export * from 'nanostores';
10
- import '../../shared/better-auth.CafnB7YV.mjs';
10
+ import '../../shared/better-auth.D8pZHsR7.mjs';
11
11
  import 'packages/core/dist/oauth2';
12
12
  import 'better-call';
13
13
  import '@better-auth/core/env';
@@ -27,15 +27,15 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
27
27
  data: InferClientAPI<Option> extends {
28
28
  getSession: () => Promise<infer Res>;
29
29
  } ? Res extends {
30
+ data: infer S;
31
+ error: null;
32
+ } | {
30
33
  data: null;
31
34
  error: {
32
35
  message?: string | undefined;
33
36
  status: number;
34
37
  statusText: string;
35
38
  };
36
- } | {
37
- data: infer S;
38
- error: null;
39
39
  } ? S : Res extends Record<string, any> ? Res : never : never;
40
40
  isPending: boolean;
41
41
  isRefetching: boolean;
@@ -45,15 +45,15 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
45
45
  Session: NonNullable<InferClientAPI<Option> extends {
46
46
  getSession: () => Promise<infer Res>;
47
47
  } ? Res extends {
48
+ data: infer S;
49
+ error: null;
50
+ } | {
48
51
  data: null;
49
52
  error: {
50
53
  message?: string | undefined;
51
54
  status: number;
52
55
  statusText: string;
53
56
  };
54
- } | {
55
- data: infer S;
56
- error: null;
57
57
  } ? S : Res extends Record<string, any> ? Res : never : never>;
58
58
  };
59
59
  $fetch: _better_fetch_fetch.BetterFetch<{
@@ -1,13 +1,13 @@
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 { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BvP1ioeI.js';
4
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.4x_9xnje.js';
5
5
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from '@better-auth/core';
6
6
  import { Accessor } from 'solid-js';
7
7
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DNnBkMGu.js';
8
8
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
9
9
  export * from 'nanostores';
10
- import '../../shared/better-auth.BUpnjBGu.js';
10
+ import '../../shared/better-auth.BG5AQFLC.js';
11
11
  import 'packages/core/dist/oauth2';
12
12
  import 'better-call';
13
13
  import '@better-auth/core/env';
@@ -27,15 +27,15 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
27
27
  data: InferClientAPI<Option> extends {
28
28
  getSession: () => Promise<infer Res>;
29
29
  } ? Res extends {
30
+ data: infer S;
31
+ error: null;
32
+ } | {
30
33
  data: null;
31
34
  error: {
32
35
  message?: string | undefined;
33
36
  status: number;
34
37
  statusText: string;
35
38
  };
36
- } | {
37
- data: infer S;
38
- error: null;
39
39
  } ? S : Res extends Record<string, any> ? Res : never : never;
40
40
  isPending: boolean;
41
41
  isRefetching: boolean;
@@ -45,15 +45,15 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
45
45
  Session: NonNullable<InferClientAPI<Option> extends {
46
46
  getSession: () => Promise<infer Res>;
47
47
  } ? Res extends {
48
+ data: infer S;
49
+ error: null;
50
+ } | {
48
51
  data: null;
49
52
  error: {
50
53
  message?: string | undefined;
51
54
  status: number;
52
55
  statusText: string;
53
56
  };
54
- } | {
55
- data: infer S;
56
- error: null;
57
57
  } ? S : Res extends Record<string, any> ? Res : never : never>;
58
58
  };
59
59
  $fetch: _better_fetch_fetch.BetterFetch<{
@@ -4,11 +4,11 @@ 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 { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.Cs6Q8Z6v.cjs';
7
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.CtsjRPyi.cjs';
8
8
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from '@better-auth/core';
9
9
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DNnBkMGu.cjs';
10
10
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
11
- import '../../shared/better-auth.Cj7kf8Ev.cjs';
11
+ import '../../shared/better-auth.DYFBBatY.cjs';
12
12
  import 'packages/core/dist/oauth2';
13
13
  import 'better-call';
14
14
  import '@better-auth/core/env';
@@ -4,11 +4,11 @@ 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 { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.DM5lkN2F.mjs';
7
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BcYH5m45.mjs';
8
8
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from '@better-auth/core';
9
9
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DNnBkMGu.mjs';
10
10
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
11
- import '../../shared/better-auth.CafnB7YV.mjs';
11
+ import '../../shared/better-auth.D8pZHsR7.mjs';
12
12
  import 'packages/core/dist/oauth2';
13
13
  import 'better-call';
14
14
  import '@better-auth/core/env';
@@ -4,11 +4,11 @@ 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 { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BvP1ioeI.js';
7
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.4x_9xnje.js';
8
8
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from '@better-auth/core';
9
9
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DNnBkMGu.js';
10
10
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
11
- import '../../shared/better-auth.BUpnjBGu.js';
11
+ import '../../shared/better-auth.BG5AQFLC.js';
12
12
  import 'packages/core/dist/oauth2';
13
13
  import 'better-call';
14
14
  import '@better-auth/core/env';
@@ -4,11 +4,11 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
4
4
  import { BetterFetchError } from '@better-fetch/fetch';
5
5
  export * from '@better-fetch/fetch';
6
6
  import { DeepReadonly, Ref } from 'vue';
7
- import { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.Cs6Q8Z6v.cjs';
7
+ import { I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.CtsjRPyi.cjs';
8
8
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from '@better-auth/core';
9
9
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DNnBkMGu.cjs';
10
10
  import { BASE_ERROR_CODES } from '@better-auth/core/error';
11
- import '../../shared/better-auth.Cj7kf8Ev.cjs';
11
+ import '../../shared/better-auth.DYFBBatY.cjs';
12
12
  import 'packages/core/dist/oauth2';
13
13
  import 'better-call';
14
14
  import '@better-auth/core/env';
@@ -29,15 +29,15 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
29
29
  data: InferClientAPI<Option> extends {
30
30
  getSession: () => Promise<infer Res>;
31
31
  } ? Res extends {
32
- data: infer S;
33
- error: null;
34
- } | {
35
32
  data: null;
36
33
  error: {
37
34
  message?: string | undefined;
38
35
  status: number;
39
36
  statusText: string;
40
37
  };
38
+ } | {
39
+ data: infer S;
40
+ error: null;
41
41
  } ? S : Res extends Record<string, any> ? Res : never : never;
42
42
  isPending: boolean;
43
43
  isRefetching: boolean;
@@ -47,15 +47,15 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
47
47
  data: Ref<InferClientAPI<Option> extends {
48
48
  getSession: () => Promise<infer Res>;
49
49
  } ? Res extends {
50
- data: infer S;
51
- error: null;
52
- } | {
53
50
  data: null;
54
51
  error: {
55
52
  message?: string | undefined;
56
53
  status: number;
57
54
  statusText: string;
58
55
  };
56
+ } | {
57
+ data: infer S;
58
+ error: null;
59
59
  } ? S : Res extends Record<string, any> ? Res : never : never>;
60
60
  isPending: false;
61
61
  error: Ref<{
@@ -69,15 +69,15 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
69
69
  Session: NonNullable<InferClientAPI<Option> extends {
70
70
  getSession: () => Promise<infer Res>;
71
71
  } ? Res extends {
72
- data: infer S;
73
- error: null;
74
- } | {
75
72
  data: null;
76
73
  error: {
77
74
  message?: string | undefined;
78
75
  status: number;
79
76
  statusText: string;
80
77
  };
78
+ } | {
79
+ data: infer S;
80
+ error: null;
81
81
  } ? S : Res extends Record<string, any> ? Res : never : never>;
82
82
  };
83
83
  $fetch: _better_fetch_fetch.BetterFetch<{