better-auth 1.1.7-beta.2 → 1.1.7-beta.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.
Files changed (81) hide show
  1. package/dist/adapters/drizzle.d.cts +1 -1
  2. package/dist/adapters/drizzle.d.ts +1 -1
  3. package/dist/adapters/kysely.d.cts +1 -1
  4. package/dist/adapters/kysely.d.ts +1 -1
  5. package/dist/adapters/memory.d.cts +1 -1
  6. package/dist/adapters/memory.d.ts +1 -1
  7. package/dist/adapters/mongodb.d.cts +1 -1
  8. package/dist/adapters/mongodb.d.ts +1 -1
  9. package/dist/adapters/prisma.d.cts +1 -1
  10. package/dist/adapters/prisma.d.ts +1 -1
  11. package/dist/api.d.cts +1 -1
  12. package/dist/api.d.ts +1 -1
  13. package/dist/client/plugins.d.cts +2 -2
  14. package/dist/client/plugins.d.ts +2 -2
  15. package/dist/client.d.cts +1 -1
  16. package/dist/client.d.ts +1 -1
  17. package/dist/cookies.d.cts +1 -1
  18. package/dist/cookies.d.ts +1 -1
  19. package/dist/db.d.cts +2 -2
  20. package/dist/db.d.ts +2 -2
  21. package/dist/{index-C90HUvxS.d.ts → index-C1MweRkC.d.ts} +10 -10
  22. package/dist/{index-8fqX8-_k.d.cts → index-Dpgm40FH.d.cts} +10 -10
  23. package/dist/index.d.cts +4 -4
  24. package/dist/index.d.ts +4 -4
  25. package/dist/next-js.d.cts +1 -1
  26. package/dist/next-js.d.ts +1 -1
  27. package/dist/node.d.cts +1 -1
  28. package/dist/node.d.ts +1 -1
  29. package/dist/oauth2.d.cts +2 -2
  30. package/dist/oauth2.d.ts +2 -2
  31. package/dist/plugin/custom-session.d.cts +1 -1
  32. package/dist/plugin/custom-session.d.ts +1 -1
  33. package/dist/plugins/admin.d.cts +1 -1
  34. package/dist/plugins/admin.d.ts +1 -1
  35. package/dist/plugins/anonymous.d.cts +1 -1
  36. package/dist/plugins/anonymous.d.ts +1 -1
  37. package/dist/plugins/bearer.d.cts +1 -1
  38. package/dist/plugins/bearer.d.ts +1 -1
  39. package/dist/plugins/email-otp.d.cts +13 -13
  40. package/dist/plugins/email-otp.d.ts +13 -13
  41. package/dist/plugins/generic-oauth.d.cts +1 -1
  42. package/dist/plugins/generic-oauth.d.ts +1 -1
  43. package/dist/plugins/jwt.d.cts +1 -1
  44. package/dist/plugins/jwt.d.ts +1 -1
  45. package/dist/plugins/multi-session.d.cts +1 -1
  46. package/dist/plugins/multi-session.d.ts +1 -1
  47. package/dist/plugins/oidc-provider.d.cts +1 -1
  48. package/dist/plugins/oidc-provider.d.ts +1 -1
  49. package/dist/plugins/organization.d.cts +2 -2
  50. package/dist/plugins/organization.d.ts +2 -2
  51. package/dist/plugins/passkey.d.cts +1 -1
  52. package/dist/plugins/passkey.d.ts +1 -1
  53. package/dist/plugins/phone-number.d.cts +1 -1
  54. package/dist/plugins/phone-number.d.ts +1 -1
  55. package/dist/plugins/sso.d.cts +1 -1
  56. package/dist/plugins/sso.d.ts +1 -1
  57. package/dist/plugins/two-factor.d.cts +1 -1
  58. package/dist/plugins/two-factor.d.ts +1 -1
  59. package/dist/plugins/username.d.cts +1 -1
  60. package/dist/plugins/username.d.ts +1 -1
  61. package/dist/plugins.d.cts +3 -4
  62. package/dist/plugins.d.ts +3 -4
  63. package/dist/react.d.cts +1 -1
  64. package/dist/react.d.ts +1 -1
  65. package/dist/solid-start.d.cts +1 -1
  66. package/dist/solid-start.d.ts +1 -1
  67. package/dist/solid.d.cts +1 -1
  68. package/dist/solid.d.ts +1 -1
  69. package/dist/{state-Cdmno7re.d.cts → state-B99Ib5xU.d.cts} +1 -1
  70. package/dist/{state-Da6l-Yr4.d.ts → state-DuWk0eqW.d.ts} +1 -1
  71. package/dist/svelte-kit.d.cts +1 -1
  72. package/dist/svelte-kit.d.ts +1 -1
  73. package/dist/svelte.d.cts +1 -1
  74. package/dist/svelte.d.ts +1 -1
  75. package/dist/types.d.cts +2 -2
  76. package/dist/types.d.ts +2 -2
  77. package/dist/vue.d.cts +1 -1
  78. package/dist/vue.d.ts +1 -1
  79. package/package.json +1 -1
  80. package/dist/{auth-pghYMPeF.d.cts → auth-CANDmYqA.d.cts} +4 -4
  81. package/dist/{auth-DsLay_dm.d.ts → auth-EFXw818u.d.ts} +4 -4
