better-auth 0.8.3-beta.4 → 0.8.3-beta.5

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 (53) 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 +6 -6
  14. package/dist/client/plugins.d.ts +6 -6
  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-DbSanUJ5.d.ts → index-uHjME6mS.d.ts} +28 -37
  22. package/dist/{index-v9In9L_y.d.cts → index-xSdbpM4W.d.cts} +28 -37
  23. package/dist/index.d.cts +2 -2
  24. package/dist/index.d.ts +2 -2
  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/plugins.cjs +5 -5
  32. package/dist/plugins.d.cts +9 -9
  33. package/dist/plugins.d.ts +9 -9
  34. package/dist/plugins.js +4 -4
  35. package/dist/react.d.cts +1 -1
  36. package/dist/react.d.ts +1 -1
  37. package/dist/solid-start.d.cts +1 -1
  38. package/dist/solid-start.d.ts +1 -1
  39. package/dist/solid.d.cts +1 -1
  40. package/dist/solid.d.ts +1 -1
  41. package/dist/{state-B-02czHC.d.ts → state-5tKc556n.d.ts} +1 -1
  42. package/dist/{state-D_ITqPUS.d.cts → state-BZ0Z8cQD.d.cts} +1 -1
  43. package/dist/svelte-kit.d.cts +1 -1
  44. package/dist/svelte-kit.d.ts +1 -1
  45. package/dist/svelte.d.cts +1 -1
  46. package/dist/svelte.d.ts +1 -1
  47. package/dist/types.d.cts +2 -2
  48. package/dist/types.d.ts +2 -2
  49. package/dist/vue.d.cts +1 -1
  50. package/dist/vue.d.ts +1 -1
  51. package/package.json +1 -1
  52. package/dist/{auth-rfAcL_Rw.d.cts → auth-A5nkNoqm.d.cts} +84 -84
  53. package/dist/{auth-miD4FiAv.d.ts → auth-B2oRhuJ8.d.ts} +84 -84
@@ -1,6 +1,6 @@
1
- export { A as AnonymousOptions, J as JwtOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, e as UserWithAnonymous, U as UserWithPhoneNumber, h as UserWithRole, i as admin, f as anonymous, n as emailOTP, j as genericOAuth, g as getPasskeyActions, k as jwt, m as magicLink, l as multiSession, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-v9In9L_y.cjs';
2
- import { H as HookEndpointContext } from './auth-rfAcL_Rw.cjs';
3
- export { z as AuthEndpoint, C as AuthMiddleware, j as BetterAuthPlugin, P as PluginSchema, y as createAuthEndpoint, x as createAuthMiddleware, w as optionsMiddleware } from './auth-rfAcL_Rw.cjs';
1
+ export { A as AnonymousOptions, J as JwtOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, e as UserWithAnonymous, U as UserWithPhoneNumber, h as UserWithRole, i as admin, f as anonymous, n as emailOTP, j as genericOAuth, g as getPasskeyActions, k as jwt, m as magicLink, l as multiSession, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-xSdbpM4W.cjs';
2
+ import { H as HookEndpointContext } from './auth-A5nkNoqm.cjs';
3
+ export { z as AuthEndpoint, C as AuthMiddleware, j as BetterAuthPlugin, P as PluginSchema, y as createAuthEndpoint, x as createAuthMiddleware, w as optionsMiddleware } from './auth-A5nkNoqm.cjs';
4
4
  export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.cjs';
5
5
  import * as better_call from 'better-call';
6
6
  import { z } from 'zod';
@@ -86,13 +86,13 @@ declare const oneTap: (options?: OneTapOptions) => {
86
86
  };
87
87
  accounts: {
88
88
  id: string;
89
- userId: string;
90
89
  providerId: string;
91
90
  accountId: string;
92
- expiresAt?: Date | null | undefined;
91
+ userId: string;
93
92
  accessToken?: string | null | undefined;
94
93
  refreshToken?: string | null | undefined;
95
94
  idToken?: string | null | undefined;
95
+ expiresAt?: Date | null | undefined;
96
96
  password?: string | null | undefined;
97
97
  }[];
98
98
  };
@@ -140,11 +140,11 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions) => {
140
140
  callbackURL: z.ZodString;
141
141
  cookies: z.ZodString;
142
142
  }, "strip", z.ZodTypeAny, {
143
- cookies: string;
144
143
  callbackURL: string;
145
- }, {
146
144
  cookies: string;
145
+ }, {
147
146
  callbackURL: string;
147
+ cookies: string;
148
148
  }>;
