better-auth 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/adapters/drizzle.cjs +1 -1
  2. package/dist/adapters/drizzle.d.cts +1 -1
  3. package/dist/adapters/drizzle.d.ts +1 -1
  4. package/dist/adapters/drizzle.js +1 -1
  5. package/dist/adapters/kysely.d.cts +1 -1
  6. package/dist/adapters/kysely.d.ts +1 -1
  7. package/dist/adapters/memory.d.cts +1 -1
  8. package/dist/adapters/memory.d.ts +1 -1
  9. package/dist/adapters/mongodb.d.cts +1 -1
  10. package/dist/adapters/mongodb.d.ts +1 -1
  11. package/dist/adapters/prisma.d.cts +1 -1
  12. package/dist/adapters/prisma.d.ts +1 -1
  13. package/dist/api.d.cts +1 -1
  14. package/dist/api.d.ts +1 -1
  15. package/dist/{auth-DF-f5DGM.d.ts → auth-BXAJa4bS.d.ts} +12 -0
  16. package/dist/{auth-BubrmklB.d.cts → auth-JcgLy3mH.d.cts} +12 -0
  17. package/dist/client/plugins.d.cts +3 -3
  18. package/dist/client/plugins.d.ts +3 -3
  19. package/dist/client.d.cts +1 -1
  20. package/dist/client.d.ts +1 -1
  21. package/dist/cookies.d.cts +1 -1
  22. package/dist/cookies.d.ts +1 -1
  23. package/dist/db.d.cts +2 -2
  24. package/dist/db.d.ts +2 -2
  25. package/dist/{index-CwnHFdnT.d.cts → index-B3tboD6m.d.cts} +1 -1
  26. package/dist/{index-aMRluDla.d.ts → index-Bn2pZ0pb.d.ts} +1 -1
  27. package/dist/index.d.cts +2 -2
  28. package/dist/index.d.ts +2 -2
  29. package/dist/next-js.d.cts +1 -1
  30. package/dist/next-js.d.ts +1 -1
  31. package/dist/node.d.cts +1 -1
  32. package/dist/node.d.ts +1 -1
  33. package/dist/oauth2.d.cts +2 -2
  34. package/dist/oauth2.d.ts +2 -2
  35. package/dist/plugins.cjs +1 -1
  36. package/dist/plugins.d.cts +3 -3
  37. package/dist/plugins.d.ts +3 -3
  38. package/dist/plugins.js +1 -1
  39. package/dist/react.d.cts +1 -1
  40. package/dist/react.d.ts +1 -1
  41. package/dist/solid-start.d.cts +1 -1
  42. package/dist/solid-start.d.ts +1 -1
  43. package/dist/solid.d.cts +1 -1
  44. package/dist/solid.d.ts +1 -1
  45. package/dist/{state-CQJXHclh.d.cts → state-CMDbIivR.d.cts} +1 -1
  46. package/dist/{state-C_runTlH.d.ts → state-MOcw4xXw.d.ts} +1 -1
  47. package/dist/svelte-kit.d.cts +1 -1
  48. package/dist/svelte-kit.d.ts +1 -1
  49. package/dist/svelte.d.cts +1 -1
  50. package/dist/svelte.d.ts +1 -1
  51. package/dist/types.d.cts +2 -2
  52. package/dist/types.d.ts +2 -2
  53. package/dist/vue.d.cts +1 -1
  54. package/dist/vue.d.ts +1 -1
  55. package/package.json +1 -1
package/dist/react.d.cts CHANGED
@@ -6,7 +6,7 @@ import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
6
6
  import { ClientOptions, InferClientAPI, InferActions, BetterAuthClientPlugin, IsSignal } from './types.cjs';
7
7
  import { U as UnionToIntersection } from './helper-DxMBi7M2.cjs';
8
8
  import { DependencyList } from 'react';
9
- import './auth-BubrmklB.cjs';
9
+ import './auth-JcgLy3mH.cjs';
10
10
  import 'kysely';
11
11
  import 'better-call';
12
12
  import './index-PzUmElyX.cjs';
package/dist/react.d.ts CHANGED
@@ -6,7 +6,7 @@ import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
6
6
  import { ClientOptions, InferClientAPI, InferActions, BetterAuthClientPlugin, IsSignal } from './types.js';
7
7
  import { U as UnionToIntersection } from './helper-DxMBi7M2.js';
8
8
  import { DependencyList } from 'react';
9
- import './auth-DF-f5DGM.js';
9
+ import './auth-BXAJa4bS.js';
10
10
  import 'kysely';