@@ -1,7 +1,7 @@
1
1
  import * as better_call from 'better-call';
2
2
  import { APIError } from 'better-call';
3
3
  import { z } from 'zod';
4
- import { H as HookEndpointContext } from '../auth-pghYMPeF.cjs';
4
+ import { H as HookEndpointContext } from '../auth-CANDmYqA.cjs';
5
5
  import 'kysely';
6
6
  import '../helper-Bi8FQwDD.cjs';
7
7
  import '../index-BxVuNcHr.cjs';
@@ -53,11 +53,11 @@ declare const emailOTP: (options: EmailOTPOptions) => {
53
53
  email: z.ZodString;
54
54
  type: z.ZodEnum<["email-verification", "sign-in", "forget-password"]>;
55
55
  }, "strip", z.ZodTypeAny, {
56
- type: "sign-in" | "forget-password" | "email-verification";
57
56
  email: string;
58
- }, {
59
57
  type: "sign-in" | "forget-password" | "email-verification";
58
+ }, {
60
59
  email: string;
60
+ type: "sign-in" | "forget-password" | "email-verification";
61
61
  }>;
62
62
  metadata: {
63
63
  openapi: {
@@ -93,11 +93,11 @@ declare const emailOTP: (options: EmailOTPOptions) => {
93
93
  email: z.ZodString;
94
94
  type: z.ZodEnum<["email-verification", "sign-in", "forget-password"]>;
95
95
  }, "strip", z.ZodTypeAny, {
96
- type: "sign-in" | "forget-password" | "email-verification";
97
96
  email: string;
98
- }, {
99
97
  type: "sign-in" | "forget-password" | "email-verification";
98
+ }, {
100
99
  email: string;
100
+ type: "sign-in" | "forget-password" | "email-verification";
101
101
  }>;
102
102
  metadata: {
103
103
  openapi: {
@@ -132,11 +132,11 @@ declare const emailOTP: (options: EmailOTPOptions) => {
132
132
  email: z.ZodString;
133
133
  type: z.ZodEnum<["email-verification", "sign-in", "forget-password"]>;
134
134
  }, "strip", z.ZodTypeAny, {
135
- type: "sign-in" | "forget-password" | "email-verification";
136
135
  email: string;
137
- }, {
138
136
  type: "sign-in" | "forget-password" | "email-verification";
137
+ }, {
139
138
  email: string;
139
+ type: "sign-in" | "forget-password" | "email-verification";
140
140
  }>;
141
141
  metadata: {
142
142
  SERVER_ONLY: true;
@@ -166,11 +166,11 @@ declare const emailOTP: (options: EmailOTPOptions) => {
166
166
  email: z.ZodString;
167
167
  type: z.ZodEnum<["email-verification", "sign-in", "forget-password"]>;
168
168
  }, "strip", z.ZodTypeAny, {
169
- type: "sign-in" | "forget-password" | "email-verification";
170
169
  email: string;
171
- }, {
172
170
  type: "sign-in" | "forget-password" | "email-verification";
171
+ }, {
173
172
  email: string;
173
+ type: "sign-in" | "forget-password" | "email-verification";
174
174
  }>;
175
175
  metadata: {
176
176
  SERVER_ONLY: true;
@@ -201,11 +201,11 @@ declare const emailOTP: (options: EmailOTPOptions) => {
201
201
  email: z.ZodString;
202
202
  type: z.ZodEnum<["email-verification", "sign-in", "forget-password"]>;
203
203
  }, "strip", z.ZodTypeAny, {
204
- type: "sign-in" | "forget-password" | "email-verification";
205
204
  email: string;
206
- }, {
207
205
  type: "sign-in" | "forget-password" | "email-verification";
206
+ }, {
208
207
  email: string;
208
+ type: "sign-in" | "forget-password" | "email-verification";
209
209
  }>;
210
210
  metadata: {
211
211
  SERVER_ONLY: true;
@@ -244,11 +244,11 @@ declare const emailOTP: (options: EmailOTPOptions) => {
244
244
  email: z.ZodString;
245
245
  type: z.ZodEnum<["email-verification", "sign-in", "forget-password"]>;
246
246
  }, "strip", z.ZodTypeAny, {
247
- type: "sign-in" | "forget-password" | "email-verification";
248
247
  email: string;
249
- }, {
250
248
  type: "sign-in" | "forget-password" | "email-verification";
249
+ }, {
251
250
  email: string;
251
+ type: "sign-in" | "forget-password" | "email-verification";
252
252
  }>;
253
253
  metadata: {
254
254
  SERVER_ONLY: true;
@@ -1,7 +1,7 @@
1
1
  import * as better_call from 'better-call';
2
2
  import { APIError } from 'better-call';
3
3
  import { z } from 'zod';
4
- import { H as HookEndpointContext } from '../auth-DsLay_dm.js';
4
+ import { H as HookEndpointContext } from '../auth-EFXw818u.js';
5
5
  import 'kysely';
6
6
  import '../helper-Bi8FQwDD.js';
7
7
  import '../index-4d8GiU4g.js';
@@ -53,11 +53,11 @@ declare const emailOTP: (options: EmailOTPOptions) => {
53
53
  email: z.ZodString;
54
54
  type: z.ZodEnum<["email-verification", "sign-in", "forget-password"]>;
55
55
  }, "strip", z.ZodTypeAny, {
56
- type: "sign-in" | "forget-password" | "email-verification";
57
56
  email: string;
58
- }, {
59
57
  type: "sign-in" | "forget-password" | "email-verification";
58
+ }, {
60
59
  email: string;
60
+ type: "sign-in" | "forget-password" | "email-verification";
61
61
  }>;
62
62
  metadata: {
63
63
  openapi: {
@@ -93,11 +93,11 @@ declare const emailOTP: (options: EmailOTPOptions) => {
93
93
  email: z.ZodString;
94
94
  type: z.ZodEnum<["email-verification", "sign-in", "forget-password"]>;
95
95
  }, "strip", z.ZodTypeAny, {
96
- type: "sign-in" | "forget-password" | "email-verification";
97
96
  email: string;
98
- }, {
99
97
  type: "sign-in" | "forget-password" | "email-verification";
98
+ }, {
100
99
  email: string;
100
+ type: "sign-in" | "forget-password" | "email-verification";
101
101
  }>;
102
102
  metadata: {
103
103
  openapi: {
@@ -132,11 +132,11 @@ declare const emailOTP: (options: EmailOTPOptions) => {
132
132
  email: z.ZodString;
133
133
  type: z.ZodEnum<["email-verification", "sign-in", "forget-password"]>;
134
134
  }, "strip", z.ZodTypeAny, {
135
- type: "sign-in" | "forget-password" | "email-verification";
136
135
  email: string;
137
- }, {
138
136
  type: "sign-in" | "forget-password" | "email-verification";
137
+ }, {
139
138
  email: string;
139
+ type: "sign-in" | "forget-password" | "email-verification";
140
140
  }>;
141
141
  metadata: {
142
142
  SERVER_ONLY: true;
@@ -166,11 +166,11 @@ declare const emailOTP: (options: EmailOTPOptions) => {
166
166
  email: z.ZodString;
167
167
  type: z.ZodEnum<["email-verification", "sign-in", "forget-password"]>;
168
168
  }, "strip", z.ZodTypeAny, {
169
- type: "sign-in" | "forget-password" | "email-verification";
170
169
  email: string;
171
- }, {
172
170
  type: "sign-in" | "forget-password" | "email-verification";
171
+ }, {
173
172
  email: string;
173
+ type: "sign-in" | "forget-password" | "email-verification";
174
174
  }>;
175
175
  metadata: {
176
176
  SERVER_ONLY: true;
@@ -201,11 +201,11 @@ declare const emailOTP: (options: EmailOTPOptions) => {
201
201
  email: z.ZodString;
202
202
  type: z.ZodEnum<["email-verification", "sign-in", "forget-password"]>;
203
203
  }, "strip", z.ZodTypeAny, {
204
- type: "sign-in" | "forget-password" | "email-verification";
205
204
  email: string;
206
- }, {
207
205
  type: "sign-in" | "forget-password" | "email-verification";
206
+ }, {
208
207
  email: string;
208
+ type: "sign-in" | "forget-password" | "email-verification";
209
209
  }>;
210
210
  metadata: {
211
211
  SERVER_ONLY: true;
@@ -244,11 +244,11 @@ declare const emailOTP: (options: EmailOTPOptions) => {
244
244
  email: z.ZodString;
245
245
  type: z.ZodEnum<["email-verification", "sign-in", "forget-password"]>;
246
246
  }, "strip", z.ZodTypeAny, {
247
- type: "sign-in" | "forget-password" | "email-verification";
248
247
  email: string;
249
- }, {
250
248
  type: "sign-in" | "forget-password" | "email-verification";
249
+ }, {
251
250
  email: string;
251
+ type: "sign-in" | "forget-password" | "email-verification";
252
252
  }>;
253
253
  metadata: {
254
254
  SERVER_ONLY: true;
@@ -1,5 +1,5 @@
1
1
  import * as better_call from 'better-call';
2
- import { k as AuthContext, U as User } from '../auth-pghYMPeF.cjs';
2
+ import { k as AuthContext, U as User } from '../auth-CANDmYqA.cjs';
3
3
  import { z } from 'zod';
4
4
  import { O as OAuthProvider, a as OAuth2Tokens } from '../index-BxVuNcHr.cjs';
5
5
  import 'kysely';
@@ -1,5 +1,5 @@
1
1
  import * as better_call from 'better-call';
2
- import { k as AuthContext, U as User } from '../auth-DsLay_dm.js';
2
+ import { k as AuthContext, U as User } from '../auth-EFXw818u.js';
3
3
  import { z } from 'zod';
4
4
  import { O as OAuthProvider, a as OAuth2Tokens } from '../index-4d8GiU4g.js';
5
5
  import 'kysely';
@@ -1,5 +1,5 @@
1
1
  import * as better_call from 'better-call';
2
- import { U as User, S as Session, I as InferOptionSchema } from '../auth-pghYMPeF.cjs';
2
+ import { U as User, S as Session, I as InferOptionSchema } from '../auth-CANDmYqA.cjs';
3
3
  import 'kysely';
4
4
  import 'zod';
5
5
  import '../helper-Bi8FQwDD.cjs';
@@ -1,5 +1,5 @@
1
1
  import * as better_call from 'better-call';
2
- import { U as User, S as Session, I as InferOptionSchema } from '../auth-DsLay_dm.js';
2
+ import { U as User, S as Session, I as InferOptionSchema } from '../auth-EFXw818u.js';
3
3
  import 'kysely';
4
4
  import 'zod';
5
5
  import '../helper-Bi8FQwDD.js';
@@ -1,7 +1,7 @@
1
1
  import * as better_call from 'better-call';
2
2
  import { APIError } from 'better-call';
3
3
  import { z } from 'zod';
4
- import { S as Session, U as User, H as HookEndpointContext } from '../auth-pghYMPeF.cjs';
4
+ import { S as Session, U as User, H as HookEndpointContext } from '../auth-CANDmYqA.cjs';
5
5
  import 'kysely';
6
6
  import '../helper-Bi8FQwDD.cjs';
7
7
  import '../index-BxVuNcHr.cjs';
@@ -1,7 +1,7 @@
1
1
  import * as better_call from 'better-call';
2
2
  import { APIError } from 'better-call';
3
3
  import { z } from 'zod';
4
- import { S as Session, U as User, H as HookEndpointContext } from '../auth-DsLay_dm.js';
4
+ import { S as Session, U as User, H as HookEndpointContext } from '../auth-EFXw818u.js';
5
5
  import 'kysely';
6
6
  import '../helper-Bi8FQwDD.js';
7
7
  import '../index-4d8GiU4g.js';
@@ -1,6 +1,6 @@
1
1
  import * as better_call from 'better-call';
2
2
  import { z } from 'zod';
3
- import { H as HookEndpointContext } from '../auth-pghYMPeF.cjs';
3
+ import { H as HookEndpointContext } from '../auth-CANDmYqA.cjs';
4
4
  import 'kysely';
5
5
  import '../helper-Bi8FQwDD.cjs';
6
6
  import '../index-BxVuNcHr.cjs';
@@ -1,6 +1,6 @@
1
1
  import * as better_call from 'better-call';
2
2
  import { z } from 'zod';
3
- import { H as HookEndpointContext } from '../auth-DsLay_dm.js';
3
+ import { H as HookEndpointContext } from '../auth-EFXw818u.js';
4
4
  import 'kysely';
5
5
  import '../helper-Bi8FQwDD.js';
6
6
  import '../index-4d8GiU4g.js';
@@ -1,8 +1,8 @@
1
- export { O as OrganizationOptions, o as organization } from '../index-8fqX8-_k.cjs';
1
+ export { O as OrganizationOptions, o as organization } from '../index-Dpgm40FH.cjs';
2
2
  import 'zod';
3
3
  import 'better-call';
4
4
  import '../helper-Bi8FQwDD.cjs';
5
- import '../auth-pghYMPeF.cjs';
5
+ import '../auth-CANDmYqA.cjs';
6
6
  import 'kysely';
7
7
  import '../index-BxVuNcHr.cjs';
8
8
  import 'jose';
@@ -1,8 +1,8 @@
1
- export { O as OrganizationOptions, o as organization } from '../index-C90HUvxS.js';
1
+ export { O as OrganizationOptions, o as organization } from '../index-C1MweRkC.js';
2
2
  import 'zod';
3
3
  import 'better-call';
4
4
  import '../helper-Bi8FQwDD.js';
5
- import '../auth-DsLay_dm.js';
5
+ import '../auth-EFXw818u.js';
6
6
  import 'kysely';
7
7
  import '../index-4d8GiU4g.js';
8
8
  import 'jose';
@@ -6,7 +6,7 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
6
6
  import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
7
7
  import * as better_call from 'better-call';
8
8
  import { z } from 'zod';
9
- import { I as InferOptionSchema } from '../auth-pghYMPeF.cjs';
9
+ import { I as InferOptionSchema } from '../auth-CANDmYqA.cjs';
10
10
  import 'kysely';
11
11
  import '../helper-Bi8FQwDD.cjs';
12
12
  import '../index-BxVuNcHr.cjs';
@@ -6,7 +6,7 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
6
6
  import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
7
7
  import * as better_call from 'better-call';
8
8
  import { z } from 'zod';
9
- import { I as InferOptionSchema } from '../auth-DsLay_dm.js';
9
+ import { I as InferOptionSchema } from '../auth-EFXw818u.js';
10
10
  import 'kysely';
11
11
  import '../helper-Bi8FQwDD.js';
12
12
  import '../index-4d8GiU4g.js';
@@ -1,6 +1,6 @@
1
1
  import * as better_call from 'better-call';
2
2
  import { z } from 'zod';
3
- import { U as User, I as InferOptionSchema } from '../auth-pghYMPeF.cjs';
3
+ import { U as User, I as InferOptionSchema } from '../auth-CANDmYqA.cjs';
4
4
  import 'kysely';
5
5
  import '../helper-Bi8FQwDD.cjs';
6
6
  import '../index-BxVuNcHr.cjs';
@@ -1,6 +1,6 @@
1
1
  import * as better_call from 'better-call';
2
2
  import { z } from 'zod';
3
- import { U as User, I as InferOptionSchema } from '../auth-DsLay_dm.js';
3
+ import { U as User, I as InferOptionSchema } from '../auth-EFXw818u.js';
4
4
  import 'kysely';
5
5
  import '../helper-Bi8FQwDD.js';
6
6
  import '../index-4d8GiU4g.js';
@@ -1,7 +1,7 @@
1
1
  import * as better_call from 'better-call';
2
2
  import { z } from 'zod';
3
3
  import { a as OAuth2Tokens } from '../index-BxVuNcHr.cjs';
4
- import { U as User } from '../auth-pghYMPeF.cjs';
4
+ import { U as User } from '../auth-CANDmYqA.cjs';
5
5
  import '../helper-Bi8FQwDD.cjs';
6
6
  import 'jose';
7
7
  import 'kysely';
@@ -1,7 +1,7 @@
1
1
  import * as better_call from 'better-call';
2
2
  import { z } from 'zod';
3
3
  import { a as OAuth2Tokens } from '../index-4d8GiU4g.js';
4
- import { U as User } from '../auth-DsLay_dm.js';
4
+ import { U as User } from '../auth-EFXw818u.js';
5
5
  import '../helper-Bi8FQwDD.js';
6
6
  import 'jose';
7
7
  import 'kysely';
@@ -1,7 +1,7 @@
1
1
  import * as better_call from 'better-call';
2
2
  import { APIError } from 'better-call';
3
3
  import { z } from 'zod';
4
- import { I as InferOptionSchema, U as User, h as AuthEndpoint, S as Session, H as HookEndpointContext } from '../auth-pghYMPeF.cjs';
4
+ import { I as InferOptionSchema, U as User, h as AuthEndpoint, S as Session, H as HookEndpointContext } from '../auth-CANDmYqA.cjs';
5
5
  import { L as LiteralString } from '../helper-Bi8FQwDD.cjs';
6
6
  import * as _better_fetch_fetch from '@better-fetch/fetch';
7
7
  import 'kysely';
@@ -1,7 +1,7 @@
1
1
  import * as better_call from 'better-call';
2
2
  import { APIError } from 'better-call';
3
3
  import { z } from 'zod';
4
- import { I as InferOptionSchema, U as User, h as AuthEndpoint, S as Session, H as HookEndpointContext } from '../auth-DsLay_dm.js';
4
+ import { I as InferOptionSchema, U as User, h as AuthEndpoint, S as Session, H as HookEndpointContext } from '../auth-EFXw818u.js';
5
5
  import { L as LiteralString } from '../helper-Bi8FQwDD.js';
6
6
  import * as _better_fetch_fetch from '@better-fetch/fetch';
7
7
  import 'kysely';
@@ -1,6 +1,6 @@
1
1
  import * as better_call from 'better-call';
2
2
  import { z } from 'zod';
3
- import { H as HookEndpointContext } from '../auth-pghYMPeF.cjs';
3
+ import { H as HookEndpointContext } from '../auth-CANDmYqA.cjs';
4
4
  import 'kysely';
5
5
  import '../helper-Bi8FQwDD.cjs';
6
6
  import '../index-BxVuNcHr.cjs';
@@ -1,6 +1,6 @@
1
1
  import * as better_call from 'better-call';
2
2
  import { z } from 'zod';
3
- import { H as HookEndpointContext } from '../auth-DsLay_dm.js';
3
+ import { H as HookEndpointContext } from '../auth-EFXw818u.js';
4
4
  import 'kysely';
5
5
  import '../helper-Bi8FQwDD.js';
6
6
  import '../index-4d8GiU4g.js';
@@ -1,9 +1,9 @@
1
- export { O as OrganizationOptions, o as organization } from './index-8fqX8-_k.cjs';
1
+ export { O as OrganizationOptions, o as organization } from './index-Dpgm40FH.cjs';
2
2
  export { TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UserWithTwoFactor, twoFactor, twoFactorClient } from './plugins/two-factor.cjs';
3
3
  export { username } from './plugins/username.cjs';
4
4
  export { bearer } from './plugins/bearer.cjs';
5
- import { H as HookEndpointContext } from './auth-pghYMPeF.cjs';
6
- export { h as AuthEndpoint, i as AuthMiddleware, A as AuthPluginSchema, d as BetterAuthPlugin, c as HookAfterHandler, b as HookBeforeHandler, I as InferOptionSchema, e as InferPluginErrorCodes, g as createAuthEndpoint, f as createAuthMiddleware, o as optionsMiddleware } from './auth-pghYMPeF.cjs';
5
+ import { H as HookEndpointContext } from './auth-CANDmYqA.cjs';
6
+ export { h as AuthEndpoint, i as AuthMiddleware, A as AuthPluginSchema, d as BetterAuthPlugin, c as HookAfterHandler, b as HookBeforeHandler, I as InferOptionSchema, e as InferPluginErrorCodes, g as createAuthEndpoint, f as createAuthMiddleware, o as optionsMiddleware } from './auth-CANDmYqA.cjs';
7
7
  export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.cjs';
8
8
  export { magicLink } from './plugins/magic-link.cjs';
9
9
  export { UserWithPhoneNumber, phoneNumber } from './plugins/phone-number.cjs';
@@ -17,7 +17,6 @@ export { oneTap } from './plugins/one-tap.cjs';
17
17
  import * as better_call from 'better-call';
18
18
  import { APIError } from 'better-call';
19
19
  import { z } from 'zod';
20
- export * from 'zod';
21
20
  export { customSession } from './plugin/custom-session.cjs';
22
21
  export { OpenAPIOptions, openAPI } from './plugins/open-api.cjs';
23
22
  export { oidcProvider } from './plugins/oidc-provider.cjs';
package/dist/plugins.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export { O as OrganizationOptions, o as organization } from './index-C90HUvxS.js';
1
+ export { O as OrganizationOptions, o as organization } from './index-C1MweRkC.js';
2
2
  export { TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UserWithTwoFactor, twoFactor, twoFactorClient } from './plugins/two-factor.js';
3
3
  export { username } from './plugins/username.js';
4
4
  export { bearer } from './plugins/bearer.js';
5
- import { H as HookEndpointContext } from './auth-DsLay_dm.js';
6
- export { h as AuthEndpoint, i as AuthMiddleware, A as AuthPluginSchema, d as BetterAuthPlugin, c as HookAfterHandler, b as HookBeforeHandler, I as InferOptionSchema, e as InferPluginErrorCodes, g as createAuthEndpoint, f as createAuthMiddleware, o as optionsMiddleware } from './auth-DsLay_dm.js';
5
+ import { H as HookEndpointContext } from './auth-EFXw818u.js';
6
+ export { h as AuthEndpoint, i as AuthMiddleware, A as AuthPluginSchema, d as BetterAuthPlugin, c as HookAfterHandler, b as HookBeforeHandler, I as InferOptionSchema, e as InferPluginErrorCodes, g as createAuthEndpoint, f as createAuthMiddleware, o as optionsMiddleware } from './auth-EFXw818u.js';
7
7
  export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.js';
8
8
  export { magicLink } from './plugins/magic-link.js';
9
9
  export { UserWithPhoneNumber, phoneNumber } from './plugins/phone-number.js';
@@ -17,7 +17,6 @@ export { oneTap } from './plugins/one-tap.js';
17
17
  import * as better_call from 'better-call';
18
18
  import { APIError } from 'better-call';
19
19
  import { z } from 'zod';
20
- export * from 'zod';
21
20
  export { customSession } from './plugin/custom-session.js';
22
21
  export { OpenAPIOptions, openAPI } from './plugins/open-api.js';
23
22
  export { oidcProvider } from './plugins/oidc-provider.js';
package/dist/react.d.cts CHANGED
@@ -8,7 +8,7 @@ export * from '@better-fetch/fetch';
8
8
  import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.cjs';
9
9
  import { U as UnionToIntersection, P as PrettifyDeep } from './helper-Bi8FQwDD.cjs';
10
10
  import { DependencyList } from 'react';
11
- import { a as BASE_ERROR_CODES } from './auth-pghYMPeF.cjs';
11
+ import { a as BASE_ERROR_CODES } from './auth-CANDmYqA.cjs';
12
12
  import 'better-call';
13
13
  import 'kysely';
14
14
  import './index-BxVuNcHr.cjs';
package/dist/react.d.ts CHANGED
@@ -8,7 +8,7 @@ export * from '@better-fetch/fetch';
8
8
  import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.js';
9
9
  import { U as UnionToIntersection, P as PrettifyDeep } from './helper-Bi8FQwDD.js';
10
10
  import { DependencyList } from 'react';
11
- import { a as BASE_ERROR_CODES } from './auth-DsLay_dm.js';
11
+ import { a as BASE_ERROR_CODES } from './auth-EFXw818u.js';
12
12
  import 'better-call';
13
13
  import 'kysely';
14
14
  import './index-4d8GiU4g.js';
@@ -1,4 +1,4 @@
1
- import { j as Auth } from './auth-pghYMPeF.cjs';
1
+ import { j as Auth } from './auth-CANDmYqA.cjs';
2
2
  import 'kysely';
3
3
  import 'better-call';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { j as Auth } from './auth-DsLay_dm.js';
1
+ import { j as Auth } from './auth-EFXw818u.js';
2
2
  import 'kysely';
3
3
  import 'better-call';
4
4
  import 'zod';
package/dist/solid.d.cts CHANGED
@@ -4,7 +4,7 @@ import { BetterFetchError } from '@better-fetch/fetch';
4
4
  import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.cjs';
5
5
  import { Accessor } from 'solid-js';
6
6
  import { U as UnionToIntersection, P as PrettifyDeep } from './helper-Bi8FQwDD.cjs';
7
- import { a as BASE_ERROR_CODES } from './auth-pghYMPeF.cjs';
7
+ import { a as BASE_ERROR_CODES } from './auth-CANDmYqA.cjs';
8
8
  import 'nanostores';
9
9
  import 'better-call';
10
10
  import 'kysely';
package/dist/solid.d.ts CHANGED
@@ -4,7 +4,7 @@ import { BetterFetchError } from '@better-fetch/fetch';
4
4
  import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.js';
5
5
  import { Accessor } from 'solid-js';
6
6
  import { U as UnionToIntersection, P as PrettifyDeep } from './helper-Bi8FQwDD.js';
7
- import { a as BASE_ERROR_CODES } from './auth-DsLay_dm.js';
7
+ import { a as BASE_ERROR_CODES } from './auth-EFXw818u.js';
8
8
  import 'nanostores';
9
9
  import 'better-call';
10
10
  import 'kysely';
@@ -1,4 +1,4 @@
1
- import { G as GenericEndpointContext } from './auth-pghYMPeF.cjs';
1
+ import { G as GenericEndpointContext } from './auth-CANDmYqA.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-DsLay_dm.js';
1
+ import { G as GenericEndpointContext } from './auth-EFXw818u.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-pghYMPeF.cjs';
1
+ import { B as BetterAuthOptions } from './auth-CANDmYqA.cjs';
2
2
  import 'kysely';
3
3
  import 'better-call';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions } from './auth-DsLay_dm.js';
1
+ import { B as BetterAuthOptions } from './auth-EFXw818u.js';
2
2
  import 'kysely';
3
3
  import 'better-call';
4
4
  import 'zod';
package/dist/svelte.d.cts CHANGED
@@ -5,7 +5,7 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
5
5
  import { BetterFetchError } from '@better-fetch/fetch';
6
6
  import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.cjs';
7
7
  import { U as UnionToIntersection, P as PrettifyDeep } from './helper-Bi8FQwDD.cjs';
8
- import { a as BASE_ERROR_CODES } from './auth-pghYMPeF.cjs';
8
+ import { a as BASE_ERROR_CODES } from './auth-CANDmYqA.cjs';
9
9
  import 'better-call';
10
10
  import 'kysely';
11
11
  import './index-BxVuNcHr.cjs';
package/dist/svelte.d.ts CHANGED
@@ -5,7 +5,7 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
5
5
  import { BetterFetchError } from '@better-fetch/fetch';
6
6
  import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.js';
7
7
  import { U as UnionToIntersection, P as PrettifyDeep } from './helper-Bi8FQwDD.js';
8
- import { a as BASE_ERROR_CODES } from './auth-DsLay_dm.js';
8
+ import { a as BASE_ERROR_CODES } from './auth-EFXw818u.js';
9
9
  import 'better-call';
10
10
  import 'kysely';
11
11
  import './index-4d8GiU4g.js';
package/dist/types.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { d as BetterAuthPlugin, j as Auth, S as Session, U as User, ad as InferFieldsInputClient, ab as InferFieldsOutput } from './auth-pghYMPeF.cjs';
2
- export { v as Account, x as Adapter, y as AdapterInstance, s as AdditionalSessionFieldsInput, t as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, r as AdditionalUserFieldsOutput, k as AuthContext, A as AuthPluginSchema, B as BetterAuthOptions, C as FilterActions, F as FilteredAPI, G as GenericEndpointContext, c as HookAfterHandler, b as HookBeforeHandler, H as HookEndpointContext, E as InferAPI, I as InferOptionSchema, e as InferPluginErrorCodes, u as InferPluginTypes, m as InferSession, D as InferSessionAPI, l as InferUser, M as Models, R as RateLimit, z as SecondaryStorage, V as Verification, W as Where, w as init } from './auth-pghYMPeF.cjs';
1
+ import { d as BetterAuthPlugin, j as Auth, S as Session, U as User, ad as InferFieldsInputClient, ab as InferFieldsOutput } from './auth-CANDmYqA.cjs';
2
+ export { v as Account, x as Adapter, y as AdapterInstance, s as AdditionalSessionFieldsInput, t as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, r as AdditionalUserFieldsOutput, k as AuthContext, A as AuthPluginSchema, B as BetterAuthOptions, C as FilterActions, F as FilteredAPI, G as GenericEndpointContext, c as HookAfterHandler, b as HookBeforeHandler, H as HookEndpointContext, E as InferAPI, I as InferOptionSchema, e as InferPluginErrorCodes, u as InferPluginTypes, m as InferSession, D as InferSessionAPI, l as InferUser, M as Models, R as RateLimit, z as SecondaryStorage, V as Verification, W as Where, w as init } from './auth-CANDmYqA.cjs';
3
3
  import { U as UnionToIntersection, H as HasRequiredKeys, b as Prettify, L as LiteralString, S as StripEmptyObjects } from './helper-Bi8FQwDD.cjs';
4
4
  export { D as DeepPartial, E as Expand, a as LiteralNumber, d as LiteralUnion, O as OmitId, c as PreserveJSDoc, P as PrettifyDeep, R as RequiredKeysOf, W as WithoutEmpty } from './helper-Bi8FQwDD.cjs';
5
5
  import { BetterFetchOption, BetterFetchResponse, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { d as BetterAuthPlugin, j as Auth, S as Session, U as User, ad as InferFieldsInputClient, ab as InferFieldsOutput } from './auth-DsLay_dm.js';
2
- export { v as Account, x as Adapter, y as AdapterInstance, s as AdditionalSessionFieldsInput, t as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, r as AdditionalUserFieldsOutput, k as AuthContext, A as AuthPluginSchema, B as BetterAuthOptions, C as FilterActions, F as FilteredAPI, G as GenericEndpointContext, c as HookAfterHandler, b as HookBeforeHandler, H as HookEndpointContext, E as InferAPI, I as InferOptionSchema, e as InferPluginErrorCodes, u as InferPluginTypes, m as InferSession, D as InferSessionAPI, l as InferUser, M as Models, R as RateLimit, z as SecondaryStorage, V as Verification, W as Where, w as init } from './auth-DsLay_dm.js';
1
+ import { d as BetterAuthPlugin, j as Auth, S as Session, U as User, ad as InferFieldsInputClient, ab as InferFieldsOutput } from './auth-EFXw818u.js';
2
+ export { v as Account, x as Adapter, y as AdapterInstance, s as AdditionalSessionFieldsInput, t as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, r as AdditionalUserFieldsOutput, k as AuthContext, A as AuthPluginSchema, B as BetterAuthOptions, C as FilterActions, F as FilteredAPI, G as GenericEndpointContext, c as HookAfterHandler, b as HookBeforeHandler, H as HookEndpointContext, E as InferAPI, I as InferOptionSchema, e as InferPluginErrorCodes, u as InferPluginTypes, m as InferSession, D as InferSessionAPI, l as InferUser, M as Models, R as RateLimit, z as SecondaryStorage, V as Verification, W as Where, w as init } from './auth-EFXw818u.js';
3
3
  import { U as UnionToIntersection, H as HasRequiredKeys, b as Prettify, L as LiteralString, S as StripEmptyObjects } from './helper-Bi8FQwDD.js';
4
4
  export { D as DeepPartial, E as Expand, a as LiteralNumber, d as LiteralUnion, O as OmitId, c as PreserveJSDoc, P as PrettifyDeep, R as RequiredKeysOf, W as WithoutEmpty } from './helper-Bi8FQwDD.js';
5
5
  import { BetterFetchOption, BetterFetchResponse, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
package/dist/vue.d.cts CHANGED
@@ -5,7 +5,7 @@ import { BetterFetchError } from '@better-fetch/fetch';
5
5
  import { DeepReadonly, Ref } from 'vue';
6
6
  import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.cjs';
7
7
  import { U as UnionToIntersection, P as PrettifyDeep } from './helper-Bi8FQwDD.cjs';
8
- import { a as BASE_ERROR_CODES } from './auth-pghYMPeF.cjs';
8
+ import { a as BASE_ERROR_CODES } from './auth-CANDmYqA.cjs';
9
9
  import 'better-call';
10
10
  import 'kysely';
11
11
  import './index-BxVuNcHr.cjs';
package/dist/vue.d.ts CHANGED
@@ -5,7 +5,7 @@ import { BetterFetchError } from '@better-fetch/fetch';
5
5
  import { DeepReadonly, Ref } from 'vue';
6
6
  import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.js';
7
7
  import { U as UnionToIntersection, P as PrettifyDeep } from './helper-Bi8FQwDD.js';
8
- import { a as BASE_ERROR_CODES } from './auth-DsLay_dm.js';
8
+ import { a as BASE_ERROR_CODES } from './auth-EFXw818u.js';
9
9
  import 'better-call';
10
10
  import 'kysely';
11
11
  import './index-4d8GiU4g.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-auth",
3
- "version": "1.1.7-beta.2",
3
+ "version": "1.1.7-beta.3",
4
4
  "description": "The most comprehensive authentication library for TypeScript.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -591,15 +591,15 @@ declare const verificationSchema: z.ZodObject<{
591
591
  expiresAt: z.ZodDate;
592
592
  identifier: z.ZodString;
593
593
  }, "strip", z.ZodTypeAny, {
594
- value: string;
595
594
  id: string;
595
+ value: string;
596
596
  createdAt: Date;
597
597
  updatedAt: Date;
598
598
  expiresAt: Date;
599
599
  identifier: string;
600
600
  }, {
601
- value: string;
602
601
  id: string;
602
+ value: string;
603
603
  expiresAt: Date;
604
604
  identifier: string;
605
605
  createdAt?: Date | undefined;
@@ -1615,16 +1615,16 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
1615
1615
  }[]>;
1616
1616
  updateAccount: (accountId: string, data: Partial<Account>) => Promise<any>;
1617
1617
  createVerificationValue: (data: Omit<Verification, "createdAt" | "id" | "updatedAt"> & Partial<Verification>) => Promise<{
1618
- value: string;
1619
1618
  id: string;
1619
+ value: string;
1620
1620
  createdAt: Date;
1621
1621
  updatedAt: Date;
1622
1622
  expiresAt: Date;
1623
1623
  identifier: string;
1624
1624
  }>;
1625
1625
  findVerificationValue: (identifier: string) => Promise<{
1626
- value: string;
1627
1626
  id: string;
1627
+ value: string;
1628
1628
  createdAt: Date;
1629
1629
  updatedAt: Date;
1630
1630
  expiresAt: Date;