149
149
  }>]>(...ctx: C): Promise<C extends [{
150
150
  asResponse: true;
@@ -156,11 +156,11 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions) => {
156
156
  callbackURL: z.ZodString;
157
157
  cookies: z.ZodString;
158
158
  }, "strip", z.ZodTypeAny, {
159
- cookies: string;
160
159
  callbackURL: string;
161
- }, {
162
160
  cookies: string;
161
+ }, {
163
162
  callbackURL: string;
163
+ cookies: string;
164
164
  }>;
165
165
  };
166
166
  method: better_call.Method | better_call.Method[];
package/dist/plugins.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { A as AnonymousOptions, J as JwtOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, e as UserWithAnonymous, U as UserWithPhoneNumber, h as UserWithRole, i as admin, f as anonymous, n as emailOTP, j as genericOAuth, g as getPasskeyActions, k as jwt, m as magicLink, l as multiSession, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-DbSanUJ5.js';
2
- import { H as HookEndpointContext } from './auth-miD4FiAv.js';
3
- export { z as AuthEndpoint, C as AuthMiddleware, j as BetterAuthPlugin, P as PluginSchema, y as createAuthEndpoint, x as createAuthMiddleware, w as optionsMiddleware } from './auth-miD4FiAv.js';
1
+ export { A as AnonymousOptions, J as JwtOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, e as UserWithAnonymous, U as UserWithPhoneNumber, h as UserWithRole, i as admin, f as anonymous, n as emailOTP, j as genericOAuth, g as getPasskeyActions, k as jwt, m as magicLink, l as multiSession, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-uHjME6mS.js';
2
+ import { H as HookEndpointContext } from './auth-B2oRhuJ8.js';
3
+ export { z as AuthEndpoint, C as AuthMiddleware, j as BetterAuthPlugin, P as PluginSchema, y as createAuthEndpoint, x as createAuthMiddleware, w as optionsMiddleware } from './auth-B2oRhuJ8.js';
4
4
  export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.js';
5
5
  import * as better_call from 'better-call';
6
6
  import { z } from 'zod';
@@ -86,13 +86,13 @@ declare const oneTap: (options?: OneTapOptions) => {
86
86
  };
87
87
  accounts: {
88
88
  id: string;
89
- userId: string;
90
89
  providerId: string;
91
90
  accountId: string;
92
- expiresAt?: Date | null | undefined;
91
+ userId: string;
93
92
  accessToken?: string | null | undefined;
94
93
  refreshToken?: string | null | undefined;
95
94
  idToken?: string | null | undefined;
95
+ expiresAt?: Date | null | undefined;
96
96
  password?: string | null | undefined;
97
97
  }[];
98
98
  };
@@ -140,11 +140,11 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions) => {
140
140
  callbackURL: z.ZodString;
141
141
  cookies: z.ZodString;
142
142
  }, "strip", z.ZodTypeAny, {
143
- cookies: string;
144
143
  callbackURL: string;
145
- }, {
146
144
  cookies: string;
145
+ }, {
147
146
  callbackURL: string;
147
+ cookies: string;
148
148
  }>;
149
149
  }>]>(...ctx: C): Promise<C extends [{
150
150
  asResponse: true;
@@ -156,11 +156,11 @@ declare const oAuthProxy: (opts?: OAuthProxyOptions) => {
156
156
  callbackURL: z.ZodString;
157
157
  cookies: z.ZodString;
158
158
  }, "strip", z.ZodTypeAny, {
159
- cookies: string;
160
159
  callbackURL: string;
161
- }, {
162
160
  cookies: string;
161
+ }, {
163
162
  callbackURL: string;
163
+ cookies: string;
164
164
  }>;
165
165
  };
166
166
  method: better_call.Method | better_call.Method[];