11
11
  import 'better-call';
12
12
  import './index-CS8-YiCU.js';
@@ -1,4 +1,4 @@
1
- import { A as Auth } from './auth-BubrmklB.cjs';
1
+ import { A as Auth } from './auth-JcgLy3mH.cjs';
2
2
  import 'kysely';
3
3
  import 'zod';
4
4
  import 'better-call';
@@ -1,4 +1,4 @@
1
- import { A as Auth } from './auth-DF-f5DGM.js';
1
+ import { A as Auth } from './auth-BXAJa4bS.js';
2
2
  import 'kysely';
3
3
  import 'zod';
4
4
  import 'better-call';
package/dist/solid.d.cts CHANGED
@@ -4,7 +4,7 @@ import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
4
4
  import { ClientOptions, InferClientAPI, InferActions, BetterAuthClientPlugin, IsSignal } from './types.cjs';
5
5
  import { Accessor } from 'solid-js';
6
6
  import { U as UnionToIntersection } from './helper-DxMBi7M2.cjs';
7
- import './auth-BubrmklB.cjs';
7
+ import './auth-JcgLy3mH.cjs';
8
8
  import 'kysely';
9
9
  import 'better-call';
10
10
  import './index-PzUmElyX.cjs';
package/dist/solid.d.ts CHANGED
@@ -4,7 +4,7 @@ import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
4
4
  import { ClientOptions, InferClientAPI, InferActions, BetterAuthClientPlugin, IsSignal } from './types.js';
5
5
  import { Accessor } from 'solid-js';
6
6
  import { U as UnionToIntersection } from './helper-DxMBi7M2.js';
7
- import './auth-DF-f5DGM.js';
7
+ import './auth-BXAJa4bS.js';
8
8
  import 'kysely';
9
9
  import 'better-call';
10
10
  import './index-CS8-YiCU.js';
@@ -1,4 +1,4 @@
1
- import { G as GenericEndpointContext } from './auth-BubrmklB.cjs';
1
+ import { G as GenericEndpointContext } from './auth-JcgLy3mH.cjs';
2
2
 
