@better-auth-ui/react 1.6.0 → 1.6.2

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 (211) hide show
  1. package/dist/components/auth/auth-provider.d.ts +4 -3
  2. package/dist/components/auth/auth-provider.js +24 -40
  3. package/dist/components/email/email-changed.d.ts +2 -2
  4. package/dist/components/email/email-changed.js +154 -68
  5. package/dist/components/email/email-localization.js +18 -23
  6. package/dist/components/email/email-styles.js +52 -77
  7. package/dist/components/email/email-verification.d.ts +2 -2
  8. package/dist/components/email/email-verification.js +138 -73
  9. package/dist/components/email/index.d.ts +9 -9
  10. package/dist/components/email/index.js +9 -9
  11. package/dist/components/email/magic-link.d.ts +2 -2
  12. package/dist/components/email/magic-link.js +139 -70
  13. package/dist/components/email/new-device.d.ts +2 -2
  14. package/dist/components/email/new-device.js +221 -88
  15. package/dist/components/email/otp-email.d.ts +2 -2
  16. package/dist/components/email/otp-email.js +127 -63
  17. package/dist/components/email/password-changed.d.ts +2 -2
  18. package/dist/components/email/password-changed.js +157 -74
  19. package/dist/components/email/reset-password.d.ts +2 -2
  20. package/dist/components/email/reset-password.js +138 -66
  21. package/dist/components/icons/apple.d.ts +1 -1
  22. package/dist/components/icons/apple.js +16 -9
  23. package/dist/components/icons/atlassian.d.ts +1 -1
  24. package/dist/components/icons/atlassian.js +38 -13
  25. package/dist/components/icons/cognito.d.ts +1 -1
  26. package/dist/components/icons/cognito.js +19 -9
  27. package/dist/components/icons/discord.d.ts +1 -1
  28. package/dist/components/icons/discord.js +16 -9
  29. package/dist/components/icons/dropbox.d.ts +1 -1
  30. package/dist/components/icons/dropbox.js +16 -9
  31. package/dist/components/icons/facebook.d.ts +1 -1
  32. package/dist/components/icons/facebook.js +19 -11
  33. package/dist/components/icons/figma.d.ts +1 -1
  34. package/dist/components/icons/figma.js +34 -12
  35. package/dist/components/icons/github.d.ts +1 -1
  36. package/dist/components/icons/github.js +16 -11
  37. package/dist/components/icons/gitlab.d.ts +1 -1
  38. package/dist/components/icons/gitlab.js +30 -9
  39. package/dist/components/icons/google.d.ts +1 -1
  40. package/dist/components/icons/google.js +39 -9
  41. package/dist/components/icons/huggingface.d.ts +1 -1
  42. package/dist/components/icons/huggingface.js +38 -9
  43. package/dist/components/icons/index.d.ts +35 -35
  44. package/dist/components/icons/index.js +35 -35
  45. package/dist/components/icons/kakao.d.ts +1 -1
  46. package/dist/components/icons/kakao.js +16 -11
  47. package/dist/components/icons/kick.d.ts +1 -1
  48. package/dist/components/icons/kick.js +20 -11
  49. package/dist/components/icons/line.d.ts +1 -1
  50. package/dist/components/icons/line.js +16 -9
  51. package/dist/components/icons/linear.d.ts +1 -1
  52. package/dist/components/icons/linear.js +16 -9
  53. package/dist/components/icons/linkedin.d.ts +1 -1
  54. package/dist/components/icons/linkedin.js +33 -9
  55. package/dist/components/icons/microsoft.d.ts +1 -1
  56. package/dist/components/icons/microsoft.js +30 -9
  57. package/dist/components/icons/naver.d.ts +1 -1
  58. package/dist/components/icons/naver.js +16 -9
  59. package/dist/components/icons/notion.d.ts +1 -1
  60. package/dist/components/icons/notion.js +16 -9
  61. package/dist/components/icons/paybin.d.ts +1 -1
  62. package/dist/components/icons/paybin.js +32 -8
  63. package/dist/components/icons/paypal.d.ts +1 -1
  64. package/dist/components/icons/paypal.js +30 -9
  65. package/dist/components/icons/polar.d.ts +1 -1
  66. package/dist/components/icons/polar.js +24 -9
  67. package/dist/components/icons/railway.d.ts +1 -1
  68. package/dist/components/icons/railway.js +16 -9
  69. package/dist/components/icons/reddit.d.ts +1 -1
  70. package/dist/components/icons/reddit.js +21 -9
  71. package/dist/components/icons/roblox.d.ts +1 -1
  72. package/dist/components/icons/roblox.js +17 -12
  73. package/dist/components/icons/salesforce.d.ts +1 -1
  74. package/dist/components/icons/salesforce.js +16 -9
  75. package/dist/components/icons/slack.d.ts +1 -1
  76. package/dist/components/icons/slack.js +30 -9
  77. package/dist/components/icons/spotify.d.ts +1 -1
  78. package/dist/components/icons/spotify.js +16 -9
  79. package/dist/components/icons/tiktok.d.ts +1 -1
  80. package/dist/components/icons/tiktok.js +23 -10
  81. package/dist/components/icons/twitch.d.ts +1 -1
  82. package/dist/components/icons/twitch.js +43 -12
  83. package/dist/components/icons/vercel.d.ts +1 -1
  84. package/dist/components/icons/vercel.js +16 -9
  85. package/dist/components/icons/vk.d.ts +1 -1
  86. package/dist/components/icons/vk.js +16 -9
  87. package/dist/components/icons/wechat.d.ts +1 -1
  88. package/dist/components/icons/wechat.js +16 -9
  89. package/dist/components/icons/x.d.ts +1 -1
  90. package/dist/components/icons/x.js +16 -9
  91. package/dist/components/icons/zoom.d.ts +1 -1
  92. package/dist/components/icons/zoom.js +69 -11
  93. package/dist/components/settings/account/theme-preview.js +286 -7
  94. package/dist/core.d.ts +1 -1
  95. package/dist/hooks/auth/use-auth-mutation.d.ts +2 -2
  96. package/dist/hooks/auth/use-auth-mutation.js +12 -9
  97. package/dist/hooks/auth/use-auth-query.d.ts +3 -3
  98. package/dist/hooks/auth/use-auth-query.js +12 -9
  99. package/dist/hooks/auth/use-authenticate.d.ts +2 -2
  100. package/dist/hooks/auth/use-authenticate.js +22 -27
  101. package/dist/hooks/auth/use-is-username-available.d.ts +19 -0
  102. package/dist/hooks/auth/use-is-username-available.js +12 -0
  103. package/dist/hooks/auth/use-request-password-reset.d.ts +5 -6
  104. package/dist/hooks/auth/use-request-password-reset.js +11 -13
  105. package/dist/hooks/auth/use-reset-password.d.ts +8 -9
  106. package/dist/hooks/auth/use-reset-password.js +11 -12
  107. package/dist/hooks/auth/use-send-verification-email.d.ts +5 -6
  108. package/dist/hooks/auth/use-send-verification-email.js +11 -12
  109. package/dist/hooks/auth/use-session.d.ts +2 -2
  110. package/dist/hooks/auth/use-session.js +14 -17
  111. package/dist/hooks/auth/use-sign-in-email.d.ts +6 -7
  112. package/dist/hooks/auth/use-sign-in-email.js +17 -23
  113. package/dist/hooks/auth/use-sign-in-magic-link.d.ts +5 -6
  114. package/dist/hooks/auth/use-sign-in-magic-link.js +11 -12
  115. package/dist/hooks/auth/use-sign-in-passkey.d.ts +58 -0
  116. package/dist/hooks/auth/use-sign-in-passkey.js +18 -0
  117. package/dist/hooks/auth/use-sign-in-social.d.ts +8 -9
  118. package/dist/hooks/auth/use-sign-in-social.js +11 -12
  119. package/dist/hooks/auth/use-sign-in-username.d.ts +53 -0
  120. package/dist/hooks/auth/use-sign-in-username.js +18 -0
  121. package/dist/hooks/auth/use-sign-out.d.ts +4 -5
  122. package/dist/hooks/auth/use-sign-out.js +17 -23
  123. package/dist/hooks/auth/use-sign-up-email.d.ts +822 -79
  124. package/dist/hooks/auth/use-sign-up-email.js +17 -23
  125. package/dist/hooks/auth/use-user.d.ts +58 -58
  126. package/dist/hooks/auth/use-user.js +10 -13
  127. package/dist/hooks/settings/use-account-info.d.ts +5 -5
  128. package/dist/hooks/settings/use-account-info.js +20 -24
  129. package/dist/hooks/settings/use-add-passkey.d.ts +43 -0
  130. package/dist/hooks/settings/use-add-passkey.js +18 -0
  131. package/dist/hooks/settings/use-change-email.d.ts +5 -5
  132. package/dist/hooks/settings/use-change-email.js +17 -22
  133. package/dist/hooks/settings/use-change-password.d.ts +6 -7
  134. package/dist/hooks/settings/use-change-password.js +11 -10
  135. package/dist/hooks/settings/use-delete-passkey.d.ts +21 -0
  136. package/dist/hooks/settings/use-delete-passkey.js +18 -0
  137. package/dist/hooks/settings/use-delete-user.d.ts +8 -9
  138. package/dist/hooks/settings/use-delete-user.js +11 -10
  139. package/dist/hooks/settings/use-link-social.d.ts +5 -5
  140. package/dist/hooks/settings/use-link-social.js +11 -9
  141. package/dist/hooks/settings/use-list-accounts.d.ts +4 -4
  142. package/dist/hooks/settings/use-list-accounts.js +20 -22
  143. package/dist/hooks/settings/use-list-device-sessions.d.ts +2 -2
  144. package/dist/hooks/settings/use-list-device-sessions.js +20 -21
  145. package/dist/hooks/settings/use-list-sessions.d.ts +4 -4
  146. package/dist/hooks/settings/use-list-sessions.js +20 -21
  147. package/dist/hooks/settings/use-list-user-passkeys.d.ts +11 -0
  148. package/dist/hooks/settings/use-list-user-passkeys.js +21 -0
  149. package/dist/hooks/settings/use-revoke-multi-session.d.ts +5 -5
  150. package/dist/hooks/settings/use-revoke-multi-session.js +17 -19
  151. package/dist/hooks/settings/use-revoke-session.d.ts +5 -5
  152. package/dist/hooks/settings/use-revoke-session.js +17 -20
  153. package/dist/hooks/settings/use-set-active-session.d.ts +5 -5
  154. package/dist/hooks/settings/use-set-active-session.js +20 -27
  155. package/dist/hooks/settings/use-unlink-account.d.ts +5 -5
  156. package/dist/hooks/settings/use-unlink-account.js +17 -20
  157. package/dist/hooks/settings/use-update-user.d.ts +2 -2
  158. package/dist/hooks/settings/use-update-user.js +24 -28
  159. package/dist/index.d.ts +40 -32
  160. package/dist/index.js +84 -32
  161. package/dist/lib/auth-client.d.ts +2953 -1241
  162. package/dist/lib/auth-client.js +11 -5
  163. package/dist/lib/auth-config.d.ts +3 -3
  164. package/dist/lib/auth-context.d.ts +2 -2
  165. package/dist/lib/auth-context.js +5 -2
  166. package/dist/lib/provider-icons.d.ts +2 -2
  167. package/dist/lib/provider-icons.js +75 -47
  168. package/dist/lib/utils.d.ts +1 -1
  169. package/dist/lib/utils.js +7 -4
  170. package/package.json +16 -9
  171. package/src/components/auth/auth-provider.tsx +4 -6
  172. package/src/hooks/auth/use-authenticate.ts +3 -1
  173. package/src/hooks/auth/use-is-username-available.ts +22 -0
  174. package/src/hooks/auth/use-request-password-reset.ts +4 -6
  175. package/src/hooks/auth/use-reset-password.ts +4 -6
  176. package/src/hooks/auth/use-send-verification-email.ts +4 -6
  177. package/src/hooks/auth/use-session.ts +2 -1
  178. package/src/hooks/auth/use-sign-in-email.ts +9 -10
  179. package/src/hooks/auth/use-sign-in-magic-link.ts +4 -6
  180. package/src/hooks/auth/use-sign-in-passkey.ts +34 -0
  181. package/src/hooks/auth/use-sign-in-social.ts +4 -6
  182. package/src/hooks/auth/use-sign-in-username.ts +34 -0
  183. package/src/hooks/auth/use-sign-out.ts +6 -7
  184. package/src/hooks/auth/use-sign-up-email.ts +9 -10
  185. package/src/hooks/auth/use-user.ts +1 -2
  186. package/src/hooks/settings/use-account-info.ts +2 -1
  187. package/src/hooks/settings/use-add-passkey.ts +32 -0
  188. package/src/hooks/settings/use-change-email.ts +6 -6
  189. package/src/hooks/settings/use-change-password.ts +4 -6
  190. package/src/hooks/settings/use-delete-passkey.ts +32 -0
  191. package/src/hooks/settings/use-delete-user.ts +4 -6
  192. package/src/hooks/settings/use-link-social.ts +4 -4
  193. package/src/hooks/settings/use-list-accounts.ts +3 -1
  194. package/src/hooks/settings/use-list-device-sessions.ts +3 -1
  195. package/src/hooks/settings/use-list-sessions.ts +3 -1
  196. package/src/hooks/settings/use-list-user-passkeys.ts +30 -0
  197. package/src/hooks/settings/use-revoke-multi-session.ts +6 -6
  198. package/src/hooks/settings/use-revoke-session.ts +4 -5
  199. package/src/hooks/settings/use-set-active-session.ts +9 -8
  200. package/src/hooks/settings/use-unlink-account.ts +4 -5
  201. package/src/hooks/settings/use-update-user.ts +8 -9
  202. package/src/index.ts +8 -0
  203. package/src/lib/auth-client.ts +7 -1
  204. package/src/lib/auth-config.ts +1 -1
  205. package/dist/hooks/auth/use-forgot-password.d.ts +0 -20
  206. package/dist/hooks/auth/use-forgot-password.js +0 -14
  207. package/dist/hooks/use-hydrated.d.ts +0 -6
  208. package/dist/hooks/use-hydrated.js +0 -18
  209. package/dist/lib/auth-config.js +0 -1
  210. package/dist/lib/auth-hook-options.d.ts +0 -8
  211. package/dist/lib/auth-hook-options.js +0 -1