3
3
  declare function generateState(c: GenericEndpointContext, link?: {
4
4
  email: string;
@@ -1,4 +1,4 @@
1
- import { G as GenericEndpointContext } from './auth-DF-f5DGM.js';
1
+ import { G as GenericEndpointContext } from './auth-BXAJa4bS.js';
2
2
 
3
3
  declare function generateState(c: GenericEndpointContext, link?: {
4
4
  email: string;
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions } from './auth-BubrmklB.cjs';
1
+ import { B as BetterAuthOptions } from './auth-JcgLy3mH.cjs';
2
2
  import 'kysely';
3
3
  import 'zod';
4
4
  import 'better-call';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions } from './auth-DF-f5DGM.js';
1
+ import { B as BetterAuthOptions } from './auth-BXAJa4bS.js';
2
2
  import 'kysely';
3
3
  import 'zod';
4
4
  import 'better-call';
package/dist/svelte.d.cts CHANGED
@@ -5,7 +5,7 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
5
5
  import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
6
6
  import { ClientOptions, InferClientAPI, InferActions, BetterAuthClientPlugin, IsSignal } from './types.cjs';
7
7
  import { U as UnionToIntersection } from './helper-DxMBi7M2.cjs';
8
- import './auth-BubrmklB.cjs';
8
+ import './auth-JcgLy3mH.cjs';
9
9
  import 'kysely';
10
10
  import 'better-call';
11
11
  import './index-PzUmElyX.cjs';
package/dist/svelte.d.ts CHANGED
@@ -5,7 +5,7 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
5
5
  import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
6
6
  import { ClientOptions, InferClientAPI, InferActions, BetterAuthClientPlugin, IsSignal } from './types.js';
7
7
  import { U as UnionToIntersection } from './helper-DxMBi7M2.js';
8
- import './auth-DF-f5DGM.js';
8
+ import './auth-BXAJa4bS.js';
9
9
  import 'kysely';
10
10
  import 'better-call';
11
11
  import './index-CS8-YiCU.js';
package/dist/types.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { j as BetterAuthPlugin, A as Auth, S as Session, U as User, Y as InferFieldsInputClient, V as InferFieldsOutput } from './auth-BubrmklB.cjs';
2
- export { l as Adapter, m as AdapterInstance, d as AdditionalSessionFieldsInput, e as AdditionalSessionFieldsOutput, a as AdditionalUserFieldsInput, c as AdditionalUserFieldsOutput, h as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, k as InferOptionSchema, g as InferPluginTypes, f as InferSession, I as InferUser, M as Models, P as PluginSchema, R as RateLimit, n as SecondaryStorage, W as Where, i as init } from './auth-BubrmklB.cjs';
1
+ import { j as BetterAuthPlugin, A as Auth, S as Session, U as User, Y as InferFieldsInputClient, V as InferFieldsOutput } from './auth-JcgLy3mH.cjs';
2
+ export { l as Adapter, m as AdapterInstance, d as AdditionalSessionFieldsInput, e as AdditionalSessionFieldsOutput, a as AdditionalUserFieldsInput, c as AdditionalUserFieldsOutput, h as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, k as InferOptionSchema, g as InferPluginTypes, f as InferSession, I as InferUser, M as Models, P as PluginSchema, R as RateLimit, n as SecondaryStorage, W as Where, i as init } from './auth-JcgLy3mH.cjs';
3
3
  import { U as UnionToIntersection, H as HasRequiredKeys, P as Prettify, S as StripEmptyObjects, L as LiteralString } from './helper-DxMBi7M2.cjs';
4
4
  export { D as DeepPartial, b as LiteralUnion, O as OmitId, a as PrettifyDeep, R as RequiredKeysOf, W as WithoutEmpty } from './helper-DxMBi7M2.cjs';
5
5
  import { BetterFetchOption, BetterFetchResponse, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { j as BetterAuthPlugin, A as Auth, S as Session, U as User, Y as InferFieldsInputClient, V as InferFieldsOutput } from './auth-DF-f5DGM.js';
2
- export { l as Adapter, m as AdapterInstance, d as AdditionalSessionFieldsInput, e as AdditionalSessionFieldsOutput, a as AdditionalUserFieldsInput, c as AdditionalUserFieldsOutput, h as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, k as InferOptionSchema, g as InferPluginTypes, f as InferSession, I as InferUser, M as Models, P as PluginSchema, R as RateLimit, n as SecondaryStorage, W as Where, i as init } from './auth-DF-f5DGM.js';
1
+ import { j as BetterAuthPlugin, A as Auth, S as Session, U as User, Y as InferFieldsInputClient, V as InferFieldsOutput } from './auth-BXAJa4bS.js';
2
+ export { l as Adapter, m as AdapterInstance, d as AdditionalSessionFieldsInput, e as AdditionalSessionFieldsOutput, a as AdditionalUserFieldsInput, c as AdditionalUserFieldsOutput, h as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, k as InferOptionSchema, g as InferPluginTypes, f as InferSession, I as InferUser, M as Models, P as PluginSchema, R as RateLimit, n as SecondaryStorage, W as Where, i as init } from './auth-BXAJa4bS.js';
3
3
  import { U as UnionToIntersection, H as HasRequiredKeys, P as Prettify, S as StripEmptyObjects, L as LiteralString } from './helper-DxMBi7M2.js';
4
4
  export { D as DeepPartial, b as LiteralUnion, O as OmitId, a as PrettifyDeep, R as RequiredKeysOf, W as WithoutEmpty } from './helper-DxMBi7M2.js';
5
5
  import { BetterFetchOption, BetterFetchResponse, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
package/dist/vue.d.cts CHANGED
@@ -5,7 +5,7 @@ import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
5
5
  import { DeepReadonly, Ref } from 'vue';
6
6
  import { ClientOptions, InferClientAPI, InferActions, BetterAuthClientPlugin, IsSignal } from './types.cjs';
7
7
  import { U as UnionToIntersection } from './helper-DxMBi7M2.cjs';
8
- import './auth-BubrmklB.cjs';
8
+ import './auth-JcgLy3mH.cjs';
9
9
  import 'kysely';
10
10
  import 'better-call';
11
11
  import './index-PzUmElyX.cjs';
package/dist/vue.d.ts CHANGED
@@ -5,7 +5,7 @@ import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
5
5
  import { DeepReadonly, Ref } from 'vue';
6
6
  import { ClientOptions, InferClientAPI, InferActions, BetterAuthClientPlugin, IsSignal } from './types.js';
7
7
  import { U as UnionToIntersection } from './helper-DxMBi7M2.js';
8
- import './auth-DF-f5DGM.js';
8
+ import './auth-BXAJa4bS.js';
9
9
  import 'kysely';
10
10
  import 'better-call';
11
11
  import './index-CS8-YiCU.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-auth",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "The most comprehensive authentication library for TypeScript.",
5
5
  "type": "module",
6
6
  "repository": {