@@ -1,6 +1,5 @@
1
- import { type AuthClient } from "@better-auth-ui/react";
2
- import type { UseAuthMutationOptions } from "./use-auth-mutation";
3
- export { useAuthMutation } from "./use-auth-mutation";
1
+ import { AuthClient } from '../../lib/auth-client';
2
+ import { UseAuthMutationOptions } from './use-auth-mutation';
4
3
  /**
5
4
  * Hook that creates a mutation for email/password sign-up.
6
5
  *
@@ -9,32 +8,32 @@ export { useAuthMutation } from "./use-auth-mutation";
9
8
  *
10
9
  * @returns The `useMutation` result.
11
10
  */
12
- export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClient["signUp"]["email"]>): import("./use-auth-mutation").UseAuthMutationResult<(<FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
11
+ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClient["signUp"]["email"]>): import('./use-auth-mutation').UseAuthMutationResult<(<FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
13
12
  name: string;
14
13
  email: string;
15
14
  password: string;
16
15
  image?: string | undefined;
17
16
  callbackURL?: string | undefined;
18
17
  rememberMe?: boolean | undefined;
19
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<import("better-auth/client").InferSignUpEmailCtx<{
18
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<import('better-auth/client').InferSignUpEmailCtx<{
20
19
  plugins: ({
21
20
  id: "magic-link";
22
21
  version: string;
23
- $InferServerPlugin: ReturnType<(options: import("better-auth/plugins/magic-link").MagicLinkOptions) => {
22
+ $InferServerPlugin: ReturnType<(options: import('better-auth/plugins/magic-link').MagicLinkOptions) => {
24
23
  id: "magic-link";
25
24
  version: string;
26
25
  endpoints: {
27
- signInMagicLink: import("better-auth").StrictEndpoint<"/sign-in/magic-link", {
26
+ signInMagicLink: import('better-auth').StrictEndpoint<"/sign-in/magic-link", {
28
27
  method: "POST";
29
28
  requireHeaders: true;
30
- body: import("zod").ZodObject<{
31
- email: import("zod").ZodEmail;
32
- name: import("zod").ZodOptional<import("zod").ZodString>;
33
- callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
34
- newUserCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
35
- errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
36
- metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
37
- }, import("zod/v4/core").$strip>;
29
+ body: import('zod').ZodObject<{
30
+ email: import('zod').ZodEmail;
31
+ name: import('zod').ZodOptional<import('zod').ZodString>;
32
+ callbackURL: import('zod').ZodOptional<import('zod').ZodString>;
33
+ newUserCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
34
+ errorCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
35
+ metadata: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodAny>>;
36
+ }, import('zod/v4/core').$strip>;
38
37
  metadata: {
39
38
  openapi: {
40
39
  operationId: string;
@@ -61,15 +60,15 @@ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClie
61
60
  }, {
62
61
  status: boolean;
63
62
  }>;
64
- magicLinkVerify: import("better-auth").StrictEndpoint<"/magic-link/verify", {
63
+ magicLinkVerify: import('better-auth').StrictEndpoint<"/magic-link/verify", {
65
64
  method: "GET";
66
- query: import("zod").ZodObject<{
67
- token: import("zod").ZodString;
68
- callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
69
- errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
70
- newUserCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
71
- }, import("zod/v4/core").$strip>;
72
- use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
65
+ query: import('zod').ZodObject<{
66
+ token: import('zod').ZodString;
67
+ callbackURL: import('zod').ZodOptional<import('zod').ZodString>;
68
+ errorCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
69
+ newUserCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
70
+ }, import('zod/v4/core').$strip>;
71
+ use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<void>)[];
73
72
  requireHeaders: true;
74
73
  metadata: {
75
74
  openapi: {
@@ -125,16 +124,16 @@ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClie
125
124
  window: number;
126
125
  max: number;
127
126
  }[];
128
- options: import("better-auth/plugins/magic-link").MagicLinkOptions;
127
+ options: import('better-auth/plugins/magic-link').MagicLinkOptions;
129
128
  }>;
130
129
  } | {
131
130
  id: "multi-session";
132
131
  version: string;
133
- $InferServerPlugin: ReturnType<(options?: import("better-auth/plugins/multi-session").MultiSessionConfig | undefined) => {
132
+ $InferServerPlugin: ReturnType<(options?: import('better-auth/plugins/multi-session').MultiSessionConfig | undefined) => {
134
133
  id: "multi-session";
135
134
  version: string;
136
135
  endpoints: {
137
- listDeviceSessions: import("better-auth").StrictEndpoint<"/multi-session/list-device-sessions", {
136
+ listDeviceSessions: import('better-auth').StrictEndpoint<"/multi-session/list-device-sessions", {
138
137
  method: "GET";
139
138
  requireHeaders: true;
140
139
  }, {
@@ -158,11 +157,11 @@ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClie
158
157
  image?: string | null | undefined;
159
158
  };
160
159
  }[]>;
161
- setActiveSession: import("better-auth").StrictEndpoint<"/multi-session/set-active", {
160
+ setActiveSession: import('better-auth').StrictEndpoint<"/multi-session/set-active", {
162
161
  method: "POST";
163
- body: import("zod").ZodObject<{
164
- sessionToken: import("zod").ZodString;
165
- }, import("zod/v4/core").$strip>;
162
+ body: import('zod').ZodObject<{
163
+ sessionToken: import('zod').ZodString;
164
+ }, import('zod/v4/core').$strip>;
166
165
  requireHeaders: true;
167
166
  metadata: {
168
167
  openapi: {
@@ -207,13 +206,13 @@ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClie
207
206
  image?: string | null | undefined;
208
207
  } & Record<string, any>;
209
208
  }>;
210
- revokeDeviceSession: import("better-auth").StrictEndpoint<"/multi-session/revoke", {
209
+ revokeDeviceSession: import('better-auth').StrictEndpoint<"/multi-session/revoke", {
211
210
  method: "POST";
212
- body: import("zod").ZodObject<{
213
- sessionToken: import("zod").ZodString;
214
- }, import("zod/v4/core").$strip>;
211
+ body: import('zod').ZodObject<{
212
+ sessionToken: import('zod').ZodString;
213
+ }, import('zod/v4/core').$strip>;
215
214
  requireHeaders: true;
216
- use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
215
+ use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
217
216
  session: {
218
217
  session: Record<string, any> & {
219
218
  id: string;
@@ -264,13 +263,13 @@ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClie
264
263
  };
265
264
  hooks: {
266
265
  after: {
267
- matcher: (context: import("better-auth").HookEndpointContext) => boolean;
268
- handler: (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>;
266
+ matcher: (context: import('better-auth').HookEndpointContext) => boolean;
267
+ handler: (inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<void>;
269
268
  }[];
270
269
  };
271
- options: import("better-auth/plugins/multi-session").MultiSessionConfig | undefined;
270
+ options: import('better-auth/plugins/multi-session').MultiSessionConfig | undefined;
272
271
  $ERROR_CODES: {
273
- INVALID_SESSION_TOKEN: import("better-auth").RawError<"INVALID_SESSION_TOKEN">;
272
+ INVALID_SESSION_TOKEN: import('better-auth').RawError<"INVALID_SESSION_TOKEN">;
274
273
  };
275
274
  }>;
276
275
  atomListeners: {
@@ -278,15 +277,759 @@ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClie
278
277
  signal: "$sessionSignal";
279
278
  }[];
280
279
  $ERROR_CODES: {
281
- INVALID_SESSION_TOKEN: import("better-auth").RawError<"INVALID_SESSION_TOKEN">;
280
+ INVALID_SESSION_TOKEN: import('better-auth').RawError<"INVALID_SESSION_TOKEN">;
281
+ };
282
+ } | {
283
+ id: "passkey";
284
+ version: string;
285
+ $InferServerPlugin: ReturnType<(options?: import('@better-auth/passkey/client').PasskeyOptions | undefined) => {
286
+ id: "passkey";
287
+ version: string;
288
+ endpoints: {
289
+ generatePasskeyRegistrationOptions: import('better-auth').StrictEndpoint<"/passkey/generate-register-options", {
290
+ method: "GET";
291
+ use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
292
+ session: {
293
+ session: Record<string, any> & {
294
+ id: string;
295
+ createdAt: Date;
296
+ updatedAt: Date;
297
+ userId: string;
298
+ expiresAt: Date;
299
+ token: string;
300
+ ipAddress?: string | null | undefined;
301
+ userAgent?: string | null | undefined;
302
+ };
303
+ user: Record<string, any> & {
304
+ id: string;
305
+ createdAt: Date;
306
+ updatedAt: Date;
307
+ email: string;
308
+ emailVerified: boolean;
309
+ name: string;
310
+ image?: string | null | undefined;
311
+ };
312
+ };
313
+ }>)[] | undefined;
314
+ query: import('zod').ZodOptional<import('zod').ZodObject<{
315
+ authenticatorAttachment: import('zod').ZodOptional<import('zod').ZodEnum<{
316
+ platform: "platform";
317
+ "cross-platform": "cross-platform";
318
+ }>>;
319
+ name: import('zod').ZodOptional<import('zod').ZodString>;
320
+ context: import('zod').ZodOptional<import('zod').ZodString>;
321
+ }, import('zod/v4/core').$strip>>;
322
+ metadata: {
323
+ openapi: {
324
+ operationId: string;
325
+ description: string;
326
+ responses: {
327
+ 200: {
328
+ description: string;
329
+ parameters: {
330
+ query: {
331
+ authenticatorAttachment: {
332
+ description: string;
333
+ required: boolean;
334
+ };
335
+ name: {
336
+ description: string;
337
+ required: boolean;
338
+ };
339
+ context: {
340
+ description: string;
341
+ required: boolean;
342
+ };
343
+ };
344
+ };
345
+ content: {
346
+ "application/json": {
347
+ schema: {
348
+ type: "object";
349
+ properties: {
350
+ challenge: {
351
+ type: string;
352
+ };
353
+ rp: {
354
+ type: string;
355
+ properties: {
356
+ name: {
357
+ type: string;
358
+ };
359
+ id: {
360
+ type: string;
361
+ };
362
+ };
363
+ };
364
+ user: {
365
+ type: string;
366
+ properties: {
367
+ id: {
368
+ type: string;
369
+ };
370
+ name: {
371
+ type: string;
372
+ };
373
+ displayName: {
374
+ type: string;
375
+ };
376
+ };
377
+ };
378
+ pubKeyCredParams: {
379
+ type: string;
380
+ items: {
381
+ type: string;
382
+ properties: {
383
+ type: {
384
+ type: string;
385
+ };
386
+ alg: {
387
+ type: string;
388
+ };
389
+ };
390
+ };
391
+ };
392
+ timeout: {
393
+ type: string;
394
+ };
395
+ excludeCredentials: {
396
+ type: string;
397
+ items: {
398
+ type: string;
399
+ properties: {
400
+ id: {
401
+ type: string;
402
+ };
403
+ type: {
404
+ type: string;
405
+ };
406
+ transports: {
407
+ type: string;
408
+ items: {
409
+ type: string;
410
+ };
411
+ };
412
+ };
413
+ };
414
+ };
415
+ authenticatorSelection: {
416
+ type: string;
417
+ properties: {
418
+ authenticatorAttachment: {
419
+ type: string;
420
+ };
421
+ requireResidentKey: {
422
+ type: string;
423
+ };
424
+ userVerification: {
425
+ type: string;
426
+ };
427
+ };
428
+ };
429
+ attestation: {
430
+ type: string;
431
+ };
432
+ extensions: {
433
+ type: string;
434
+ };
435
+ };
436
+ };
437
+ };
438
+ };
439
+ };
440
+ };
441
+ };
442
+ };
443
+ }, import('@better-auth/passkey/client').PublicKeyCredentialCreationOptionsJSON>;
444
+ generatePasskeyAuthenticationOptions: import('better-auth').StrictEndpoint<"/passkey/generate-authenticate-options", {
445
+ method: "GET";
446
+ metadata: {
447
+ openapi: {
448
+ operationId: string;
449
+ description: string;
450
+ responses: {
451
+ 200: {
452
+ description: string;
453
+ content: {
454
+ "application/json": {
455
+ schema: {
456
+ type: "object";
457
+ properties: {
458
+ challenge: {
459
+ type: string;
460
+ };
461
+ rp: {
462
+ type: string;
463
+ properties: {
464
+ name: {
465
+ type: string;
466
+ };
467
+ id: {
468
+ type: string;
469
+ };
470
+ };
471
+ };
472
+ user: {
473
+ type: string;
474
+ properties: {
475
+ id: {
476
+ type: string;
477
+ };
478
+ name: {
479
+ type: string;
480
+ };
481
+ displayName: {
482
+ type: string;
483
+ };
484
+ };
485
+ };
486
+ timeout: {
487
+ type: string;
488
+ };
489
+ allowCredentials: {
490
+ type: string;
491
+ items: {
492
+ type: string;
493
+ properties: {
494
+ id: {
495
+ type: string;
496
+ };
497
+ type: {
498
+ type: string;
499
+ };
500
+ transports: {
501
+ type: string;
502
+ items: {
503
+ type: string;
504
+ };
505
+ };
506
+ };
507
+ };
508
+ };
509
+ userVerification: {
510
+ type: string;
511
+ };
512
+ authenticatorSelection: {
513
+ type: string;
514
+ properties: {
515
+ authenticatorAttachment: {
516
+ type: string;
517
+ };
518
+ requireResidentKey: {
519
+ type: string;
520
+ };
521
+ userVerification: {
522
+ type: string;
523
+ };
524
+ };
525
+ };
526
+ extensions: {
527
+ type: string;
528
+ };
529
+ };
530
+ };
531
+ };
532
+ };
533
+ };
534
+ };
535
+ };
536
+ };
537
+ }, import('@better-auth/passkey/client').PublicKeyCredentialRequestOptionsJSON>;
538
+ verifyPasskeyRegistration: import('better-auth').StrictEndpoint<"/passkey/verify-registration", {
539
+ method: "POST";
540
+ body: import('zod').ZodObject<{
541
+ response: import('zod').ZodAny;
542
+ name: import('zod').ZodOptional<import('zod').ZodString>;
543
+ }, import('zod/v4/core').$strip>;
544
+ use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
545
+ session: {
546
+ session: Record<string, any> & {
547
+ id: string;
548
+ createdAt: Date;
549
+ updatedAt: Date;
550
+ userId: string;
551
+ expiresAt: Date;
552
+ token: string;
553
+ ipAddress?: string | null | undefined;
554
+ userAgent?: string | null | undefined;
555
+ };
556
+ user: Record<string, any> & {
557
+ id: string;
558
+ createdAt: Date;
559
+ updatedAt: Date;
560
+ email: string;
561
+ emailVerified: boolean;
562
+ name: string;
563
+ image?: string | null | undefined;
564
+ };
565
+ };
566
+ }>)[] | undefined;
567
+ metadata: {
568
+ openapi: {
569
+ operationId: string;
570
+ description: string;
571
+ responses: {
572
+ 200: {
573
+ description: string;
574
+ content: {
575
+ "application/json": {
576
+ schema: {
577
+ $ref: string;
578
+ };
579
+ };
580
+ };
581
+ };
582
+ 400: {
583
+ description: string;
584
+ };
585
+ };
586
+ };
587
+ };
588
+ }, import('@better-auth/passkey/client').Passkey>;
589
+ verifyPasskeyAuthentication: import('better-auth').StrictEndpoint<"/passkey/verify-authentication", {
590
+ method: "POST";
591
+ body: import('zod').ZodObject<{
592
+ response: import('zod').ZodRecord<import('zod').ZodAny, import('zod').ZodAny>;
593
+ }, import('zod/v4/core').$strip>;
594
+ metadata: {
595
+ openapi: {
596
+ operationId: string;
597
+ description: string;
598
+ responses: {
599
+ 200: {
600
+ description: string;
601
+ content: {
602
+ "application/json": {
603
+ schema: {
604
+ type: "object";
605
+ properties: {
606
+ session: {
607
+ $ref: string;
608
+ };
609
+ user: {
610
+ $ref: string;
611
+ };
612
+ };
613
+ };
614
+ };
615
+ };
616
+ };
617
+ };
618
+ };
619
+ $Infer: {
620
+ body: {
621
+ response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
622
+ };
623
+ };
624
+ };
625
+ }, {
626
+ session: {
627
+ id: string;
628
+ createdAt: Date;
629
+ updatedAt: Date;
630
+ userId: string;
631
+ expiresAt: Date;
632
+ token: string;
633
+ ipAddress?: string | null | undefined;
634
+ userAgent?: string | null | undefined;
635
+ };
636
+ }>;
637
+ listPasskeys: import('better-auth').StrictEndpoint<"/passkey/list-user-passkeys", {
638
+ method: "GET";
639
+ use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
640
+ session: {
641
+ session: Record<string, any> & {
642
+ id: string;
643
+ createdAt: Date;
644
+ updatedAt: Date;
645
+ userId: string;
646
+ expiresAt: Date;
647
+ token: string;
648
+ ipAddress?: string | null | undefined;
649
+ userAgent?: string | null | undefined;
650
+ };
651
+ user: Record<string, any> & {
652
+ id: string;
653
+ createdAt: Date;
654
+ updatedAt: Date;
655
+ email: string;
656
+ emailVerified: boolean;
657
+ name: string;
658
+ image?: string | null | undefined;
659
+ };
660
+ };
661
+ }>)[];
662
+ metadata: {
663
+ openapi: {
664
+ description: string;
665
+ responses: {
666
+ "200": {
667
+ description: string;
668
+ content: {
669
+ "application/json": {
670
+ schema: {
671
+ type: "array";
672
+ items: {
673
+ $ref: string;
674
+ required: string[];
675
+ };
676
+ description: string;
677
+ };
678
+ };
679
+ };
680
+ };
681
+ };
682
+ };
683
+ };
684
+ }, import('@better-auth/passkey/client').Passkey[]>;
685
+ deletePasskey: import('better-auth').StrictEndpoint<"/passkey/delete-passkey", {
686
+ method: "POST";
687
+ body: import('zod').ZodObject<{
688
+ id: import('zod').ZodString;
689
+ }, import('zod/v4/core').$strip>;
690
+ use: (((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
691
+ session: {
692
+ session: Record<string, any> & {
693
+ id: string;
694
+ createdAt: Date;
695
+ updatedAt: Date;
696
+ userId: string;
697
+ expiresAt: Date;
698
+ token: string;
699
+ ipAddress?: string | null | undefined;
700
+ userAgent?: string | null | undefined;
701
+ };
702
+ user: Record<string, any> & {
703
+ id: string;
704
+ createdAt: Date;
705
+ updatedAt: Date;
706
+ email: string;
707
+ emailVerified: boolean;
708
+ name: string;
709
+ image?: string | null | undefined;
710
+ };
711
+ };
712
+ }>) | ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
713
+ verifiedResource: {};
714
+ }>))[];
715
+ metadata: {
716
+ openapi: {
717
+ description: string;
718
+ responses: {
719
+ "200": {
720
+ description: string;
721
+ content: {
722
+ "application/json": {
723
+ schema: {
724
+ type: "object";
725
+ properties: {
726
+ status: {
727
+ type: string;
728
+ description: string;
729
+ };
730
+ };
731
+ required: string[];
732
+ };
733
+ };
734
+ };
735
+ };
736
+ };
737
+ };
738
+ };
739
+ }, {
740
+ status: boolean;
741
+ }>;
742
+ updatePasskey: import('better-auth').StrictEndpoint<"/passkey/update-passkey", {
743
+ method: "POST";
744
+ body: import('zod').ZodObject<{
745
+ id: import('zod').ZodString;
746
+ name: import('zod').ZodString;
747
+ }, import('zod/v4/core').$strip>;
748
+ use: (((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
749
+ session: {
750
+ session: Record<string, any> & {
751
+ id: string;
752
+ createdAt: Date;
753
+ updatedAt: Date;
754
+ userId: string;
755
+ expiresAt: Date;
756
+ token: string;
757
+ ipAddress?: string | null | undefined;
758
+ userAgent?: string | null | undefined;
759
+ };
760
+ user: Record<string, any> & {
761
+ id: string;
762
+ createdAt: Date;
763
+ updatedAt: Date;
764
+ email: string;
765
+ emailVerified: boolean;
766
+ name: string;
767
+ image?: string | null | undefined;
768
+ };
769
+ };
770
+ }>) | ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
771
+ verifiedResource: {};
772
+ }>))[];
773
+ metadata: {
774
+ openapi: {
775
+ description: string;
776
+ responses: {
777
+ "200": {
778
+ description: string;
779
+ content: {
780
+ "application/json": {
781
+ schema: {
782
+ type: "object";
783
+ properties: {
784
+ passkey: {
785
+ $ref: string;
786
+ };
787
+ };
788
+ required: string[];
789
+ };
790
+ };
791
+ };
792
+ };
793
+ };
794
+ };
795
+ };
796
+ }, {
797
+ passkey: import('@better-auth/passkey/client').Passkey;
798
+ }>;
799
+ };
800
+ schema: {
801
+ passkey: {
802
+ fields: {
803
+ name: {
804
+ type: "string";
805
+ required: false;
806
+ };
807
+ publicKey: {
808
+ type: "string";
809
+ required: true;
810
+ };
811
+ userId: {
812
+ type: "string";
813
+ references: {
814
+ model: string;
815
+ field: string;
816
+ };
817
+ required: true;
818
+ index: true;
819
+ };
820
+ credentialID: {
821
+ type: "string";
822
+ required: true;
823
+ index: true;
824
+ };
825
+ counter: {
826
+ type: "number";
827
+ required: true;
828
+ };
829
+ deviceType: {
830
+ type: "string";
831
+ required: true;
832
+ };
833
+ backedUp: {
834
+ type: "boolean";
835
+ required: true;
836
+ };
837
+ transports: {
838
+ type: "string";
839
+ required: false;
840
+ };
841
+ createdAt: {
842
+ type: "date";
843
+ required: false;
844
+ };
845
+ aaguid: {
846
+ type: "string";
847
+ required: false;
848
+ };
849
+ };
850
+ };
851
+ };
852
+ $ERROR_CODES: {
853
+ CHALLENGE_NOT_FOUND: import('better-auth').RawError<"CHALLENGE_NOT_FOUND">;
854
+ YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import('better-auth').RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
855
+ FAILED_TO_VERIFY_REGISTRATION: import('better-auth').RawError<"FAILED_TO_VERIFY_REGISTRATION">;
856
+ PASSKEY_NOT_FOUND: import('better-auth').RawError<"PASSKEY_NOT_FOUND">;
857
+ AUTHENTICATION_FAILED: import('better-auth').RawError<"AUTHENTICATION_FAILED">;
858
+ UNABLE_TO_CREATE_SESSION: import('better-auth').RawError<"UNABLE_TO_CREATE_SESSION">;
859
+ FAILED_TO_UPDATE_PASSKEY: import('better-auth').RawError<"FAILED_TO_UPDATE_PASSKEY">;
860
+ PREVIOUSLY_REGISTERED: import('better-auth').RawError<"PREVIOUSLY_REGISTERED">;
861
+ REGISTRATION_CANCELLED: import('better-auth').RawError<"REGISTRATION_CANCELLED">;
862
+ AUTH_CANCELLED: import('better-auth').RawError<"AUTH_CANCELLED">;
863
+ UNKNOWN_ERROR: import('better-auth').RawError<"UNKNOWN_ERROR">;
864
+ SESSION_REQUIRED: import('better-auth').RawError<"SESSION_REQUIRED">;
865
+ RESOLVE_USER_REQUIRED: import('better-auth').RawError<"RESOLVE_USER_REQUIRED">;
866
+ RESOLVED_USER_INVALID: import('better-auth').RawError<"RESOLVED_USER_INVALID">;
867
+ };
868
+ options: import('@better-auth/passkey/client').PasskeyOptions | undefined;
869
+ }>;
870
+ getActions: ($fetch: import('better-auth/client').BetterFetch, $store: import('better-auth').ClientStore) => {
871
+ signIn: {
872
+ passkey: (opts?: {
873
+ autoFill?: boolean;
874
+ extensions?: import('@better-auth/passkey/client').AuthenticationExtensionsClientInputs;
875
+ returnWebAuthnResponse?: boolean;
876
+ fetchOptions?: import('better-auth').ClientFetchOption;
877
+ } | undefined, options?: import('better-auth').ClientFetchOption | undefined) => Promise<{
878
+ data: null;
879
+ error: {
880
+ message?: string | undefined;
881
+ status: number;
882
+ statusText: string;
883
+ };
884
+ } | {
885
+ data: {
886
+ session: {
887
+ id: string;
888
+ createdAt: Date;
889
+ updatedAt: Date;
890
+ userId: string;
891
+ expiresAt: Date;
892
+ token: string;
893
+ ipAddress?: string | null | undefined;
894
+ userAgent?: string | null | undefined;
895
+ };
896
+ user: {
897
+ id: string;
898
+ createdAt: Date;
899
+ updatedAt: Date;
900
+ email: string;
901
+ emailVerified: boolean;
902
+ name: string;
903
+ image?: string | null | undefined;
904
+ };
905
+ };
906
+ error: null;
907
+ } | {
908
+ webauthn: {
909
+ response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
910
+ clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
911
+ };
912
+ data: null;
913
+ error: {
914
+ message?: string | undefined;
915
+ status: number;
916
+ statusText: string;
917
+ };
918
+ } | {
919
+ webauthn: {
920
+ response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
921
+ clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
922
+ };
923
+ data: {
924
+ session: {
925
+ id: string;
926
+ createdAt: Date;
927
+ updatedAt: Date;
928
+ userId: string;
929
+ expiresAt: Date;
930
+ token: string;
931
+ ipAddress?: string | null | undefined;
932
+ userAgent?: string | null | undefined;
933
+ };
934
+ user: {
935
+ id: string;
936
+ createdAt: Date;
937
+ updatedAt: Date;
938
+ email: string;
939
+ emailVerified: boolean;
940
+ name: string;
941
+ image?: string | null | undefined;
942
+ };
943
+ };
944
+ error: null;
945
+ } | {
946
+ data: null;
947
+ error: {
948
+ code: string;
949
+ message: string;
950
+ status: number;
951
+ statusText: string;
952
+ };
953
+ }>;
954
+ };
955
+ passkey: {
956
+ addPasskey: (opts?: {
957
+ fetchOptions?: import('better-auth').ClientFetchOption;
958
+ name?: string;
959
+ authenticatorAttachment?: "platform" | "cross-platform";
960
+ context?: string | null;
961
+ extensions?: import('@better-auth/passkey/client').AuthenticationExtensionsClientInputs;
962
+ useAutoRegister?: boolean;
963
+ returnWebAuthnResponse?: boolean;
964
+ } | undefined, fetchOpts?: import('better-auth').ClientFetchOption | undefined) => Promise<{
965
+ data: null;
966
+ error: {
967
+ message?: string | undefined;
968
+ status: number;
969
+ statusText: string;
970
+ };
971
+ } | {
972
+ data: import('@better-auth/passkey/client').Passkey;
973
+ error: null;
974
+ } | {
975
+ webauthn: {
976
+ response: import('@better-auth/passkey/client').RegistrationResponseJSON;
977
+ clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
978
+ };
979
+ data: import('@better-auth/passkey/client').Passkey;
980
+ error: null;
981
+ } | {
982
+ data: null;
983
+ error: {
984
+ code: string;
985
+ message: string;
986
+ status: number;
987
+ statusText: string;
988
+ };
989
+ }>;
990
+ };
991
+ $Infer: {
992
+ Passkey: import('@better-auth/passkey/client').Passkey;
993
+ };
994
+ };
995
+ getAtoms($fetch: import('better-auth/client').BetterFetch): {
996
+ listPasskeys: import('better-auth/client').AuthQueryAtom<import('@better-auth/passkey/client').Passkey[]>;
997
+ $listPasskeys: import('better-auth/client').PreinitializedWritableAtom<any> & object;
998
+ };
999
+ pathMethods: {
1000
+ "/passkey/register": "POST";
1001
+ "/passkey/authenticate": "POST";
1002
+ };
1003
+ atomListeners: ({
1004
+ matcher(path: string): path is "/passkey/delete-passkey" | "/passkey/update-passkey" | "/passkey/verify-registration" | "/sign-out";
1005
+ signal: "$listPasskeys";
1006
+ } | {
1007
+ matcher: (path: string) => path is "/passkey/verify-authentication";
1008
+ signal: "$sessionSignal";
1009
+ })[];
1010
+ $ERROR_CODES: {
1011
+ CHALLENGE_NOT_FOUND: import('better-auth').RawError<"CHALLENGE_NOT_FOUND">;
1012
+ YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import('better-auth').RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
1013
+ FAILED_TO_VERIFY_REGISTRATION: import('better-auth').RawError<"FAILED_TO_VERIFY_REGISTRATION">;
1014
+ PASSKEY_NOT_FOUND: import('better-auth').RawError<"PASSKEY_NOT_FOUND">;
1015
+ AUTHENTICATION_FAILED: import('better-auth').RawError<"AUTHENTICATION_FAILED">;
1016
+ UNABLE_TO_CREATE_SESSION: import('better-auth').RawError<"UNABLE_TO_CREATE_SESSION">;
1017
+ FAILED_TO_UPDATE_PASSKEY: import('better-auth').RawError<"FAILED_TO_UPDATE_PASSKEY">;
1018
+ PREVIOUSLY_REGISTERED: import('better-auth').RawError<"PREVIOUSLY_REGISTERED">;
1019
+ REGISTRATION_CANCELLED: import('better-auth').RawError<"REGISTRATION_CANCELLED">;
1020
+ AUTH_CANCELLED: import('better-auth').RawError<"AUTH_CANCELLED">;
1021
+ UNKNOWN_ERROR: import('better-auth').RawError<"UNKNOWN_ERROR">;
1022
+ SESSION_REQUIRED: import('better-auth').RawError<"SESSION_REQUIRED">;
1023
+ RESOLVE_USER_REQUIRED: import('better-auth').RawError<"RESOLVE_USER_REQUIRED">;
1024
+ RESOLVED_USER_INVALID: import('better-auth').RawError<"RESOLVED_USER_INVALID">;
282
1025
  };
283
1026
  } | {
284
1027
  id: "username";
285
1028
  version: string;
286
- $InferServerPlugin: ReturnType<(options?: import("better-auth/plugins/username").UsernameOptions | undefined) => {
1029
+ $InferServerPlugin: ReturnType<(options?: import('better-auth/plugins/username').UsernameOptions | undefined) => {
287
1030
  id: "username";
288
1031
  version: string;
289
- init(ctx: import("better-auth").AuthContext): {
1032
+ init(ctx: import('better-auth').AuthContext): {
290
1033
  options: {
291
1034
  databaseHooks: {
292
1035
  user: {
@@ -299,7 +1042,7 @@ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClie
299
1042
  emailVerified: boolean;
300
1043
  name: string;
301
1044
  image?: string | null | undefined;
302
- } & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null): Promise<{
1045
+ } & Record<string, unknown>, context: import('better-auth').GenericEndpointContext | null): Promise<{
303
1046
  data: {
304
1047
  displayUsername?: string | undefined;
305
1048
  username?: string | undefined;
@@ -322,7 +1065,7 @@ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClie
322
1065
  emailVerified: boolean;
323
1066
  name: string;
324
1067
  image?: string | null | undefined;
325
- }> & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null): Promise<{
1068
+ }> & Record<string, unknown>, context: import('better-auth').GenericEndpointContext | null): Promise<{
326
1069
  data: {
327
1070
  displayUsername?: string | undefined;
328
1071
  username?: string | undefined;
@@ -341,14 +1084,14 @@ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClie
341
1084
  };
342
1085
  };
343
1086
  endpoints: {
344
- signInUsername: import("better-auth").StrictEndpoint<"/sign-in/username", {
1087
+ signInUsername: import('better-auth').StrictEndpoint<"/sign-in/username", {
345
1088
  method: "POST";
346
- body: import("zod").ZodObject<{
347
- username: import("zod").ZodString;
348
- password: import("zod").ZodString;
349
- rememberMe: import("zod").ZodOptional<import("zod").ZodBoolean>;
350
- callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
351
- }, import("zod/v4/core").$strip>;
1089
+ body: import('zod').ZodObject<{
1090
+ username: import('zod').ZodString;
1091
+ password: import('zod').ZodString;
1092
+ rememberMe: import('zod').ZodOptional<import('zod').ZodBoolean>;
1093
+ callbackURL: import('zod').ZodOptional<import('zod').ZodString>;
1094
+ }, import('zod/v4/core').$strip>;
352
1095
  metadata: {
353
1096
  openapi: {
354
1097
  summary: string;
@@ -407,11 +1150,11 @@ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClie
407
1150
  displayUsername: string;
408
1151
  };
409
1152
  }>;
410
- isUsernameAvailable: import("better-auth").StrictEndpoint<"/is-username-available", {
1153
+ isUsernameAvailable: import('better-auth').StrictEndpoint<"/is-username-available", {
411
1154
  method: "POST";
412
- body: import("zod").ZodObject<{
413
- username: import("zod").ZodString;
414
- }, import("zod/v4/core").$strip>;
1155
+ body: import('zod').ZodObject<{
1156
+ username: import('zod').ZodString;
1157
+ }, import('zod/v4/core').$strip>;
415
1158
  }, {
416
1159
  available: boolean;
417
1160
  }>;
@@ -426,14 +1169,14 @@ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClie
426
1169
  unique: true;
427
1170
  returned: true;
428
1171
  transform: {
429
- input(value: import("better-auth").DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
1172
+ input(value: import('better-auth').DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
430
1173
  };
431
1174
  };
432
1175
  displayUsername: {
433
1176
  type: "string";
434
1177
  required: false;
435
1178
  transform: {
436
- input(value: import("better-auth").DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
1179
+ input(value: import('better-auth').DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
437
1180
  };
438
1181
  };
439
1182
  };
@@ -441,20 +1184,20 @@ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClie
441
1184
  };
442
1185
  hooks: {
443
1186
  before: {
444
- matcher(context: import("better-auth").HookEndpointContext): boolean;
445
- handler: (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>;
1187
+ matcher(context: import('better-auth').HookEndpointContext): boolean;
1188
+ handler: (inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<void>;
446
1189
  }[];
447
1190
  };
448
- options: import("better-auth/plugins/username").UsernameOptions | undefined;
1191
+ options: import('better-auth/plugins/username').UsernameOptions | undefined;
449
1192
  $ERROR_CODES: {
450
- EMAIL_NOT_VERIFIED: import("better-auth").RawError<"EMAIL_NOT_VERIFIED">;
451
- UNEXPECTED_ERROR: import("better-auth").RawError<"UNEXPECTED_ERROR">;
452
- INVALID_USERNAME_OR_PASSWORD: import("better-auth").RawError<"INVALID_USERNAME_OR_PASSWORD">;
453
- USERNAME_IS_ALREADY_TAKEN: import("better-auth").RawError<"USERNAME_IS_ALREADY_TAKEN">;
454
- USERNAME_TOO_SHORT: import("better-auth").RawError<"USERNAME_TOO_SHORT">;
455
- USERNAME_TOO_LONG: import("better-auth").RawError<"USERNAME_TOO_LONG">;
456
- INVALID_USERNAME: import("better-auth").RawError<"INVALID_USERNAME">;
457
- INVALID_DISPLAY_USERNAME: import("better-auth").RawError<"INVALID_DISPLAY_USERNAME">;
1193
+ EMAIL_NOT_VERIFIED: import('better-auth').RawError<"EMAIL_NOT_VERIFIED">;
1194
+ UNEXPECTED_ERROR: import('better-auth').RawError<"UNEXPECTED_ERROR">;
1195
+ INVALID_USERNAME_OR_PASSWORD: import('better-auth').RawError<"INVALID_USERNAME_OR_PASSWORD">;
1196
+ USERNAME_IS_ALREADY_TAKEN: import('better-auth').RawError<"USERNAME_IS_ALREADY_TAKEN">;
1197
+ USERNAME_TOO_SHORT: import('better-auth').RawError<"USERNAME_TOO_SHORT">;
1198
+ USERNAME_TOO_LONG: import('better-auth').RawError<"USERNAME_TOO_LONG">;
1199
+ INVALID_USERNAME: import('better-auth').RawError<"INVALID_USERNAME">;
1200
+ INVALID_DISPLAY_USERNAME: import('better-auth').RawError<"INVALID_DISPLAY_USERNAME">;
458
1201
  };
459
1202
  }>;
460
1203
  atomListeners: {
@@ -462,17 +1205,17 @@ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClie
462
1205
  signal: "$sessionSignal";
463
1206
  }[];
464
1207
  $ERROR_CODES: {
465
- EMAIL_NOT_VERIFIED: import("better-auth").RawError<"EMAIL_NOT_VERIFIED">;
466
- UNEXPECTED_ERROR: import("better-auth").RawError<"UNEXPECTED_ERROR">;
467
- INVALID_USERNAME_OR_PASSWORD: import("better-auth").RawError<"INVALID_USERNAME_OR_PASSWORD">;
468
- USERNAME_IS_ALREADY_TAKEN: import("better-auth").RawError<"USERNAME_IS_ALREADY_TAKEN">;
469
- USERNAME_TOO_SHORT: import("better-auth").RawError<"USERNAME_TOO_SHORT">;
470
- USERNAME_TOO_LONG: import("better-auth").RawError<"USERNAME_TOO_LONG">;
471
- INVALID_USERNAME: import("better-auth").RawError<"INVALID_USERNAME">;
472
- INVALID_DISPLAY_USERNAME: import("better-auth").RawError<"INVALID_DISPLAY_USERNAME">;
1208
+ EMAIL_NOT_VERIFIED: import('better-auth').RawError<"EMAIL_NOT_VERIFIED">;
1209
+ UNEXPECTED_ERROR: import('better-auth').RawError<"UNEXPECTED_ERROR">;
1210
+ INVALID_USERNAME_OR_PASSWORD: import('better-auth').RawError<"INVALID_USERNAME_OR_PASSWORD">;
1211
+ USERNAME_IS_ALREADY_TAKEN: import('better-auth').RawError<"USERNAME_IS_ALREADY_TAKEN">;
1212
+ USERNAME_TOO_SHORT: import('better-auth').RawError<"USERNAME_TOO_SHORT">;
1213
+ USERNAME_TOO_LONG: import('better-auth').RawError<"USERNAME_TOO_LONG">;
1214
+ INVALID_USERNAME: import('better-auth').RawError<"INVALID_USERNAME">;
1215
+ INVALID_DISPLAY_USERNAME: import('better-auth').RawError<"INVALID_DISPLAY_USERNAME">;
473
1216
  };
474
1217
  })[];
475
- }, FetchOptions>>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<(Omit<{
1218
+ }, FetchOptions>>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<(Omit<{
476
1219
  token: null;
477
1220
  user: {
478
1221
  id: string;
@@ -484,7 +1227,7 @@ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClie
484
1227
  image?: string | null | undefined | undefined;
485
1228
  };
486
1229
  }, "user"> & {
487
- user: import("better-auth").StripEmptyObjects<{
1230
+ user: import('better-auth').StripEmptyObjects<{
488
1231
  id: string;
489
1232
  createdAt: Date;
490
1233
  updatedAt: Date;
@@ -508,7 +1251,7 @@ export declare function useSignUpEmail(options?: UseAuthMutationOptions<AuthClie
508
1251
  image?: string | null | undefined | undefined;
509
1252
  };
510
1253
  }, "user"> & {
511
- user: import("better-auth").StripEmptyObjects<{
1254
+ user: import('better-auth').StripEmptyObjects<{
512
1255
  id: string;
513
1256
  createdAt: Date;
514
1257
  updatedAt: Date;