@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,6 @@
1
- import { createAuthClient } from "better-auth/react";
2
- import type { AuthConfig } from "./auth-config";
3
- export type { PathToObject } from "better-auth/client";
1
+ import { createAuthClient } from 'better-auth/react';
2
+ import { AuthConfig } from './auth-config';
3
+ export type { PathToObject } from 'better-auth/client';
4
4
  /**
5
5
  * Type representing any auth client created with `createAuthClient`.
6
6
  *
@@ -9,184 +9,57 @@ export type { PathToObject } from "better-auth/client";
9
9
  */
10
10
  export type AnyAuthClient = Omit<ReturnType<typeof createAuthClient>, "signUp">;
11
11
  declare const authClient: {
12
- deleteUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
13
- callbackURL?: string | undefined;
14
- password?: string | undefined;
15
- token?: string | undefined;
16
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
17
- callbackURL?: string | undefined;
18
- password?: string | undefined;
19
- token?: string | undefined;
20
- } & {
21
- fetchOptions?: FetchOptions | undefined;
22
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
23
- success: boolean;
24
- message: string;
25
- }, {
26
- code?: string | undefined;
27
- message?: string | undefined;
28
- }, FetchOptions["throw"] extends true ? true : false>>;
29
- } & {
30
- resetPassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
31
- newPassword: string;
32
- token?: string | undefined;
33
- }> & Record<string, any>, Partial<{
34
- token?: string | undefined;
35
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
36
- newPassword: string;
37
- token?: string | undefined;
38
- } & {
39
- fetchOptions?: FetchOptions | undefined;
40
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
41
- status: boolean;
42
- }, {
43
- code?: string | undefined;
44
- message?: string | undefined;
45
- }, FetchOptions["throw"] extends true ? true : false>>;
46
- } & {
47
- signOut: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
48
- query?: Record<string, any> | undefined;
49
- fetchOptions?: FetchOptions | undefined;
50
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
51
- success: boolean;
52
- }, {
53
- code?: string | undefined;
54
- message?: string | undefined;
55
- }, FetchOptions["throw"] extends true ? true : false>>;
56
- } & {
57
- changeEmail: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
58
- newEmail: string;
59
- callbackURL?: string | undefined;
60
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
61
- newEmail: string;
62
- callbackURL?: string | undefined;
63
- } & {
64
- fetchOptions?: FetchOptions | undefined;
65
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
66
- status: boolean;
67
- }, {
68
- code?: string | undefined;
69
- message?: string | undefined;
70
- }, FetchOptions["throw"] extends true ? true : false>>;
71
- } & {
72
- changePassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
73
- newPassword: string;
74
- currentPassword: string;
75
- revokeOtherSessions?: boolean | undefined;
76
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
77
- newPassword: string;
78
- currentPassword: string;
79
- revokeOtherSessions?: boolean | undefined;
80
- } & {
81
- fetchOptions?: FetchOptions | undefined;
82
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<Omit<{
83
- token: string | null;
84
- user: {
85
- id: string;
86
- createdAt: Date;
87
- updatedAt: Date;
88
- email: string;
89
- emailVerified: boolean;
90
- name: string;
91
- image?: string | null | undefined;
92
- } & Record<string, any> & {
93
- id: string;
94
- createdAt: Date;
95
- updatedAt: Date;
96
- email: string;
97
- emailVerified: boolean;
98
- name: string;
99
- image?: string | null | undefined;
100
- };
101
- }, "user"> & {
102
- user: import("better-auth").StripEmptyObjects<{
103
- id: string;
104
- createdAt: Date;
105
- updatedAt: Date;
106
- email: string;
107
- emailVerified: boolean;
108
- name: string;
109
- image?: string | null | undefined;
110
- } & {} & {
111
- username?: string | null | undefined;
112
- displayUsername?: string | null | undefined;
113
- }>;
114
- }, {
115
- code?: string | undefined;
116
- message?: string | undefined;
117
- }, FetchOptions["throw"] extends true ? true : false>>;
118
- } & {
119
- revokeSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
120
- token: string;
121
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
122
- token: string;
123
- } & {
124
- fetchOptions?: FetchOptions | undefined;
125
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
126
- status: boolean;
127
- }, {
128
- code?: string | undefined;
129
- message?: string | undefined;
130
- }, FetchOptions["throw"] extends true ? true : false>>;
12
+ useListPasskeys: () => {
13
+ data: import('@better-auth/passkey/client').Passkey[] | null;
14
+ error: null | import('better-auth/client').BetterFetchError;
15
+ isPending: boolean;
16
+ isRefetching: boolean;
17
+ refetch: (queryParams?: {
18
+ query?: import('better-auth').SessionQueryParams;
19
+ } | undefined) => Promise<void>;
20
+ };
131
21
  } & {
132
22
  signIn: {
133
- social: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
134
- provider: "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {});
23
+ magicLink: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
24
+ email: string;
25
+ name?: string | undefined;
135
26
  callbackURL?: string | undefined;
136
27
  newUserCallbackURL?: string | undefined;
137
28
  errorCallbackURL?: string | undefined;
138
- disableRedirect?: boolean | undefined;
139
- idToken?: {
140
- token: string;
141
- nonce?: string | undefined;
142
- accessToken?: string | undefined;
143
- refreshToken?: string | undefined;
144
- expiresAt?: number | undefined;
145
- user?: {
146
- name?: {
147
- firstName?: string | undefined;
148
- lastName?: string | undefined;
149
- } | undefined;
150
- email?: string | undefined;
151
- } | undefined;
152
- } | undefined;
153
- scopes?: string[] | undefined;
154
- requestSignUp?: boolean | undefined;
155
- loginHint?: string | undefined;
156
- additionalData?: Record<string, any> | undefined;
157
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
158
- provider: "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {});
29
+ metadata?: Record<string, any> | undefined;
30
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
31
+ email: string;
32
+ name?: string | undefined;
159
33
  callbackURL?: string | undefined;
160
34
  newUserCallbackURL?: string | undefined;
161
35
  errorCallbackURL?: string | undefined;
162
- disableRedirect?: boolean | undefined;
163
- idToken?: {
164
- token: string;
165
- nonce?: string | undefined;
166
- accessToken?: string | undefined;
167
- refreshToken?: string | undefined;
168
- expiresAt?: number | undefined;
169
- user?: {
170
- name?: {
171
- firstName?: string | undefined;
172
- lastName?: string | undefined;
173
- } | undefined;
174
- email?: string | undefined;
175
- } | undefined;
176
- } | undefined;
177
- scopes?: string[] | undefined;
178
- requestSignUp?: boolean | undefined;
179
- loginHint?: string | undefined;
180
- additionalData?: Record<string, any> | undefined;
36
+ metadata?: Record<string, any> | undefined;
181
37
  } & {
182
38
  fetchOptions?: FetchOptions | undefined;
183
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
184
- redirect: boolean;
185
- url: string;
186
- } | (Omit<{
187
- redirect: boolean;
39
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
40
+ status: boolean;
41
+ }, {
42
+ code?: string | undefined;
43
+ message?: string | undefined;
44
+ }, FetchOptions["throw"] extends true ? true : false>>;
45
+ };
46
+ } & {
47
+ magicLink: {
48
+ verify: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
49
+ token: string;
50
+ callbackURL?: string | undefined;
51
+ errorCallbackURL?: string | undefined;
52
+ newUserCallbackURL?: string | undefined;
53
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
54
+ query: {
55
+ token: string;
56
+ callbackURL?: string | undefined;
57
+ errorCallbackURL?: string | undefined;
58
+ newUserCallbackURL?: string | undefined;
59
+ };
60
+ fetchOptions?: FetchOptions | undefined;
61
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<Omit<Omit<{
188
62
  token: string;
189
- url: undefined;
190
63
  user: {
191
64
  id: string;
192
65
  createdAt: Date;
@@ -194,10 +67,20 @@ declare const authClient: {
194
67
  email: string;
195
68
  emailVerified: boolean;
196
69
  name: string;
197
- image?: string | null | undefined | undefined;
70
+ image?: string | null | undefined;
71
+ };
72
+ session: {
73
+ id: string;
74
+ createdAt: Date;
75
+ updatedAt: Date;
76
+ userId: string;
77
+ expiresAt: Date;
78
+ token: string;
79
+ ipAddress?: string | null | undefined;
80
+ userAgent?: string | null | undefined;
198
81
  };
199
82
  }, "user"> & {
200
- user: import("better-auth").StripEmptyObjects<{
83
+ user: import('better-auth').StripEmptyObjects<{
201
84
  id: string;
202
85
  createdAt: Date;
203
86
  updatedAt: Date;
@@ -209,94 +92,1855 @@ declare const authClient: {
209
92
  username?: string | null | undefined;
210
93
  displayUsername?: string | null | undefined;
211
94
  }>;
212
- }), {
95
+ }, "session"> & {
96
+ session: import('better-auth').StripEmptyObjects<{
97
+ id: string;
98
+ createdAt: Date;
99
+ updatedAt: Date;
100
+ userId: string;
101
+ expiresAt: Date;
102
+ token: string;
103
+ ipAddress?: string | null | undefined;
104
+ userAgent?: string | null | undefined;
105
+ }>;
106
+ }, {
213
107
  code?: string | undefined;
214
108
  message?: string | undefined;
215
109
  }, FetchOptions["throw"] extends true ? true : false>>;
216
110
  };
217
111
  } & {
218
- signUp: {
219
- email: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
220
- name: string;
221
- email: string;
222
- password: string;
223
- image?: string | undefined;
224
- callbackURL?: string | undefined;
225
- rememberMe?: boolean | undefined;
226
- }> & 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<{
227
- plugins: ({
228
- id: "magic-link";
229
- version: string;
230
- $InferServerPlugin: ReturnType<(options: import("better-auth/plugins/magic-link").MagicLinkOptions) => {
231
- id: "magic-link";
232
- version: string;
233
- endpoints: {
234
- signInMagicLink: import("better-auth").StrictEndpoint<"/sign-in/magic-link", {
235
- method: "POST";
236
- requireHeaders: true;
237
- body: import("zod").ZodObject<{
238
- email: import("zod").ZodEmail;
239
- name: import("zod").ZodOptional<import("zod").ZodString>;
240
- callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
241
- newUserCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
242
- errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
243
- metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
244
- }, import("zod/v4/core").$strip>;
245
- metadata: {
246
- openapi: {
247
- operationId: string;
248
- description: string;
249
- responses: {
250
- 200: {
251
- description: string;
252
- content: {
253
- "application/json": {
254
- schema: {
255
- type: "object";
256
- properties: {
257
- status: {
258
- type: string;
259
- };
260
- };
261
- };
262
- };
263
- };
264
- };
265
- };
266
- };
267
- };
268
- }, {
269
- status: boolean;
270
- }>;
271
- magicLinkVerify: import("better-auth").StrictEndpoint<"/magic-link/verify", {
272
- method: "GET";
273
- query: import("zod").ZodObject<{
274
- token: import("zod").ZodString;
275
- callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
276
- errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
277
- newUserCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
278
- }, import("zod/v4/core").$strip>;
279
- use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
280
- requireHeaders: true;
281
- metadata: {
282
- openapi: {
283
- operationId: string;
284
- description: string;
285
- responses: {
286
- 200: {
287
- description: string;
288
- content: {
289
- "application/json": {
290
- schema: {
291
- type: "object";
292
- properties: {
293
- session: {
294
- $ref: string;
295
- };
112
+ multiSession: {
113
+ listDeviceSessions: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
114
+ query?: Record<string, any> | undefined;
115
+ fetchOptions?: FetchOptions | undefined;
116
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
117
+ session: {
118
+ id: string;
119
+ createdAt: Date;
120
+ updatedAt: Date;
121
+ userId: string;
122
+ expiresAt: Date;
123
+ token: string;
124
+ ipAddress?: string | null | undefined;
125
+ userAgent?: string | null | undefined;
126
+ };
127
+ user: {
128
+ id: string;
129
+ createdAt: Date;
130
+ updatedAt: Date;
131
+ email: string;
132
+ emailVerified: boolean;
133
+ name: string;
134
+ image?: string | null | undefined;
135
+ };
136
+ }[], {
137
+ code?: string | undefined;
138
+ message?: string | undefined;
139
+ }, FetchOptions["throw"] extends true ? true : false>>;
140
+ };
141
+ } & {
142
+ multiSession: {
143
+ setActive: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
144
+ sessionToken: string;
145
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
146
+ sessionToken: string;
147
+ } & {
148
+ fetchOptions?: FetchOptions | undefined;
149
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
150
+ session: {
151
+ id: string;
152
+ createdAt: Date;
153
+ updatedAt: Date;
154
+ userId: string;
155
+ expiresAt: Date;
156
+ token: string;
157
+ ipAddress?: string | null | undefined;
158
+ userAgent?: string | null | undefined;
159
+ } & Record<string, any>;
160
+ user: {
161
+ id: string;
162
+ createdAt: Date;
163
+ updatedAt: Date;
164
+ email: string;
165
+ emailVerified: boolean;
166
+ name: string;
167
+ image?: string | null | undefined;
168
+ } & Record<string, any>;
169
+ }, {
170
+ code?: string | undefined;
171
+ message?: string | undefined;
172
+ }, FetchOptions["throw"] extends true ? true : false>>;
173
+ };
174
+ } & {
175
+ multiSession: {
176
+ revoke: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
177
+ sessionToken: string;
178
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
179
+ sessionToken: string;
180
+ } & {
181
+ fetchOptions?: FetchOptions | undefined;
182
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
183
+ status: boolean;
184
+ }, {
185
+ code?: string | undefined;
186
+ message?: string | undefined;
187
+ }, FetchOptions["throw"] extends true ? true : false>>;
188
+ };
189
+ } & {
190
+ passkey: {
191
+ generateRegisterOptions: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
192
+ authenticatorAttachment?: "platform" | "cross-platform" | undefined;
193
+ name?: string | undefined;
194
+ context?: string | undefined;
195
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
196
+ query?: {
197
+ authenticatorAttachment?: "platform" | "cross-platform" | undefined;
198
+ name?: string | undefined;
199
+ context?: string | undefined;
200
+ } | undefined;
201
+ fetchOptions?: FetchOptions | undefined;
202
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<import('@better-auth/passkey/client').PublicKeyCredentialCreationOptionsJSON, {
203
+ code?: string | undefined;
204
+ message?: string | undefined;
205
+ }, FetchOptions["throw"] extends true ? true : false>>;
206
+ };
207
+ } & {
208
+ passkey: {
209
+ generateAuthenticateOptions: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
210
+ query?: Record<string, any> | undefined;
211
+ fetchOptions?: FetchOptions | undefined;
212
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<import('@better-auth/passkey/client').PublicKeyCredentialRequestOptionsJSON, {
213
+ code?: string | undefined;
214
+ message?: string | undefined;
215
+ }, FetchOptions["throw"] extends true ? true : false>>;
216
+ };
217
+ } & {
218
+ passkey: {
219
+ verifyRegistration: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
220
+ response: any;
221
+ name?: string | undefined;
222
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
223
+ response: any;
224
+ name?: string | undefined;
225
+ } & {
226
+ fetchOptions?: FetchOptions | undefined;
227
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<import('@better-auth/passkey/client').Passkey, {
228
+ code?: string | undefined;
229
+ message?: string | undefined;
230
+ }, FetchOptions["throw"] extends true ? true : false>>;
231
+ };
232
+ } & {
233
+ passkey: {
234
+ verifyAuthentication: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
235
+ response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
236
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
237
+ response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
238
+ } & {
239
+ fetchOptions?: FetchOptions | undefined;
240
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
241
+ session: {
242
+ id: string;
243
+ createdAt: Date;
244
+ updatedAt: Date;
245
+ userId: string;
246
+ expiresAt: Date;
247
+ token: string;
248
+ ipAddress?: string | null | undefined;
249
+ userAgent?: string | null | undefined;
250
+ };
251
+ }, {
252
+ code?: string | undefined;
253
+ message?: string | undefined;
254
+ }, FetchOptions["throw"] extends true ? true : false>>;
255
+ };
256
+ } & {
257
+ passkey: {
258
+ listUserPasskeys: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
259
+ query?: Record<string, any> | undefined;
260
+ fetchOptions?: FetchOptions | undefined;
261
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<import('@better-auth/passkey/client').Passkey[], {
262
+ code?: string | undefined;
263
+ message?: string | undefined;
264
+ }, FetchOptions["throw"] extends true ? true : false>>;
265
+ };
266
+ } & {
267
+ passkey: {
268
+ deletePasskey: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
269
+ id: string;
270
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
271
+ id: string;
272
+ } & {
273
+ fetchOptions?: FetchOptions | undefined;
274
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
275
+ status: boolean;
276
+ }, {
277
+ code?: string | undefined;
278
+ message?: string | undefined;
279
+ }, FetchOptions["throw"] extends true ? true : false>>;
280
+ };
281
+ } & {
282
+ passkey: {
283
+ updatePasskey: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
284
+ id: string;
285
+ name: string;
286
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
287
+ id: string;
288
+ name: string;
289
+ } & {
290
+ fetchOptions?: FetchOptions | undefined;
291
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
292
+ passkey: import('@better-auth/passkey/client').Passkey;
293
+ }, {
294
+ code?: string | undefined;
295
+ message?: string | undefined;
296
+ }, FetchOptions["throw"] extends true ? true : false>>;
297
+ };
298
+ } & {
299
+ signIn: {
300
+ username: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
301
+ username: string;
302
+ password: string;
303
+ rememberMe?: boolean | undefined;
304
+ callbackURL?: string | undefined;
305
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
306
+ username: string;
307
+ password: string;
308
+ rememberMe?: boolean | undefined;
309
+ callbackURL?: string | undefined;
310
+ } & {
311
+ fetchOptions?: FetchOptions | undefined;
312
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<Omit<{
313
+ token: string;
314
+ user: {
315
+ id: string;
316
+ createdAt: Date;
317
+ updatedAt: Date;
318
+ email: string;
319
+ emailVerified: boolean;
320
+ name: string;
321
+ image?: string | null | undefined;
322
+ } & {
323
+ username: string;
324
+ displayUsername: string;
325
+ };
326
+ }, "user"> & {
327
+ user: import('better-auth').StripEmptyObjects<{
328
+ id: string;
329
+ createdAt: Date;
330
+ updatedAt: Date;
331
+ email: string;
332
+ emailVerified: boolean;
333
+ name: string;
334
+ image?: string | null | undefined;
335
+ } & {} & {
336
+ username?: string | null | undefined;
337
+ displayUsername?: string | null | undefined;
338
+ }>;
339
+ }, {
340
+ code?: string | undefined;
341
+ message?: string | undefined;
342
+ }, FetchOptions["throw"] extends true ? true : false>>;
343
+ };
344
+ } & {
345
+ isUsernameAvailable: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
346
+ username: string;
347
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
348
+ username: string;
349
+ } & {
350
+ fetchOptions?: FetchOptions | undefined;
351
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
352
+ available: boolean;
353
+ }, {
354
+ code?: string | undefined;
355
+ message?: string | undefined;
356
+ }, FetchOptions["throw"] extends true ? true : false>>;
357
+ } & {
358
+ deleteUser: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
359
+ callbackURL?: string | undefined;
360
+ password?: string | undefined;
361
+ token?: string | undefined;
362
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
363
+ callbackURL?: string | undefined;
364
+ password?: string | undefined;
365
+ token?: string | undefined;
366
+ } & {
367
+ fetchOptions?: FetchOptions | undefined;
368
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
369
+ success: boolean;
370
+ message: string;
371
+ }, {
372
+ code?: string | undefined;
373
+ message?: string | undefined;
374
+ }, FetchOptions["throw"] extends true ? true : false>>;
375
+ } & {
376
+ signIn: {
377
+ social: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
378
+ provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
379
+ callbackURL?: string | undefined;
380
+ newUserCallbackURL?: string | undefined;
381
+ errorCallbackURL?: string | undefined;
382
+ disableRedirect?: boolean | undefined;
383
+ idToken?: {
384
+ token: string;
385
+ nonce?: string | undefined;
386
+ accessToken?: string | undefined;
387
+ refreshToken?: string | undefined;
388
+ expiresAt?: number | undefined;
389
+ user?: {
390
+ name?: {
391
+ firstName?: string | undefined;
392
+ lastName?: string | undefined;
393
+ } | undefined;
394
+ email?: string | undefined;
395
+ } | undefined;
396
+ } | undefined;
397
+ scopes?: string[] | undefined;
398
+ requestSignUp?: boolean | undefined;
399
+ loginHint?: string | undefined;
400
+ additionalData?: Record<string, any> | undefined;
401
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
402
+ provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
403
+ callbackURL?: string | undefined;
404
+ newUserCallbackURL?: string | undefined;
405
+ errorCallbackURL?: string | undefined;
406
+ disableRedirect?: boolean | undefined;
407
+ idToken?: {
408
+ token: string;
409
+ nonce?: string | undefined;
410
+ accessToken?: string | undefined;
411
+ refreshToken?: string | undefined;
412
+ expiresAt?: number | undefined;
413
+ user?: {
414
+ name?: {
415
+ firstName?: string | undefined;
416
+ lastName?: string | undefined;
417
+ } | undefined;
418
+ email?: string | undefined;
419
+ } | undefined;
420
+ } | undefined;
421
+ scopes?: string[] | undefined;
422
+ requestSignUp?: boolean | undefined;
423
+ loginHint?: string | undefined;
424
+ additionalData?: Record<string, any> | undefined;
425
+ } & {
426
+ fetchOptions?: FetchOptions | undefined;
427
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
428
+ redirect: boolean;
429
+ url: string;
430
+ } | (Omit<{
431
+ redirect: boolean;
432
+ token: string;
433
+ url: undefined;
434
+ user: {
435
+ id: string;
436
+ createdAt: Date;
437
+ updatedAt: Date;
438
+ email: string;
439
+ emailVerified: boolean;
440
+ name: string;
441
+ image?: string | null | undefined | undefined;
442
+ };
443
+ }, "user"> & {
444
+ user: import('better-auth').StripEmptyObjects<{
445
+ id: string;
446
+ createdAt: Date;
447
+ updatedAt: Date;
448
+ email: string;
449
+ emailVerified: boolean;
450
+ name: string;
451
+ image?: string | null | undefined;
452
+ } & {} & {
453
+ username?: string | null | undefined;
454
+ displayUsername?: string | null | undefined;
455
+ }>;
456
+ }), {
457
+ code?: string | undefined;
458
+ message?: string | undefined;
459
+ }, FetchOptions["throw"] extends true ? true : false>>;
460
+ };
461
+ } & {
462
+ signOut: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
463
+ query?: Record<string, any> | undefined;
464
+ fetchOptions?: FetchOptions | undefined;
465
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
466
+ success: boolean;
467
+ }, {
468
+ code?: string | undefined;
469
+ message?: string | undefined;
470
+ }, FetchOptions["throw"] extends true ? true : false>>;
471
+ } & {
472
+ signUp: {
473
+ email: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
474
+ name: string;
475
+ email: string;
476
+ password: string;
477
+ image?: string | undefined;
478
+ callbackURL?: string | undefined;
479
+ rememberMe?: boolean | undefined;
480
+ }> & 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<{
481
+ plugins: ({
482
+ id: "magic-link";
483
+ version: string;
484
+ $InferServerPlugin: ReturnType<(options: import('better-auth/plugins/magic-link').MagicLinkOptions) => {
485
+ id: "magic-link";
486
+ version: string;
487
+ endpoints: {
488
+ signInMagicLink: import('better-auth').StrictEndpoint<"/sign-in/magic-link", {
489
+ method: "POST";
490
+ requireHeaders: true;
491
+ body: import('zod').ZodObject<{
492
+ email: import('zod').ZodEmail;
493
+ name: import('zod').ZodOptional<import('zod').ZodString>;
494
+ callbackURL: import('zod').ZodOptional<import('zod').ZodString>;
495
+ newUserCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
496
+ errorCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
497
+ metadata: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodAny>>;
498
+ }, import('zod/v4/core').$strip>;
499
+ metadata: {
500
+ openapi: {
501
+ operationId: string;
502
+ description: string;
503
+ responses: {
504
+ 200: {
505
+ description: string;
506
+ content: {
507
+ "application/json": {
508
+ schema: {
509
+ type: "object";
510
+ properties: {
511
+ status: {
512
+ type: string;
513
+ };
514
+ };
515
+ };
516
+ };
517
+ };
518
+ };
519
+ };
520
+ };
521
+ };
522
+ }, {
523
+ status: boolean;
524
+ }>;
525
+ magicLinkVerify: import('better-auth').StrictEndpoint<"/magic-link/verify", {
526
+ method: "GET";
527
+ query: import('zod').ZodObject<{
528
+ token: import('zod').ZodString;
529
+ callbackURL: import('zod').ZodOptional<import('zod').ZodString>;
530
+ errorCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
531
+ newUserCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
532
+ }, import('zod/v4/core').$strip>;
533
+ use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<void>)[];
534
+ requireHeaders: true;
535
+ metadata: {
536
+ openapi: {
537
+ operationId: string;
538
+ description: string;
539
+ responses: {
540
+ 200: {
541
+ description: string;
542
+ content: {
543
+ "application/json": {
544
+ schema: {
545
+ type: "object";
546
+ properties: {
547
+ session: {
548
+ $ref: string;
549
+ };
550
+ user: {
551
+ $ref: string;
552
+ };
553
+ };
554
+ };
555
+ };
556
+ };
557
+ };
558
+ };
559
+ };
560
+ };
561
+ }, {
562
+ token: string;
563
+ user: {
564
+ id: string;
565
+ createdAt: Date;
566
+ updatedAt: Date;
567
+ email: string;
568
+ emailVerified: boolean;
569
+ name: string;
570
+ image?: string | null | undefined;
571
+ };
572
+ session: {
573
+ id: string;
574
+ createdAt: Date;
575
+ updatedAt: Date;
576
+ userId: string;
577
+ expiresAt: Date;
578
+ token: string;
579
+ ipAddress?: string | null | undefined;
580
+ userAgent?: string | null | undefined;
581
+ };
582
+ }>;
583
+ };
584
+ rateLimit: {
585
+ pathMatcher(path: string): boolean;
586
+ window: number;
587
+ max: number;
588
+ }[];
589
+ options: import('better-auth/plugins/magic-link').MagicLinkOptions;
590
+ }>;
591
+ } | {
592
+ id: "multi-session";
593
+ version: string;
594
+ $InferServerPlugin: ReturnType<(options?: import('better-auth/plugins/multi-session').MultiSessionConfig | undefined) => {
595
+ id: "multi-session";
596
+ version: string;
597
+ endpoints: {
598
+ listDeviceSessions: import('better-auth').StrictEndpoint<"/multi-session/list-device-sessions", {
599
+ method: "GET";
600
+ requireHeaders: true;
601
+ }, {
602
+ session: {
603
+ id: string;
604
+ createdAt: Date;
605
+ updatedAt: Date;
606
+ userId: string;
607
+ expiresAt: Date;
608
+ token: string;
609
+ ipAddress?: string | null | undefined;
610
+ userAgent?: string | null | undefined;
611
+ };
612
+ user: {
613
+ id: string;
614
+ createdAt: Date;
615
+ updatedAt: Date;
616
+ email: string;
617
+ emailVerified: boolean;
618
+ name: string;
619
+ image?: string | null | undefined;
620
+ };
621
+ }[]>;
622
+ setActiveSession: import('better-auth').StrictEndpoint<"/multi-session/set-active", {
623
+ method: "POST";
624
+ body: import('zod').ZodObject<{
625
+ sessionToken: import('zod').ZodString;
626
+ }, import('zod/v4/core').$strip>;
627
+ requireHeaders: true;
628
+ metadata: {
629
+ openapi: {
630
+ description: string;
631
+ responses: {
632
+ 200: {
633
+ description: string;
634
+ content: {
635
+ "application/json": {
636
+ schema: {
637
+ type: "object";
638
+ properties: {
639
+ session: {
640
+ $ref: string;
641
+ };
642
+ };
643
+ };
644
+ };
645
+ };
646
+ };
647
+ };
648
+ };
649
+ };
650
+ }, {
651
+ session: {
652
+ id: string;
653
+ createdAt: Date;
654
+ updatedAt: Date;
655
+ userId: string;
656
+ expiresAt: Date;
657
+ token: string;
658
+ ipAddress?: string | null | undefined;
659
+ userAgent?: string | null | undefined;
660
+ } & Record<string, any>;
661
+ user: {
662
+ id: string;
663
+ createdAt: Date;
664
+ updatedAt: Date;
665
+ email: string;
666
+ emailVerified: boolean;
667
+ name: string;
668
+ image?: string | null | undefined;
669
+ } & Record<string, any>;
670
+ }>;
671
+ revokeDeviceSession: import('better-auth').StrictEndpoint<"/multi-session/revoke", {
672
+ method: "POST";
673
+ body: import('zod').ZodObject<{
674
+ sessionToken: import('zod').ZodString;
675
+ }, import('zod/v4/core').$strip>;
676
+ requireHeaders: true;
677
+ use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
678
+ session: {
679
+ session: Record<string, any> & {
680
+ id: string;
681
+ createdAt: Date;
682
+ updatedAt: Date;
683
+ userId: string;
684
+ expiresAt: Date;
685
+ token: string;
686
+ ipAddress?: string | null | undefined;
687
+ userAgent?: string | null | undefined;
688
+ };
689
+ user: Record<string, any> & {
690
+ id: string;
691
+ createdAt: Date;
692
+ updatedAt: Date;
693
+ email: string;
694
+ emailVerified: boolean;
695
+ name: string;
696
+ image?: string | null | undefined;
697
+ };
698
+ };
699
+ }>)[];
700
+ metadata: {
701
+ openapi: {
702
+ description: string;
703
+ responses: {
704
+ 200: {
705
+ description: string;
706
+ content: {
707
+ "application/json": {
708
+ schema: {
709
+ type: "object";
710
+ properties: {
711
+ status: {
712
+ type: string;
713
+ };
714
+ };
715
+ };
716
+ };
717
+ };
718
+ };
719
+ };
720
+ };
721
+ };
722
+ }, {
723
+ status: boolean;
724
+ }>;
725
+ };
726
+ hooks: {
727
+ after: {
728
+ matcher: (context: import('better-auth').HookEndpointContext) => boolean;
729
+ handler: (inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<void>;
730
+ }[];
731
+ };
732
+ options: import('better-auth/plugins/multi-session').MultiSessionConfig | undefined;
733
+ $ERROR_CODES: {
734
+ INVALID_SESSION_TOKEN: import('better-auth').RawError<"INVALID_SESSION_TOKEN">;
735
+ };
736
+ }>;
737
+ atomListeners: {
738
+ matcher(path: string): path is "/multi-session/set-active";
739
+ signal: "$sessionSignal";
740
+ }[];
741
+ $ERROR_CODES: {
742
+ INVALID_SESSION_TOKEN: import('better-auth').RawError<"INVALID_SESSION_TOKEN">;
743
+ };
744
+ } | {
745
+ id: "passkey";
746
+ version: string;
747
+ $InferServerPlugin: ReturnType<(options?: import('@better-auth/passkey/client').PasskeyOptions | undefined) => {
748
+ id: "passkey";
749
+ version: string;
750
+ endpoints: {
751
+ generatePasskeyRegistrationOptions: import('better-auth').StrictEndpoint<"/passkey/generate-register-options", {
752
+ method: "GET";
753
+ use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
754
+ session: {
755
+ session: Record<string, any> & {
756
+ id: string;
757
+ createdAt: Date;
758
+ updatedAt: Date;
759
+ userId: string;
760
+ expiresAt: Date;
761
+ token: string;
762
+ ipAddress?: string | null | undefined;
763
+ userAgent?: string | null | undefined;
764
+ };
765
+ user: Record<string, any> & {
766
+ id: string;
767
+ createdAt: Date;
768
+ updatedAt: Date;
769
+ email: string;
770
+ emailVerified: boolean;
771
+ name: string;
772
+ image?: string | null | undefined;
773
+ };
774
+ };
775
+ }>)[] | undefined;
776
+ query: import('zod').ZodOptional<import('zod').ZodObject<{
777
+ authenticatorAttachment: import('zod').ZodOptional<import('zod').ZodEnum<{
778
+ platform: "platform";
779
+ "cross-platform": "cross-platform";
780
+ }>>;
781
+ name: import('zod').ZodOptional<import('zod').ZodString>;
782
+ context: import('zod').ZodOptional<import('zod').ZodString>;
783
+ }, import('zod/v4/core').$strip>>;
784
+ metadata: {
785
+ openapi: {
786
+ operationId: string;
787
+ description: string;
788
+ responses: {
789
+ 200: {
790
+ description: string;
791
+ parameters: {
792
+ query: {
793
+ authenticatorAttachment: {
794
+ description: string;
795
+ required: boolean;
796
+ };
797
+ name: {
798
+ description: string;
799
+ required: boolean;
800
+ };
801
+ context: {
802
+ description: string;
803
+ required: boolean;
804
+ };
805
+ };
806
+ };
807
+ content: {
808
+ "application/json": {
809
+ schema: {
810
+ type: "object";
811
+ properties: {
812
+ challenge: {
813
+ type: string;
814
+ };
815
+ rp: {
816
+ type: string;
817
+ properties: {
818
+ name: {
819
+ type: string;
820
+ };
821
+ id: {
822
+ type: string;
823
+ };
824
+ };
825
+ };
826
+ user: {
827
+ type: string;
828
+ properties: {
829
+ id: {
830
+ type: string;
831
+ };
832
+ name: {
833
+ type: string;
834
+ };
835
+ displayName: {
836
+ type: string;
837
+ };
838
+ };
839
+ };
840
+ pubKeyCredParams: {
841
+ type: string;
842
+ items: {
843
+ type: string;
844
+ properties: {
845
+ type: {
846
+ type: string;
847
+ };
848
+ alg: {
849
+ type: string;
850
+ };
851
+ };
852
+ };
853
+ };
854
+ timeout: {
855
+ type: string;
856
+ };
857
+ excludeCredentials: {
858
+ type: string;
859
+ items: {
860
+ type: string;
861
+ properties: {
862
+ id: {
863
+ type: string;
864
+ };
865
+ type: {
866
+ type: string;
867
+ };
868
+ transports: {
869
+ type: string;
870
+ items: {
871
+ type: string;
872
+ };
873
+ };
874
+ };
875
+ };
876
+ };
877
+ authenticatorSelection: {
878
+ type: string;
879
+ properties: {
880
+ authenticatorAttachment: {
881
+ type: string;
882
+ };
883
+ requireResidentKey: {
884
+ type: string;
885
+ };
886
+ userVerification: {
887
+ type: string;
888
+ };
889
+ };
890
+ };
891
+ attestation: {
892
+ type: string;
893
+ };
894
+ extensions: {
895
+ type: string;
896
+ };
897
+ };
898
+ };
899
+ };
900
+ };
901
+ };
902
+ };
903
+ };
904
+ };
905
+ }, import('@better-auth/passkey/client').PublicKeyCredentialCreationOptionsJSON>;
906
+ generatePasskeyAuthenticationOptions: import('better-auth').StrictEndpoint<"/passkey/generate-authenticate-options", {
907
+ method: "GET";
908
+ metadata: {
909
+ openapi: {
910
+ operationId: string;
911
+ description: string;
912
+ responses: {
913
+ 200: {
914
+ description: string;
915
+ content: {
916
+ "application/json": {
917
+ schema: {
918
+ type: "object";
919
+ properties: {
920
+ challenge: {
921
+ type: string;
922
+ };
923
+ rp: {
924
+ type: string;
925
+ properties: {
926
+ name: {
927
+ type: string;
928
+ };
929
+ id: {
930
+ type: string;
931
+ };
932
+ };
933
+ };
934
+ user: {
935
+ type: string;
936
+ properties: {
937
+ id: {
938
+ type: string;
939
+ };
940
+ name: {
941
+ type: string;
942
+ };
943
+ displayName: {
944
+ type: string;
945
+ };
946
+ };
947
+ };
948
+ timeout: {
949
+ type: string;
950
+ };
951
+ allowCredentials: {
952
+ type: string;
953
+ items: {
954
+ type: string;
955
+ properties: {
956
+ id: {
957
+ type: string;
958
+ };
959
+ type: {
960
+ type: string;
961
+ };
962
+ transports: {
963
+ type: string;
964
+ items: {
965
+ type: string;
966
+ };
967
+ };
968
+ };
969
+ };
970
+ };
971
+ userVerification: {
972
+ type: string;
973
+ };
974
+ authenticatorSelection: {
975
+ type: string;
976
+ properties: {
977
+ authenticatorAttachment: {
978
+ type: string;
979
+ };
980
+ requireResidentKey: {
981
+ type: string;
982
+ };
983
+ userVerification: {
984
+ type: string;
985
+ };
986
+ };
987
+ };
988
+ extensions: {
989
+ type: string;
990
+ };
991
+ };
992
+ };
993
+ };
994
+ };
995
+ };
996
+ };
997
+ };
998
+ };
999
+ }, import('@better-auth/passkey/client').PublicKeyCredentialRequestOptionsJSON>;
1000
+ verifyPasskeyRegistration: import('better-auth').StrictEndpoint<"/passkey/verify-registration", {
1001
+ method: "POST";
1002
+ body: import('zod').ZodObject<{
1003
+ response: import('zod').ZodAny;
1004
+ name: import('zod').ZodOptional<import('zod').ZodString>;
1005
+ }, import('zod/v4/core').$strip>;
1006
+ use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
1007
+ session: {
1008
+ session: Record<string, any> & {
1009
+ id: string;
1010
+ createdAt: Date;
1011
+ updatedAt: Date;
1012
+ userId: string;
1013
+ expiresAt: Date;
1014
+ token: string;
1015
+ ipAddress?: string | null | undefined;
1016
+ userAgent?: string | null | undefined;
1017
+ };
1018
+ user: Record<string, any> & {
1019
+ id: string;
1020
+ createdAt: Date;
1021
+ updatedAt: Date;
1022
+ email: string;
1023
+ emailVerified: boolean;
1024
+ name: string;
1025
+ image?: string | null | undefined;
1026
+ };
1027
+ };
1028
+ }>)[] | undefined;
1029
+ metadata: {
1030
+ openapi: {
1031
+ operationId: string;
1032
+ description: string;
1033
+ responses: {
1034
+ 200: {
1035
+ description: string;
1036
+ content: {
1037
+ "application/json": {
1038
+ schema: {
1039
+ $ref: string;
1040
+ };
1041
+ };
1042
+ };
1043
+ };
1044
+ 400: {
1045
+ description: string;
1046
+ };
1047
+ };
1048
+ };
1049
+ };
1050
+ }, import('@better-auth/passkey/client').Passkey>;
1051
+ verifyPasskeyAuthentication: import('better-auth').StrictEndpoint<"/passkey/verify-authentication", {
1052
+ method: "POST";
1053
+ body: import('zod').ZodObject<{
1054
+ response: import('zod').ZodRecord<import('zod').ZodAny, import('zod').ZodAny>;
1055
+ }, import('zod/v4/core').$strip>;
1056
+ metadata: {
1057
+ openapi: {
1058
+ operationId: string;
1059
+ description: string;
1060
+ responses: {
1061
+ 200: {
1062
+ description: string;
1063
+ content: {
1064
+ "application/json": {
1065
+ schema: {
1066
+ type: "object";
1067
+ properties: {
1068
+ session: {
1069
+ $ref: string;
1070
+ };
1071
+ user: {
1072
+ $ref: string;
1073
+ };
1074
+ };
1075
+ };
1076
+ };
1077
+ };
1078
+ };
1079
+ };
1080
+ };
1081
+ $Infer: {
1082
+ body: {
1083
+ response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
1084
+ };
1085
+ };
1086
+ };
1087
+ }, {
1088
+ session: {
1089
+ id: string;
1090
+ createdAt: Date;
1091
+ updatedAt: Date;
1092
+ userId: string;
1093
+ expiresAt: Date;
1094
+ token: string;
1095
+ ipAddress?: string | null | undefined;
1096
+ userAgent?: string | null | undefined;
1097
+ };
1098
+ }>;
1099
+ listPasskeys: import('better-auth').StrictEndpoint<"/passkey/list-user-passkeys", {
1100
+ method: "GET";
1101
+ use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
1102
+ session: {
1103
+ session: Record<string, any> & {
1104
+ id: string;
1105
+ createdAt: Date;
1106
+ updatedAt: Date;
1107
+ userId: string;
1108
+ expiresAt: Date;
1109
+ token: string;
1110
+ ipAddress?: string | null | undefined;
1111
+ userAgent?: string | null | undefined;
1112
+ };
1113
+ user: Record<string, any> & {
1114
+ id: string;
1115
+ createdAt: Date;
1116
+ updatedAt: Date;
1117
+ email: string;
1118
+ emailVerified: boolean;
1119
+ name: string;
1120
+ image?: string | null | undefined;
1121
+ };
1122
+ };
1123
+ }>)[];
1124
+ metadata: {
1125
+ openapi: {
1126
+ description: string;
1127
+ responses: {
1128
+ "200": {
1129
+ description: string;
1130
+ content: {
1131
+ "application/json": {
1132
+ schema: {
1133
+ type: "array";
1134
+ items: {
1135
+ $ref: string;
1136
+ required: string[];
1137
+ };
1138
+ description: string;
1139
+ };
1140
+ };
1141
+ };
1142
+ };
1143
+ };
1144
+ };
1145
+ };
1146
+ }, import('@better-auth/passkey/client').Passkey[]>;
1147
+ deletePasskey: import('better-auth').StrictEndpoint<"/passkey/delete-passkey", {
1148
+ method: "POST";
1149
+ body: import('zod').ZodObject<{
1150
+ id: import('zod').ZodString;
1151
+ }, import('zod/v4/core').$strip>;
1152
+ use: (((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
1153
+ session: {
1154
+ session: Record<string, any> & {
1155
+ id: string;
1156
+ createdAt: Date;
1157
+ updatedAt: Date;
1158
+ userId: string;
1159
+ expiresAt: Date;
1160
+ token: string;
1161
+ ipAddress?: string | null | undefined;
1162
+ userAgent?: string | null | undefined;
1163
+ };
1164
+ user: Record<string, any> & {
1165
+ id: string;
1166
+ createdAt: Date;
1167
+ updatedAt: Date;
1168
+ email: string;
1169
+ emailVerified: boolean;
1170
+ name: string;
1171
+ image?: string | null | undefined;
1172
+ };
1173
+ };
1174
+ }>) | ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
1175
+ verifiedResource: {};
1176
+ }>))[];
1177
+ metadata: {
1178
+ openapi: {
1179
+ description: string;
1180
+ responses: {
1181
+ "200": {
1182
+ description: string;
1183
+ content: {
1184
+ "application/json": {
1185
+ schema: {
1186
+ type: "object";
1187
+ properties: {
1188
+ status: {
1189
+ type: string;
1190
+ description: string;
1191
+ };
1192
+ };
1193
+ required: string[];
1194
+ };
1195
+ };
1196
+ };
1197
+ };
1198
+ };
1199
+ };
1200
+ };
1201
+ }, {
1202
+ status: boolean;
1203
+ }>;
1204
+ updatePasskey: import('better-auth').StrictEndpoint<"/passkey/update-passkey", {
1205
+ method: "POST";
1206
+ body: import('zod').ZodObject<{
1207
+ id: import('zod').ZodString;
1208
+ name: import('zod').ZodString;
1209
+ }, import('zod/v4/core').$strip>;
1210
+ use: (((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
1211
+ session: {
1212
+ session: Record<string, any> & {
1213
+ id: string;
1214
+ createdAt: Date;
1215
+ updatedAt: Date;
1216
+ userId: string;
1217
+ expiresAt: Date;
1218
+ token: string;
1219
+ ipAddress?: string | null | undefined;
1220
+ userAgent?: string | null | undefined;
1221
+ };
1222
+ user: Record<string, any> & {
1223
+ id: string;
1224
+ createdAt: Date;
1225
+ updatedAt: Date;
1226
+ email: string;
1227
+ emailVerified: boolean;
1228
+ name: string;
1229
+ image?: string | null | undefined;
1230
+ };
1231
+ };
1232
+ }>) | ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
1233
+ verifiedResource: {};
1234
+ }>))[];
1235
+ metadata: {
1236
+ openapi: {
1237
+ description: string;
1238
+ responses: {
1239
+ "200": {
1240
+ description: string;
1241
+ content: {
1242
+ "application/json": {
1243
+ schema: {
1244
+ type: "object";
1245
+ properties: {
1246
+ passkey: {
1247
+ $ref: string;
1248
+ };
1249
+ };
1250
+ required: string[];
1251
+ };
1252
+ };
1253
+ };
1254
+ };
1255
+ };
1256
+ };
1257
+ };
1258
+ }, {
1259
+ passkey: import('@better-auth/passkey/client').Passkey;
1260
+ }>;
1261
+ };
1262
+ schema: {
1263
+ passkey: {
1264
+ fields: {
1265
+ name: {
1266
+ type: "string";
1267
+ required: false;
1268
+ };
1269
+ publicKey: {
1270
+ type: "string";
1271
+ required: true;
1272
+ };
1273
+ userId: {
1274
+ type: "string";
1275
+ references: {
1276
+ model: string;
1277
+ field: string;
1278
+ };
1279
+ required: true;
1280
+ index: true;
1281
+ };
1282
+ credentialID: {
1283
+ type: "string";
1284
+ required: true;
1285
+ index: true;
1286
+ };
1287
+ counter: {
1288
+ type: "number";
1289
+ required: true;
1290
+ };
1291
+ deviceType: {
1292
+ type: "string";
1293
+ required: true;
1294
+ };
1295
+ backedUp: {
1296
+ type: "boolean";
1297
+ required: true;
1298
+ };
1299
+ transports: {
1300
+ type: "string";
1301
+ required: false;
1302
+ };
1303
+ createdAt: {
1304
+ type: "date";
1305
+ required: false;
1306
+ };
1307
+ aaguid: {
1308
+ type: "string";
1309
+ required: false;
1310
+ };
1311
+ };
1312
+ };
1313
+ };
1314
+ $ERROR_CODES: {
1315
+ CHALLENGE_NOT_FOUND: import('better-auth').RawError<"CHALLENGE_NOT_FOUND">;
1316
+ YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import('better-auth').RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
1317
+ FAILED_TO_VERIFY_REGISTRATION: import('better-auth').RawError<"FAILED_TO_VERIFY_REGISTRATION">;
1318
+ PASSKEY_NOT_FOUND: import('better-auth').RawError<"PASSKEY_NOT_FOUND">;
1319
+ AUTHENTICATION_FAILED: import('better-auth').RawError<"AUTHENTICATION_FAILED">;
1320
+ UNABLE_TO_CREATE_SESSION: import('better-auth').RawError<"UNABLE_TO_CREATE_SESSION">;
1321
+ FAILED_TO_UPDATE_PASSKEY: import('better-auth').RawError<"FAILED_TO_UPDATE_PASSKEY">;
1322
+ PREVIOUSLY_REGISTERED: import('better-auth').RawError<"PREVIOUSLY_REGISTERED">;
1323
+ REGISTRATION_CANCELLED: import('better-auth').RawError<"REGISTRATION_CANCELLED">;
1324
+ AUTH_CANCELLED: import('better-auth').RawError<"AUTH_CANCELLED">;
1325
+ UNKNOWN_ERROR: import('better-auth').RawError<"UNKNOWN_ERROR">;
1326
+ SESSION_REQUIRED: import('better-auth').RawError<"SESSION_REQUIRED">;
1327
+ RESOLVE_USER_REQUIRED: import('better-auth').RawError<"RESOLVE_USER_REQUIRED">;
1328
+ RESOLVED_USER_INVALID: import('better-auth').RawError<"RESOLVED_USER_INVALID">;
1329
+ };
1330
+ options: import('@better-auth/passkey/client').PasskeyOptions | undefined;
1331
+ }>;
1332
+ getActions: ($fetch: import('better-auth/client').BetterFetch, $store: import('better-auth').ClientStore) => {
1333
+ signIn: {
1334
+ passkey: (opts?: {
1335
+ autoFill?: boolean;
1336
+ extensions?: import('@better-auth/passkey/client').AuthenticationExtensionsClientInputs;
1337
+ returnWebAuthnResponse?: boolean;
1338
+ fetchOptions?: import('better-auth').ClientFetchOption;
1339
+ } | undefined, options?: import('better-auth').ClientFetchOption | undefined) => Promise<{
1340
+ data: null;
1341
+ error: {
1342
+ message?: string | undefined;
1343
+ status: number;
1344
+ statusText: string;
1345
+ };
1346
+ } | {
1347
+ data: {
1348
+ session: {
1349
+ id: string;
1350
+ createdAt: Date;
1351
+ updatedAt: Date;
1352
+ userId: string;
1353
+ expiresAt: Date;
1354
+ token: string;
1355
+ ipAddress?: string | null | undefined;
1356
+ userAgent?: string | null | undefined;
1357
+ };
1358
+ user: {
1359
+ id: string;
1360
+ createdAt: Date;
1361
+ updatedAt: Date;
1362
+ email: string;
1363
+ emailVerified: boolean;
1364
+ name: string;
1365
+ image?: string | null | undefined;
1366
+ };
1367
+ };
1368
+ error: null;
1369
+ } | {
1370
+ webauthn: {
1371
+ response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
1372
+ clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
1373
+ };
1374
+ data: null;
1375
+ error: {
1376
+ message?: string | undefined;
1377
+ status: number;
1378
+ statusText: string;
1379
+ };
1380
+ } | {
1381
+ webauthn: {
1382
+ response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
1383
+ clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
1384
+ };
1385
+ data: {
1386
+ session: {
1387
+ id: string;
1388
+ createdAt: Date;
1389
+ updatedAt: Date;
1390
+ userId: string;
1391
+ expiresAt: Date;
1392
+ token: string;
1393
+ ipAddress?: string | null | undefined;
1394
+ userAgent?: string | null | undefined;
1395
+ };
1396
+ user: {
1397
+ id: string;
1398
+ createdAt: Date;
1399
+ updatedAt: Date;
1400
+ email: string;
1401
+ emailVerified: boolean;
1402
+ name: string;
1403
+ image?: string | null | undefined;
1404
+ };
1405
+ };
1406
+ error: null;
1407
+ } | {
1408
+ data: null;
1409
+ error: {
1410
+ code: string;
1411
+ message: string;
1412
+ status: number;
1413
+ statusText: string;
1414
+ };
1415
+ }>;
1416
+ };
1417
+ passkey: {
1418
+ addPasskey: (opts?: {
1419
+ fetchOptions?: import('better-auth').ClientFetchOption;
1420
+ name?: string;
1421
+ authenticatorAttachment?: "platform" | "cross-platform";
1422
+ context?: string | null;
1423
+ extensions?: import('@better-auth/passkey/client').AuthenticationExtensionsClientInputs;
1424
+ useAutoRegister?: boolean;
1425
+ returnWebAuthnResponse?: boolean;
1426
+ } | undefined, fetchOpts?: import('better-auth').ClientFetchOption | undefined) => Promise<{
1427
+ data: null;
1428
+ error: {
1429
+ message?: string | undefined;
1430
+ status: number;
1431
+ statusText: string;
1432
+ };
1433
+ } | {
1434
+ data: import('@better-auth/passkey/client').Passkey;
1435
+ error: null;
1436
+ } | {
1437
+ webauthn: {
1438
+ response: import('@better-auth/passkey/client').RegistrationResponseJSON;
1439
+ clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
1440
+ };
1441
+ data: import('@better-auth/passkey/client').Passkey;
1442
+ error: null;
1443
+ } | {
1444
+ data: null;
1445
+ error: {
1446
+ code: string;
1447
+ message: string;
1448
+ status: number;
1449
+ statusText: string;
1450
+ };
1451
+ }>;
1452
+ };
1453
+ $Infer: {
1454
+ Passkey: import('@better-auth/passkey/client').Passkey;
1455
+ };
1456
+ };
1457
+ getAtoms($fetch: import('better-auth/client').BetterFetch): {
1458
+ listPasskeys: import('better-auth/client').AuthQueryAtom<import('@better-auth/passkey/client').Passkey[]>;
1459
+ $listPasskeys: import('better-auth/client').PreinitializedWritableAtom<any> & object;
1460
+ };
1461
+ pathMethods: {
1462
+ "/passkey/register": "POST";
1463
+ "/passkey/authenticate": "POST";
1464
+ };
1465
+ atomListeners: ({
1466
+ matcher(path: string): path is "/passkey/delete-passkey" | "/passkey/update-passkey" | "/passkey/verify-registration" | "/sign-out";
1467
+ signal: "$listPasskeys";
1468
+ } | {
1469
+ matcher: (path: string) => path is "/passkey/verify-authentication";
1470
+ signal: "$sessionSignal";
1471
+ })[];
1472
+ $ERROR_CODES: {
1473
+ CHALLENGE_NOT_FOUND: import('better-auth').RawError<"CHALLENGE_NOT_FOUND">;
1474
+ YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import('better-auth').RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
1475
+ FAILED_TO_VERIFY_REGISTRATION: import('better-auth').RawError<"FAILED_TO_VERIFY_REGISTRATION">;
1476
+ PASSKEY_NOT_FOUND: import('better-auth').RawError<"PASSKEY_NOT_FOUND">;
1477
+ AUTHENTICATION_FAILED: import('better-auth').RawError<"AUTHENTICATION_FAILED">;
1478
+ UNABLE_TO_CREATE_SESSION: import('better-auth').RawError<"UNABLE_TO_CREATE_SESSION">;
1479
+ FAILED_TO_UPDATE_PASSKEY: import('better-auth').RawError<"FAILED_TO_UPDATE_PASSKEY">;
1480
+ PREVIOUSLY_REGISTERED: import('better-auth').RawError<"PREVIOUSLY_REGISTERED">;
1481
+ REGISTRATION_CANCELLED: import('better-auth').RawError<"REGISTRATION_CANCELLED">;
1482
+ AUTH_CANCELLED: import('better-auth').RawError<"AUTH_CANCELLED">;
1483
+ UNKNOWN_ERROR: import('better-auth').RawError<"UNKNOWN_ERROR">;
1484
+ SESSION_REQUIRED: import('better-auth').RawError<"SESSION_REQUIRED">;
1485
+ RESOLVE_USER_REQUIRED: import('better-auth').RawError<"RESOLVE_USER_REQUIRED">;
1486
+ RESOLVED_USER_INVALID: import('better-auth').RawError<"RESOLVED_USER_INVALID">;
1487
+ };
1488
+ } | {
1489
+ id: "username";
1490
+ version: string;
1491
+ $InferServerPlugin: ReturnType<(options?: import('better-auth/plugins/username').UsernameOptions | undefined) => {
1492
+ id: "username";
1493
+ version: string;
1494
+ init(ctx: import('better-auth').AuthContext): {
1495
+ options: {
1496
+ databaseHooks: {
1497
+ user: {
1498
+ create: {
1499
+ before(user: {
1500
+ id: string;
1501
+ createdAt: Date;
1502
+ updatedAt: Date;
1503
+ email: string;
1504
+ emailVerified: boolean;
1505
+ name: string;
1506
+ image?: string | null | undefined;
1507
+ } & Record<string, unknown>, context: import('better-auth').GenericEndpointContext | null): Promise<{
1508
+ data: {
1509
+ displayUsername?: string | undefined;
1510
+ username?: string | undefined;
1511
+ id: string;
1512
+ createdAt: Date;
1513
+ updatedAt: Date;
1514
+ email: string;
1515
+ emailVerified: boolean;
1516
+ name: string;
1517
+ image?: string | null | undefined;
1518
+ };
1519
+ }>;
1520
+ };
1521
+ update: {
1522
+ before(user: Partial<{
1523
+ id: string;
1524
+ createdAt: Date;
1525
+ updatedAt: Date;
1526
+ email: string;
1527
+ emailVerified: boolean;
1528
+ name: string;
1529
+ image?: string | null | undefined;
1530
+ }> & Record<string, unknown>, context: import('better-auth').GenericEndpointContext | null): Promise<{
1531
+ data: {
1532
+ displayUsername?: string | undefined;
1533
+ username?: string | undefined;
1534
+ id?: string | undefined;
1535
+ createdAt?: Date | undefined;
1536
+ updatedAt?: Date | undefined;
1537
+ email?: string | undefined;
1538
+ emailVerified?: boolean | undefined;
1539
+ name?: string | undefined;
1540
+ image?: string | null | undefined;
1541
+ };
1542
+ }>;
1543
+ };
1544
+ };
1545
+ };
1546
+ };
1547
+ };
1548
+ endpoints: {
1549
+ signInUsername: import('better-auth').StrictEndpoint<"/sign-in/username", {
1550
+ method: "POST";
1551
+ body: import('zod').ZodObject<{
1552
+ username: import('zod').ZodString;
1553
+ password: import('zod').ZodString;
1554
+ rememberMe: import('zod').ZodOptional<import('zod').ZodBoolean>;
1555
+ callbackURL: import('zod').ZodOptional<import('zod').ZodString>;
1556
+ }, import('zod/v4/core').$strip>;
1557
+ metadata: {
1558
+ openapi: {
1559
+ summary: string;
1560
+ description: string;
1561
+ responses: {
1562
+ 200: {
1563
+ description: string;
1564
+ content: {
1565
+ "application/json": {
1566
+ schema: {
1567
+ type: "object";
1568
+ properties: {
1569
+ token: {
1570
+ type: string;
1571
+ description: string;
1572
+ };
296
1573
  user: {
297
1574
  $ref: string;
298
1575
  };
299
1576
  };
1577
+ required: string[];
1578
+ };
1579
+ };
1580
+ };
1581
+ };
1582
+ 422: {
1583
+ description: string;
1584
+ content: {
1585
+ "application/json": {
1586
+ schema: {
1587
+ type: "object";
1588
+ properties: {
1589
+ message: {
1590
+ type: string;
1591
+ };
1592
+ };
1593
+ };
1594
+ };
1595
+ };
1596
+ };
1597
+ };
1598
+ };
1599
+ };
1600
+ }, {
1601
+ token: string;
1602
+ user: {
1603
+ id: string;
1604
+ createdAt: Date;
1605
+ updatedAt: Date;
1606
+ email: string;
1607
+ emailVerified: boolean;
1608
+ name: string;
1609
+ image?: string | null | undefined;
1610
+ } & {
1611
+ username: string;
1612
+ displayUsername: string;
1613
+ };
1614
+ }>;
1615
+ isUsernameAvailable: import('better-auth').StrictEndpoint<"/is-username-available", {
1616
+ method: "POST";
1617
+ body: import('zod').ZodObject<{
1618
+ username: import('zod').ZodString;
1619
+ }, import('zod/v4/core').$strip>;
1620
+ }, {
1621
+ available: boolean;
1622
+ }>;
1623
+ };
1624
+ schema: {
1625
+ user: {
1626
+ fields: {
1627
+ username: {
1628
+ type: "string";
1629
+ required: false;
1630
+ sortable: true;
1631
+ unique: true;
1632
+ returned: true;
1633
+ transform: {
1634
+ input(value: import('better-auth').DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
1635
+ };
1636
+ };
1637
+ displayUsername: {
1638
+ type: "string";
1639
+ required: false;
1640
+ transform: {
1641
+ input(value: import('better-auth').DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
1642
+ };
1643
+ };
1644
+ };
1645
+ };
1646
+ };
1647
+ hooks: {
1648
+ before: {
1649
+ matcher(context: import('better-auth').HookEndpointContext): boolean;
1650
+ handler: (inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<void>;
1651
+ }[];
1652
+ };
1653
+ options: import('better-auth/plugins/username').UsernameOptions | undefined;
1654
+ $ERROR_CODES: {
1655
+ EMAIL_NOT_VERIFIED: import('better-auth').RawError<"EMAIL_NOT_VERIFIED">;
1656
+ UNEXPECTED_ERROR: import('better-auth').RawError<"UNEXPECTED_ERROR">;
1657
+ INVALID_USERNAME_OR_PASSWORD: import('better-auth').RawError<"INVALID_USERNAME_OR_PASSWORD">;
1658
+ USERNAME_IS_ALREADY_TAKEN: import('better-auth').RawError<"USERNAME_IS_ALREADY_TAKEN">;
1659
+ USERNAME_TOO_SHORT: import('better-auth').RawError<"USERNAME_TOO_SHORT">;
1660
+ USERNAME_TOO_LONG: import('better-auth').RawError<"USERNAME_TOO_LONG">;
1661
+ INVALID_USERNAME: import('better-auth').RawError<"INVALID_USERNAME">;
1662
+ INVALID_DISPLAY_USERNAME: import('better-auth').RawError<"INVALID_DISPLAY_USERNAME">;
1663
+ };
1664
+ }>;
1665
+ atomListeners: {
1666
+ matcher: (path: string) => path is "/sign-in/username";
1667
+ signal: "$sessionSignal";
1668
+ }[];
1669
+ $ERROR_CODES: {
1670
+ EMAIL_NOT_VERIFIED: import('better-auth').RawError<"EMAIL_NOT_VERIFIED">;
1671
+ UNEXPECTED_ERROR: import('better-auth').RawError<"UNEXPECTED_ERROR">;
1672
+ INVALID_USERNAME_OR_PASSWORD: import('better-auth').RawError<"INVALID_USERNAME_OR_PASSWORD">;
1673
+ USERNAME_IS_ALREADY_TAKEN: import('better-auth').RawError<"USERNAME_IS_ALREADY_TAKEN">;
1674
+ USERNAME_TOO_SHORT: import('better-auth').RawError<"USERNAME_TOO_SHORT">;
1675
+ USERNAME_TOO_LONG: import('better-auth').RawError<"USERNAME_TOO_LONG">;
1676
+ INVALID_USERNAME: import('better-auth').RawError<"INVALID_USERNAME">;
1677
+ INVALID_DISPLAY_USERNAME: import('better-auth').RawError<"INVALID_DISPLAY_USERNAME">;
1678
+ };
1679
+ })[];
1680
+ }, FetchOptions>>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<(Omit<{
1681
+ token: null;
1682
+ user: {
1683
+ id: string;
1684
+ createdAt: Date;
1685
+ updatedAt: Date;
1686
+ email: string;
1687
+ emailVerified: boolean;
1688
+ name: string;
1689
+ image?: string | null | undefined | undefined;
1690
+ };
1691
+ }, "user"> & {
1692
+ user: import('better-auth').StripEmptyObjects<{
1693
+ id: string;
1694
+ createdAt: Date;
1695
+ updatedAt: Date;
1696
+ email: string;
1697
+ emailVerified: boolean;
1698
+ name: string;
1699
+ image?: string | null | undefined;
1700
+ } & {} & {
1701
+ username?: string | null | undefined;
1702
+ displayUsername?: string | null | undefined;
1703
+ }>;
1704
+ }) | (Omit<{
1705
+ token: string;
1706
+ user: {
1707
+ id: string;
1708
+ createdAt: Date;
1709
+ updatedAt: Date;
1710
+ email: string;
1711
+ emailVerified: boolean;
1712
+ name: string;
1713
+ image?: string | null | undefined | undefined;
1714
+ };
1715
+ }, "user"> & {
1716
+ user: import('better-auth').StripEmptyObjects<{
1717
+ id: string;
1718
+ createdAt: Date;
1719
+ updatedAt: Date;
1720
+ email: string;
1721
+ emailVerified: boolean;
1722
+ name: string;
1723
+ image?: string | null | undefined;
1724
+ } & {} & {
1725
+ username?: string | null | undefined;
1726
+ displayUsername?: string | null | undefined;
1727
+ }>;
1728
+ }), {
1729
+ code?: string | undefined;
1730
+ message?: string | undefined;
1731
+ }, FetchOptions["throw"] extends true ? true : false>>;
1732
+ };
1733
+ } & {
1734
+ signIn: {
1735
+ email: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
1736
+ email: string;
1737
+ password: string;
1738
+ callbackURL?: string | undefined;
1739
+ rememberMe?: boolean | undefined;
1740
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
1741
+ email: string;
1742
+ password: string;
1743
+ callbackURL?: string | undefined;
1744
+ rememberMe?: boolean | undefined;
1745
+ } & {
1746
+ fetchOptions?: FetchOptions | undefined;
1747
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<Omit<{
1748
+ redirect: boolean;
1749
+ token: string;
1750
+ url?: string | undefined;
1751
+ user: {
1752
+ id: string;
1753
+ createdAt: Date;
1754
+ updatedAt: Date;
1755
+ email: string;
1756
+ emailVerified: boolean;
1757
+ name: string;
1758
+ image?: string | null | undefined | undefined;
1759
+ };
1760
+ }, "user"> & {
1761
+ user: import('better-auth').StripEmptyObjects<{
1762
+ id: string;
1763
+ createdAt: Date;
1764
+ updatedAt: Date;
1765
+ email: string;
1766
+ emailVerified: boolean;
1767
+ name: string;
1768
+ image?: string | null | undefined;
1769
+ } & {} & {
1770
+ username?: string | null | undefined;
1771
+ displayUsername?: string | null | undefined;
1772
+ }>;
1773
+ }, {
1774
+ code?: string | undefined;
1775
+ message?: string | undefined;
1776
+ }, FetchOptions["throw"] extends true ? true : false>>;
1777
+ };
1778
+ } & {
1779
+ resetPassword: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
1780
+ newPassword: string;
1781
+ token?: string | undefined;
1782
+ }> & Record<string, any>, Partial<{
1783
+ token?: string | undefined;
1784
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
1785
+ newPassword: string;
1786
+ token?: string | undefined;
1787
+ } & {
1788
+ fetchOptions?: FetchOptions | undefined;
1789
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
1790
+ status: boolean;
1791
+ }, {
1792
+ code?: string | undefined;
1793
+ message?: string | undefined;
1794
+ }, FetchOptions["throw"] extends true ? true : false>>;
1795
+ } & {
1796
+ verifyEmail: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
1797
+ token: string;
1798
+ callbackURL?: string | undefined;
1799
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
1800
+ query: {
1801
+ token: string;
1802
+ callbackURL?: string | undefined;
1803
+ };
1804
+ fetchOptions?: FetchOptions | undefined;
1805
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<NonNullable<void | {
1806
+ status: boolean;
1807
+ }>, {
1808
+ code?: string | undefined;
1809
+ message?: string | undefined;
1810
+ }, FetchOptions["throw"] extends true ? true : false>>;
1811
+ } & {
1812
+ sendVerificationEmail: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
1813
+ email: string;
1814
+ callbackURL?: string | undefined;
1815
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
1816
+ email: string;
1817
+ callbackURL?: string | undefined;
1818
+ } & {
1819
+ fetchOptions?: FetchOptions | undefined;
1820
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
1821
+ status: boolean;
1822
+ }, {
1823
+ code?: string | undefined;
1824
+ message?: string | undefined;
1825
+ }, FetchOptions["throw"] extends true ? true : false>>;
1826
+ } & {
1827
+ changeEmail: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
1828
+ newEmail: string;
1829
+ callbackURL?: string | undefined;
1830
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
1831
+ newEmail: string;
1832
+ callbackURL?: string | undefined;
1833
+ } & {
1834
+ fetchOptions?: FetchOptions | undefined;
1835
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
1836
+ status: boolean;
1837
+ }, {
1838
+ code?: string | undefined;
1839
+ message?: string | undefined;
1840
+ }, FetchOptions["throw"] extends true ? true : false>>;
1841
+ } & {
1842
+ changePassword: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
1843
+ newPassword: string;
1844
+ currentPassword: string;
1845
+ revokeOtherSessions?: boolean | undefined;
1846
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
1847
+ newPassword: string;
1848
+ currentPassword: string;
1849
+ revokeOtherSessions?: boolean | undefined;
1850
+ } & {
1851
+ fetchOptions?: FetchOptions | undefined;
1852
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<Omit<{
1853
+ token: string | null;
1854
+ user: {
1855
+ id: string;
1856
+ createdAt: Date;
1857
+ updatedAt: Date;
1858
+ email: string;
1859
+ emailVerified: boolean;
1860
+ name: string;
1861
+ image?: string | null | undefined;
1862
+ } & Record<string, any> & {
1863
+ id: string;
1864
+ createdAt: Date;
1865
+ updatedAt: Date;
1866
+ email: string;
1867
+ emailVerified: boolean;
1868
+ name: string;
1869
+ image?: string | null | undefined;
1870
+ };
1871
+ }, "user"> & {
1872
+ user: import('better-auth').StripEmptyObjects<{
1873
+ id: string;
1874
+ createdAt: Date;
1875
+ updatedAt: Date;
1876
+ email: string;
1877
+ emailVerified: boolean;
1878
+ name: string;
1879
+ image?: string | null | undefined;
1880
+ } & {} & {
1881
+ username?: string | null | undefined;
1882
+ displayUsername?: string | null | undefined;
1883
+ }>;
1884
+ }, {
1885
+ code?: string | undefined;
1886
+ message?: string | undefined;
1887
+ }, FetchOptions["throw"] extends true ? true : false>>;
1888
+ } & {
1889
+ updateSession: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<Partial<{}>> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<Partial<{}> & {
1890
+ fetchOptions?: FetchOptions | undefined;
1891
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
1892
+ session: {
1893
+ id: string;
1894
+ createdAt: Date;
1895
+ updatedAt: Date;
1896
+ userId: string;
1897
+ expiresAt: Date;
1898
+ token: string;
1899
+ ipAddress?: string | null | undefined;
1900
+ userAgent?: string | null | undefined;
1901
+ };
1902
+ }, {
1903
+ code?: string | undefined;
1904
+ message?: string | undefined;
1905
+ }, FetchOptions["throw"] extends true ? true : false>>;
1906
+ } & {
1907
+ updateUser: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<Partial<{}> & {
1908
+ name?: string | undefined;
1909
+ image?: string | undefined | null;
1910
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<import('better-auth/client').InferUserUpdateCtx<{
1911
+ plugins: ({
1912
+ id: "magic-link";
1913
+ version: string;
1914
+ $InferServerPlugin: ReturnType<(options: import('better-auth/plugins/magic-link').MagicLinkOptions) => {
1915
+ id: "magic-link";
1916
+ version: string;
1917
+ endpoints: {
1918
+ signInMagicLink: import('better-auth').StrictEndpoint<"/sign-in/magic-link", {
1919
+ method: "POST";
1920
+ requireHeaders: true;
1921
+ body: import('zod').ZodObject<{
1922
+ email: import('zod').ZodEmail;
1923
+ name: import('zod').ZodOptional<import('zod').ZodString>;
1924
+ callbackURL: import('zod').ZodOptional<import('zod').ZodString>;
1925
+ newUserCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
1926
+ errorCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
1927
+ metadata: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodAny>>;
1928
+ }, import('zod/v4/core').$strip>;
1929
+ metadata: {
1930
+ openapi: {
1931
+ operationId: string;
1932
+ description: string;
1933
+ responses: {
1934
+ 200: {
1935
+ description: string;
1936
+ content: {
1937
+ "application/json": {
1938
+ schema: {
1939
+ type: "object";
1940
+ properties: {
1941
+ status: {
1942
+ type: string;
1943
+ };
300
1944
  };
301
1945
  };
302
1946
  };
@@ -304,87 +1948,126 @@ declare const authClient: {
304
1948
  };
305
1949
  };
306
1950
  };
307
- }, {
308
- token: string;
309
- user: {
310
- id: string;
311
- createdAt: Date;
312
- updatedAt: Date;
313
- email: string;
314
- emailVerified: boolean;
315
- name: string;
316
- image?: string | null | undefined;
317
- };
318
- session: {
319
- id: string;
320
- createdAt: Date;
321
- updatedAt: Date;
322
- userId: string;
323
- expiresAt: Date;
324
- token: string;
325
- ipAddress?: string | null | undefined;
326
- userAgent?: string | null | undefined;
1951
+ };
1952
+ }, {
1953
+ status: boolean;
1954
+ }>;
1955
+ magicLinkVerify: import('better-auth').StrictEndpoint<"/magic-link/verify", {
1956
+ method: "GET";
1957
+ query: import('zod').ZodObject<{
1958
+ token: import('zod').ZodString;
1959
+ callbackURL: import('zod').ZodOptional<import('zod').ZodString>;
1960
+ errorCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
1961
+ newUserCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
1962
+ }, import('zod/v4/core').$strip>;
1963
+ use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<void>)[];
1964
+ requireHeaders: true;
1965
+ metadata: {
1966
+ openapi: {
1967
+ operationId: string;
1968
+ description: string;
1969
+ responses: {
1970
+ 200: {
1971
+ description: string;
1972
+ content: {
1973
+ "application/json": {
1974
+ schema: {
1975
+ type: "object";
1976
+ properties: {
1977
+ session: {
1978
+ $ref: string;
1979
+ };
1980
+ user: {
1981
+ $ref: string;
1982
+ };
1983
+ };
1984
+ };
1985
+ };
1986
+ };
1987
+ };
1988
+ };
327
1989
  };
328
- }>;
329
- };
330
- rateLimit: {
331
- pathMatcher(path: string): boolean;
332
- window: number;
333
- max: number;
334
- }[];
335
- options: import("better-auth/plugins/magic-link").MagicLinkOptions;
336
- }>;
337
- } | {
1990
+ };
1991
+ }, {
1992
+ token: string;
1993
+ user: {
1994
+ id: string;
1995
+ createdAt: Date;
1996
+ updatedAt: Date;
1997
+ email: string;
1998
+ emailVerified: boolean;
1999
+ name: string;
2000
+ image?: string | null | undefined;
2001
+ };
2002
+ session: {
2003
+ id: string;
2004
+ createdAt: Date;
2005
+ updatedAt: Date;
2006
+ userId: string;
2007
+ expiresAt: Date;
2008
+ token: string;
2009
+ ipAddress?: string | null | undefined;
2010
+ userAgent?: string | null | undefined;
2011
+ };
2012
+ }>;
2013
+ };
2014
+ rateLimit: {
2015
+ pathMatcher(path: string): boolean;
2016
+ window: number;
2017
+ max: number;
2018
+ }[];
2019
+ options: import('better-auth/plugins/magic-link').MagicLinkOptions;
2020
+ }>;
2021
+ } | {
2022
+ id: "multi-session";
2023
+ version: string;
2024
+ $InferServerPlugin: ReturnType<(options?: import('better-auth/plugins/multi-session').MultiSessionConfig | undefined) => {
338
2025
  id: "multi-session";
339
2026
  version: string;
340
- $InferServerPlugin: ReturnType<(options?: import("better-auth/plugins/multi-session").MultiSessionConfig | undefined) => {
341
- id: "multi-session";
342
- version: string;
343
- endpoints: {
344
- listDeviceSessions: import("better-auth").StrictEndpoint<"/multi-session/list-device-sessions", {
345
- method: "GET";
346
- requireHeaders: true;
347
- }, {
348
- session: {
349
- id: string;
350
- createdAt: Date;
351
- updatedAt: Date;
352
- userId: string;
353
- expiresAt: Date;
354
- token: string;
355
- ipAddress?: string | null | undefined;
356
- userAgent?: string | null | undefined;
357
- };
358
- user: {
359
- id: string;
360
- createdAt: Date;
361
- updatedAt: Date;
362
- email: string;
363
- emailVerified: boolean;
364
- name: string;
365
- image?: string | null | undefined;
366
- };
367
- }[]>;
368
- setActiveSession: import("better-auth").StrictEndpoint<"/multi-session/set-active", {
369
- method: "POST";
370
- body: import("zod").ZodObject<{
371
- sessionToken: import("zod").ZodString;
372
- }, import("zod/v4/core").$strip>;
373
- requireHeaders: true;
374
- metadata: {
375
- openapi: {
376
- description: string;
377
- responses: {
378
- 200: {
379
- description: string;
380
- content: {
381
- "application/json": {
382
- schema: {
383
- type: "object";
384
- properties: {
385
- session: {
386
- $ref: string;
387
- };
2027
+ endpoints: {
2028
+ listDeviceSessions: import('better-auth').StrictEndpoint<"/multi-session/list-device-sessions", {
2029
+ method: "GET";
2030
+ requireHeaders: true;
2031
+ }, {
2032
+ session: {
2033
+ id: string;
2034
+ createdAt: Date;
2035
+ updatedAt: Date;
2036
+ userId: string;
2037
+ expiresAt: Date;
2038
+ token: string;
2039
+ ipAddress?: string | null | undefined;
2040
+ userAgent?: string | null | undefined;
2041
+ };
2042
+ user: {
2043
+ id: string;
2044
+ createdAt: Date;
2045
+ updatedAt: Date;
2046
+ email: string;
2047
+ emailVerified: boolean;
2048
+ name: string;
2049
+ image?: string | null | undefined;
2050
+ };
2051
+ }[]>;
2052
+ setActiveSession: import('better-auth').StrictEndpoint<"/multi-session/set-active", {
2053
+ method: "POST";
2054
+ body: import('zod').ZodObject<{
2055
+ sessionToken: import('zod').ZodString;
2056
+ }, import('zod/v4/core').$strip>;
2057
+ requireHeaders: true;
2058
+ metadata: {
2059
+ openapi: {
2060
+ description: string;
2061
+ responses: {
2062
+ 200: {
2063
+ description: string;
2064
+ content: {
2065
+ "application/json": {
2066
+ schema: {
2067
+ type: "object";
2068
+ properties: {
2069
+ session: {
2070
+ $ref: string;
388
2071
  };
389
2072
  };
390
2073
  };
@@ -393,70 +2076,70 @@ declare const authClient: {
393
2076
  };
394
2077
  };
395
2078
  };
396
- }, {
2079
+ };
2080
+ }, {
2081
+ session: {
2082
+ id: string;
2083
+ createdAt: Date;
2084
+ updatedAt: Date;
2085
+ userId: string;
2086
+ expiresAt: Date;
2087
+ token: string;
2088
+ ipAddress?: string | null | undefined;
2089
+ userAgent?: string | null | undefined;
2090
+ } & Record<string, any>;
2091
+ user: {
2092
+ id: string;
2093
+ createdAt: Date;
2094
+ updatedAt: Date;
2095
+ email: string;
2096
+ emailVerified: boolean;
2097
+ name: string;
2098
+ image?: string | null | undefined;
2099
+ } & Record<string, any>;
2100
+ }>;
2101
+ revokeDeviceSession: import('better-auth').StrictEndpoint<"/multi-session/revoke", {
2102
+ method: "POST";
2103
+ body: import('zod').ZodObject<{
2104
+ sessionToken: import('zod').ZodString;
2105
+ }, import('zod/v4/core').$strip>;
2106
+ requireHeaders: true;
2107
+ use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
397
2108
  session: {
398
- id: string;
399
- createdAt: Date;
400
- updatedAt: Date;
401
- userId: string;
402
- expiresAt: Date;
403
- token: string;
404
- ipAddress?: string | null | undefined;
405
- userAgent?: string | null | undefined;
406
- } & Record<string, any>;
407
- user: {
408
- id: string;
409
- createdAt: Date;
410
- updatedAt: Date;
411
- email: string;
412
- emailVerified: boolean;
413
- name: string;
414
- image?: string | null | undefined;
415
- } & Record<string, any>;
416
- }>;
417
- revokeDeviceSession: import("better-auth").StrictEndpoint<"/multi-session/revoke", {
418
- method: "POST";
419
- body: import("zod").ZodObject<{
420
- sessionToken: import("zod").ZodString;
421
- }, import("zod/v4/core").$strip>;
422
- requireHeaders: true;
423
- use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
424
- session: {
425
- session: Record<string, any> & {
426
- id: string;
427
- createdAt: Date;
428
- updatedAt: Date;
429
- userId: string;
430
- expiresAt: Date;
431
- token: string;
432
- ipAddress?: string | null | undefined;
433
- userAgent?: string | null | undefined;
434
- };
435
- user: Record<string, any> & {
436
- id: string;
437
- createdAt: Date;
438
- updatedAt: Date;
439
- email: string;
440
- emailVerified: boolean;
441
- name: string;
442
- image?: string | null | undefined;
443
- };
2109
+ session: Record<string, any> & {
2110
+ id: string;
2111
+ createdAt: Date;
2112
+ updatedAt: Date;
2113
+ userId: string;
2114
+ expiresAt: Date;
2115
+ token: string;
2116
+ ipAddress?: string | null | undefined;
2117
+ userAgent?: string | null | undefined;
444
2118
  };
445
- }>)[];
446
- metadata: {
447
- openapi: {
448
- description: string;
449
- responses: {
450
- 200: {
451
- description: string;
452
- content: {
453
- "application/json": {
454
- schema: {
455
- type: "object";
456
- properties: {
457
- status: {
458
- type: string;
459
- };
2119
+ user: Record<string, any> & {
2120
+ id: string;
2121
+ createdAt: Date;
2122
+ updatedAt: Date;
2123
+ email: string;
2124
+ emailVerified: boolean;
2125
+ name: string;
2126
+ image?: string | null | undefined;
2127
+ };
2128
+ };
2129
+ }>)[];
2130
+ metadata: {
2131
+ openapi: {
2132
+ description: string;
2133
+ responses: {
2134
+ 200: {
2135
+ description: string;
2136
+ content: {
2137
+ "application/json": {
2138
+ schema: {
2139
+ type: "object";
2140
+ properties: {
2141
+ status: {
2142
+ type: string;
460
2143
  };
461
2144
  };
462
2145
  };
@@ -465,133 +2148,182 @@ declare const authClient: {
465
2148
  };
466
2149
  };
467
2150
  };
468
- }, {
469
- status: boolean;
470
- }>;
471
- };
472
- hooks: {
473
- after: {
474
- matcher: (context: import("better-auth").HookEndpointContext) => boolean;
475
- handler: (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>;
476
- }[];
477
- };
478
- options: import("better-auth/plugins/multi-session").MultiSessionConfig | undefined;
479
- $ERROR_CODES: {
480
- INVALID_SESSION_TOKEN: import("better-auth").RawError<"INVALID_SESSION_TOKEN">;
481
- };
482
- }>;
483
- atomListeners: {
484
- matcher(path: string): path is "/multi-session/set-active";
485
- signal: "$sessionSignal";
486
- }[];
2151
+ };
2152
+ }, {
2153
+ status: boolean;
2154
+ }>;
2155
+ };
2156
+ hooks: {
2157
+ after: {
2158
+ matcher: (context: import('better-auth').HookEndpointContext) => boolean;
2159
+ handler: (inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<void>;
2160
+ }[];
2161
+ };
2162
+ options: import('better-auth/plugins/multi-session').MultiSessionConfig | undefined;
487
2163
  $ERROR_CODES: {
488
- INVALID_SESSION_TOKEN: import("better-auth").RawError<"INVALID_SESSION_TOKEN">;
2164
+ INVALID_SESSION_TOKEN: import('better-auth').RawError<"INVALID_SESSION_TOKEN">;
489
2165
  };
490
- } | {
491
- id: "username";
2166
+ }>;
2167
+ atomListeners: {
2168
+ matcher(path: string): path is "/multi-session/set-active";
2169
+ signal: "$sessionSignal";
2170
+ }[];
2171
+ $ERROR_CODES: {
2172
+ INVALID_SESSION_TOKEN: import('better-auth').RawError<"INVALID_SESSION_TOKEN">;
2173
+ };
2174
+ } | {
2175
+ id: "passkey";
2176
+ version: string;
2177
+ $InferServerPlugin: ReturnType<(options?: import('@better-auth/passkey/client').PasskeyOptions | undefined) => {
2178
+ id: "passkey";
492
2179
  version: string;
493
- $InferServerPlugin: ReturnType<(options?: import("better-auth/plugins/username").UsernameOptions | undefined) => {
494
- id: "username";
495
- version: string;
496
- init(ctx: import("better-auth").AuthContext): {
497
- options: {
498
- databaseHooks: {
499
- user: {
500
- create: {
501
- before(user: {
502
- id: string;
503
- createdAt: Date;
504
- updatedAt: Date;
505
- email: string;
506
- emailVerified: boolean;
507
- name: string;
508
- image?: string | null | undefined;
509
- } & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null): Promise<{
510
- data: {
511
- displayUsername?: string | undefined;
512
- username?: string | undefined;
513
- id: string;
514
- createdAt: Date;
515
- updatedAt: Date;
516
- email: string;
517
- emailVerified: boolean;
518
- name: string;
519
- image?: string | null | undefined;
520
- };
521
- }>;
522
- };
523
- update: {
524
- before(user: Partial<{
525
- id: string;
526
- createdAt: Date;
527
- updatedAt: Date;
528
- email: string;
529
- emailVerified: boolean;
530
- name: string;
531
- image?: string | null | undefined;
532
- }> & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null): Promise<{
533
- data: {
534
- displayUsername?: string | undefined;
535
- username?: string | undefined;
536
- id?: string | undefined;
537
- createdAt?: Date | undefined;
538
- updatedAt?: Date | undefined;
539
- email?: string | undefined;
540
- emailVerified?: boolean | undefined;
541
- name?: string | undefined;
542
- image?: string | null | undefined;
543
- };
544
- }>;
545
- };
2180
+ endpoints: {
2181
+ generatePasskeyRegistrationOptions: import('better-auth').StrictEndpoint<"/passkey/generate-register-options", {
2182
+ method: "GET";
2183
+ use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
2184
+ session: {
2185
+ session: Record<string, any> & {
2186
+ id: string;
2187
+ createdAt: Date;
2188
+ updatedAt: Date;
2189
+ userId: string;
2190
+ expiresAt: Date;
2191
+ token: string;
2192
+ ipAddress?: string | null | undefined;
2193
+ userAgent?: string | null | undefined;
2194
+ };
2195
+ user: Record<string, any> & {
2196
+ id: string;
2197
+ createdAt: Date;
2198
+ updatedAt: Date;
2199
+ email: string;
2200
+ emailVerified: boolean;
2201
+ name: string;
2202
+ image?: string | null | undefined;
546
2203
  };
547
2204
  };
548
- };
549
- };
550
- endpoints: {
551
- signInUsername: import("better-auth").StrictEndpoint<"/sign-in/username", {
552
- method: "POST";
553
- body: import("zod").ZodObject<{
554
- username: import("zod").ZodString;
555
- password: import("zod").ZodString;
556
- rememberMe: import("zod").ZodOptional<import("zod").ZodBoolean>;
557
- callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
558
- }, import("zod/v4/core").$strip>;
559
- metadata: {
560
- openapi: {
561
- summary: string;
562
- description: string;
563
- responses: {
564
- 200: {
565
- description: string;
566
- content: {
567
- "application/json": {
568
- schema: {
569
- type: "object";
570
- properties: {
571
- token: {
572
- type: string;
573
- description: string;
574
- };
575
- user: {
576
- $ref: string;
577
- };
578
- };
579
- required: string[];
580
- };
2205
+ }>)[] | undefined;
2206
+ query: import('zod').ZodOptional<import('zod').ZodObject<{
2207
+ authenticatorAttachment: import('zod').ZodOptional<import('zod').ZodEnum<{
2208
+ platform: "platform";
2209
+ "cross-platform": "cross-platform";
2210
+ }>>;
2211
+ name: import('zod').ZodOptional<import('zod').ZodString>;
2212
+ context: import('zod').ZodOptional<import('zod').ZodString>;
2213
+ }, import('zod/v4/core').$strip>>;
2214
+ metadata: {
2215
+ openapi: {
2216
+ operationId: string;
2217
+ description: string;
2218
+ responses: {
2219
+ 200: {
2220
+ description: string;
2221
+ parameters: {
2222
+ query: {
2223
+ authenticatorAttachment: {
2224
+ description: string;
2225
+ required: boolean;
2226
+ };
2227
+ name: {
2228
+ description: string;
2229
+ required: boolean;
2230
+ };
2231
+ context: {
2232
+ description: string;
2233
+ required: boolean;
581
2234
  };
582
2235
  };
583
2236
  };
584
- 422: {
585
- description: string;
586
- content: {
587
- "application/json": {
588
- schema: {
589
- type: "object";
590
- properties: {
591
- message: {
2237
+ content: {
2238
+ "application/json": {
2239
+ schema: {
2240
+ type: "object";
2241
+ properties: {
2242
+ challenge: {
2243
+ type: string;
2244
+ };
2245
+ rp: {
2246
+ type: string;
2247
+ properties: {
2248
+ name: {
2249
+ type: string;
2250
+ };
2251
+ id: {
2252
+ type: string;
2253
+ };
2254
+ };
2255
+ };
2256
+ user: {
2257
+ type: string;
2258
+ properties: {
2259
+ id: {
2260
+ type: string;
2261
+ };
2262
+ name: {
2263
+ type: string;
2264
+ };
2265
+ displayName: {
2266
+ type: string;
2267
+ };
2268
+ };
2269
+ };
2270
+ pubKeyCredParams: {
2271
+ type: string;
2272
+ items: {
592
2273
  type: string;
2274
+ properties: {
2275
+ type: {
2276
+ type: string;
2277
+ };
2278
+ alg: {
2279
+ type: string;
2280
+ };
2281
+ };
2282
+ };
2283
+ };
2284
+ timeout: {
2285
+ type: string;
2286
+ };
2287
+ excludeCredentials: {
2288
+ type: string;
2289
+ items: {
2290
+ type: string;
2291
+ properties: {
2292
+ id: {
2293
+ type: string;
2294
+ };
2295
+ type: {
2296
+ type: string;
2297
+ };
2298
+ transports: {
2299
+ type: string;
2300
+ items: {
2301
+ type: string;
2302
+ };
2303
+ };
2304
+ };
2305
+ };
2306
+ };
2307
+ authenticatorSelection: {
2308
+ type: string;
2309
+ properties: {
2310
+ authenticatorAttachment: {
2311
+ type: string;
2312
+ };
2313
+ requireResidentKey: {
2314
+ type: string;
2315
+ };
2316
+ userVerification: {
2317
+ type: string;
2318
+ };
593
2319
  };
594
2320
  };
2321
+ attestation: {
2322
+ type: string;
2323
+ };
2324
+ extensions: {
2325
+ type: string;
2326
+ };
595
2327
  };
596
2328
  };
597
2329
  };
@@ -599,256 +2331,131 @@ declare const authClient: {
599
2331
  };
600
2332
  };
601
2333
  };
602
- }, {
603
- token: string;
604
- user: {
605
- id: string;
606
- createdAt: Date;
607
- updatedAt: Date;
608
- email: string;
609
- emailVerified: boolean;
610
- name: string;
611
- image?: string | null | undefined;
612
- } & {
613
- username: string;
614
- displayUsername: string;
615
- };
616
- }>;
617
- isUsernameAvailable: import("better-auth").StrictEndpoint<"/is-username-available", {
618
- method: "POST";
619
- body: import("zod").ZodObject<{
620
- username: import("zod").ZodString;
621
- }, import("zod/v4/core").$strip>;
622
- }, {
623
- available: boolean;
624
- }>;
625
- };
626
- schema: {
627
- user: {
628
- fields: {
629
- username: {
630
- type: "string";
631
- required: false;
632
- sortable: true;
633
- unique: true;
634
- returned: true;
635
- transform: {
636
- input(value: import("better-auth").DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
637
- };
638
- };
639
- displayUsername: {
640
- type: "string";
641
- required: false;
642
- transform: {
643
- input(value: import("better-auth").DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
644
- };
645
- };
646
- };
647
2334
  };
648
- };
649
- hooks: {
650
- before: {
651
- matcher(context: import("better-auth").HookEndpointContext): boolean;
652
- handler: (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>;
653
- }[];
654
- };
655
- options: import("better-auth/plugins/username").UsernameOptions | undefined;
656
- $ERROR_CODES: {
657
- EMAIL_NOT_VERIFIED: import("better-auth").RawError<"EMAIL_NOT_VERIFIED">;
658
- UNEXPECTED_ERROR: import("better-auth").RawError<"UNEXPECTED_ERROR">;
659
- INVALID_USERNAME_OR_PASSWORD: import("better-auth").RawError<"INVALID_USERNAME_OR_PASSWORD">;
660
- USERNAME_IS_ALREADY_TAKEN: import("better-auth").RawError<"USERNAME_IS_ALREADY_TAKEN">;
661
- USERNAME_TOO_SHORT: import("better-auth").RawError<"USERNAME_TOO_SHORT">;
662
- USERNAME_TOO_LONG: import("better-auth").RawError<"USERNAME_TOO_LONG">;
663
- INVALID_USERNAME: import("better-auth").RawError<"INVALID_USERNAME">;
664
- INVALID_DISPLAY_USERNAME: import("better-auth").RawError<"INVALID_DISPLAY_USERNAME">;
665
- };
666
- }>;
667
- atomListeners: {
668
- matcher: (path: string) => path is "/sign-in/username";
669
- signal: "$sessionSignal";
670
- }[];
671
- $ERROR_CODES: {
672
- EMAIL_NOT_VERIFIED: import("better-auth").RawError<"EMAIL_NOT_VERIFIED">;
673
- UNEXPECTED_ERROR: import("better-auth").RawError<"UNEXPECTED_ERROR">;
674
- INVALID_USERNAME_OR_PASSWORD: import("better-auth").RawError<"INVALID_USERNAME_OR_PASSWORD">;
675
- USERNAME_IS_ALREADY_TAKEN: import("better-auth").RawError<"USERNAME_IS_ALREADY_TAKEN">;
676
- USERNAME_TOO_SHORT: import("better-auth").RawError<"USERNAME_TOO_SHORT">;
677
- USERNAME_TOO_LONG: import("better-auth").RawError<"USERNAME_TOO_LONG">;
678
- INVALID_USERNAME: import("better-auth").RawError<"INVALID_USERNAME">;
679
- INVALID_DISPLAY_USERNAME: import("better-auth").RawError<"INVALID_DISPLAY_USERNAME">;
680
- };
681
- })[];
682
- }, FetchOptions>>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<(Omit<{
683
- token: null;
684
- user: {
685
- id: string;
686
- createdAt: Date;
687
- updatedAt: Date;
688
- email: string;
689
- emailVerified: boolean;
690
- name: string;
691
- image?: string | null | undefined | undefined;
692
- };
693
- }, "user"> & {
694
- user: import("better-auth").StripEmptyObjects<{
695
- id: string;
696
- createdAt: Date;
697
- updatedAt: Date;
698
- email: string;
699
- emailVerified: boolean;
700
- name: string;
701
- image?: string | null | undefined;
702
- } & {} & {
703
- username?: string | null | undefined;
704
- displayUsername?: string | null | undefined;
705
- }>;
706
- }) | (Omit<{
707
- token: string;
708
- user: {
709
- id: string;
710
- createdAt: Date;
711
- updatedAt: Date;
712
- email: string;
713
- emailVerified: boolean;
714
- name: string;
715
- image?: string | null | undefined | undefined;
716
- };
717
- }, "user"> & {
718
- user: import("better-auth").StripEmptyObjects<{
719
- id: string;
720
- createdAt: Date;
721
- updatedAt: Date;
722
- email: string;
723
- emailVerified: boolean;
724
- name: string;
725
- image?: string | null | undefined;
726
- } & {} & {
727
- username?: string | null | undefined;
728
- displayUsername?: string | null | undefined;
729
- }>;
730
- }), {
731
- code?: string | undefined;
732
- message?: string | undefined;
733
- }, FetchOptions["throw"] extends true ? true : false>>;
734
- };
735
- } & {
736
- signIn: {
737
- email: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
738
- email: string;
739
- password: string;
740
- callbackURL?: string | undefined;
741
- rememberMe?: boolean | undefined;
742
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
743
- email: string;
744
- password: string;
745
- callbackURL?: string | undefined;
746
- rememberMe?: boolean | undefined;
747
- } & {
748
- fetchOptions?: FetchOptions | undefined;
749
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<Omit<{
750
- redirect: boolean;
751
- token: string;
752
- url?: string | undefined;
753
- user: {
754
- id: string;
755
- createdAt: Date;
756
- updatedAt: Date;
757
- email: string;
758
- emailVerified: boolean;
759
- name: string;
760
- image?: string | null | undefined | undefined;
761
- };
762
- }, "user"> & {
763
- user: import("better-auth").StripEmptyObjects<{
764
- id: string;
765
- createdAt: Date;
766
- updatedAt: Date;
767
- email: string;
768
- emailVerified: boolean;
769
- name: string;
770
- image?: string | null | undefined;
771
- } & {} & {
772
- username?: string | null | undefined;
773
- displayUsername?: string | null | undefined;
774
- }>;
775
- }, {
776
- code?: string | undefined;
777
- message?: string | undefined;
778
- }, FetchOptions["throw"] extends true ? true : false>>;
779
- };
780
- } & {
781
- verifyEmail: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
782
- token: string;
783
- callbackURL?: string | undefined;
784
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
785
- query: {
786
- token: string;
787
- callbackURL?: string | undefined;
788
- };
789
- fetchOptions?: FetchOptions | undefined;
790
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<NonNullable<void | {
791
- status: boolean;
792
- }>, {
793
- code?: string | undefined;
794
- message?: string | undefined;
795
- }, FetchOptions["throw"] extends true ? true : false>>;
796
- } & {
797
- sendVerificationEmail: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
798
- email: string;
799
- callbackURL?: string | undefined;
800
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
801
- email: string;
802
- callbackURL?: string | undefined;
803
- } & {
804
- fetchOptions?: FetchOptions | undefined;
805
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
806
- status: boolean;
807
- }, {
808
- code?: string | undefined;
809
- message?: string | undefined;
810
- }, FetchOptions["throw"] extends true ? true : false>>;
811
- } & {
812
- updateSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<Partial<{}>> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<Partial<{}> & {
813
- fetchOptions?: FetchOptions | undefined;
814
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
815
- session: {
816
- id: string;
817
- createdAt: Date;
818
- updatedAt: Date;
819
- userId: string;
820
- expiresAt: Date;
821
- token: string;
822
- ipAddress?: string | null | undefined;
823
- userAgent?: string | null | undefined;
824
- };
825
- }, {
826
- code?: string | undefined;
827
- message?: string | undefined;
828
- }, FetchOptions["throw"] extends true ? true : false>>;
829
- } & {
830
- updateUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<Partial<{}> & {
831
- name?: string | undefined;
832
- image?: string | undefined | null;
833
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<import("better-auth/client").InferUserUpdateCtx<{
834
- plugins: ({
835
- id: "magic-link";
836
- version: string;
837
- $InferServerPlugin: ReturnType<(options: import("better-auth/plugins/magic-link").MagicLinkOptions) => {
838
- id: "magic-link";
839
- version: string;
840
- endpoints: {
841
- signInMagicLink: import("better-auth").StrictEndpoint<"/sign-in/magic-link", {
2335
+ }, import('@better-auth/passkey/client').PublicKeyCredentialCreationOptionsJSON>;
2336
+ generatePasskeyAuthenticationOptions: import('better-auth').StrictEndpoint<"/passkey/generate-authenticate-options", {
2337
+ method: "GET";
2338
+ metadata: {
2339
+ openapi: {
2340
+ operationId: string;
2341
+ description: string;
2342
+ responses: {
2343
+ 200: {
2344
+ description: string;
2345
+ content: {
2346
+ "application/json": {
2347
+ schema: {
2348
+ type: "object";
2349
+ properties: {
2350
+ challenge: {
2351
+ type: string;
2352
+ };
2353
+ rp: {
2354
+ type: string;
2355
+ properties: {
2356
+ name: {
2357
+ type: string;
2358
+ };
2359
+ id: {
2360
+ type: string;
2361
+ };
2362
+ };
2363
+ };
2364
+ user: {
2365
+ type: string;
2366
+ properties: {
2367
+ id: {
2368
+ type: string;
2369
+ };
2370
+ name: {
2371
+ type: string;
2372
+ };
2373
+ displayName: {
2374
+ type: string;
2375
+ };
2376
+ };
2377
+ };
2378
+ timeout: {
2379
+ type: string;
2380
+ };
2381
+ allowCredentials: {
2382
+ type: string;
2383
+ items: {
2384
+ type: string;
2385
+ properties: {
2386
+ id: {
2387
+ type: string;
2388
+ };
2389
+ type: {
2390
+ type: string;
2391
+ };
2392
+ transports: {
2393
+ type: string;
2394
+ items: {
2395
+ type: string;
2396
+ };
2397
+ };
2398
+ };
2399
+ };
2400
+ };
2401
+ userVerification: {
2402
+ type: string;
2403
+ };
2404
+ authenticatorSelection: {
2405
+ type: string;
2406
+ properties: {
2407
+ authenticatorAttachment: {
2408
+ type: string;
2409
+ };
2410
+ requireResidentKey: {
2411
+ type: string;
2412
+ };
2413
+ userVerification: {
2414
+ type: string;
2415
+ };
2416
+ };
2417
+ };
2418
+ extensions: {
2419
+ type: string;
2420
+ };
2421
+ };
2422
+ };
2423
+ };
2424
+ };
2425
+ };
2426
+ };
2427
+ };
2428
+ };
2429
+ }, import('@better-auth/passkey/client').PublicKeyCredentialRequestOptionsJSON>;
2430
+ verifyPasskeyRegistration: import('better-auth').StrictEndpoint<"/passkey/verify-registration", {
842
2431
  method: "POST";
843
- requireHeaders: true;
844
- body: import("zod").ZodObject<{
845
- email: import("zod").ZodEmail;
846
- name: import("zod").ZodOptional<import("zod").ZodString>;
847
- callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
848
- newUserCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
849
- errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
850
- metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
851
- }, import("zod/v4/core").$strip>;
2432
+ body: import('zod').ZodObject<{
2433
+ response: import('zod').ZodAny;
2434
+ name: import('zod').ZodOptional<import('zod').ZodString>;
2435
+ }, import('zod/v4/core').$strip>;
2436
+ use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
2437
+ session: {
2438
+ session: Record<string, any> & {
2439
+ id: string;
2440
+ createdAt: Date;
2441
+ updatedAt: Date;
2442
+ userId: string;
2443
+ expiresAt: Date;
2444
+ token: string;
2445
+ ipAddress?: string | null | undefined;
2446
+ userAgent?: string | null | undefined;
2447
+ };
2448
+ user: Record<string, any> & {
2449
+ id: string;
2450
+ createdAt: Date;
2451
+ updatedAt: Date;
2452
+ email: string;
2453
+ emailVerified: boolean;
2454
+ name: string;
2455
+ image?: string | null | undefined;
2456
+ };
2457
+ };
2458
+ }>)[] | undefined;
852
2459
  metadata: {
853
2460
  openapi: {
854
2461
  operationId: string;
@@ -859,32 +2466,23 @@ declare const authClient: {
859
2466
  content: {
860
2467
  "application/json": {
861
2468
  schema: {
862
- type: "object";
863
- properties: {
864
- status: {
865
- type: string;
866
- };
867
- };
2469
+ $ref: string;
868
2470
  };
869
2471
  };
870
2472
  };
871
2473
  };
2474
+ 400: {
2475
+ description: string;
2476
+ };
872
2477
  };
873
2478
  };
874
2479
  };
875
- }, {
876
- status: boolean;
877
- }>;
878
- magicLinkVerify: import("better-auth").StrictEndpoint<"/magic-link/verify", {
879
- method: "GET";
880
- query: import("zod").ZodObject<{
881
- token: import("zod").ZodString;
882
- callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
883
- errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
884
- newUserCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
885
- }, import("zod/v4/core").$strip>;
886
- use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
887
- requireHeaders: true;
2480
+ }, import('@better-auth/passkey/client').Passkey>;
2481
+ verifyPasskeyAuthentication: import('better-auth').StrictEndpoint<"/passkey/verify-authentication", {
2482
+ method: "POST";
2483
+ body: import('zod').ZodObject<{
2484
+ response: import('zod').ZodRecord<import('zod').ZodAny, import('zod').ZodAny>;
2485
+ }, import('zod/v4/core').$strip>;
888
2486
  metadata: {
889
2487
  openapi: {
890
2488
  operationId: string;
@@ -910,18 +2508,13 @@ declare const authClient: {
910
2508
  };
911
2509
  };
912
2510
  };
2511
+ $Infer: {
2512
+ body: {
2513
+ response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
2514
+ };
2515
+ };
913
2516
  };
914
2517
  }, {
915
- token: string;
916
- user: {
917
- id: string;
918
- createdAt: Date;
919
- updatedAt: Date;
920
- email: string;
921
- emailVerified: boolean;
922
- name: string;
923
- image?: string | null | undefined;
924
- };
925
2518
  session: {
926
2519
  id: string;
927
2520
  createdAt: Date;
@@ -933,66 +2526,101 @@ declare const authClient: {
933
2526
  userAgent?: string | null | undefined;
934
2527
  };
935
2528
  }>;
936
- };
937
- rateLimit: {
938
- pathMatcher(path: string): boolean;
939
- window: number;
940
- max: number;
941
- }[];
942
- options: import("better-auth/plugins/magic-link").MagicLinkOptions;
943
- }>;
944
- } | {
945
- id: "multi-session";
946
- version: string;
947
- $InferServerPlugin: ReturnType<(options?: import("better-auth/plugins/multi-session").MultiSessionConfig | undefined) => {
948
- id: "multi-session";
949
- version: string;
950
- endpoints: {
951
- listDeviceSessions: import("better-auth").StrictEndpoint<"/multi-session/list-device-sessions", {
2529
+ listPasskeys: import('better-auth').StrictEndpoint<"/passkey/list-user-passkeys", {
952
2530
  method: "GET";
953
- requireHeaders: true;
954
- }, {
955
- session: {
956
- id: string;
957
- createdAt: Date;
958
- updatedAt: Date;
959
- userId: string;
960
- expiresAt: Date;
961
- token: string;
962
- ipAddress?: string | null | undefined;
963
- userAgent?: string | null | undefined;
964
- };
965
- user: {
966
- id: string;
967
- createdAt: Date;
968
- updatedAt: Date;
969
- email: string;
970
- emailVerified: boolean;
971
- name: string;
972
- image?: string | null | undefined;
2531
+ use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
2532
+ session: {
2533
+ session: Record<string, any> & {
2534
+ id: string;
2535
+ createdAt: Date;
2536
+ updatedAt: Date;
2537
+ userId: string;
2538
+ expiresAt: Date;
2539
+ token: string;
2540
+ ipAddress?: string | null | undefined;
2541
+ userAgent?: string | null | undefined;
2542
+ };
2543
+ user: Record<string, any> & {
2544
+ id: string;
2545
+ createdAt: Date;
2546
+ updatedAt: Date;
2547
+ email: string;
2548
+ emailVerified: boolean;
2549
+ name: string;
2550
+ image?: string | null | undefined;
2551
+ };
2552
+ };
2553
+ }>)[];
2554
+ metadata: {
2555
+ openapi: {
2556
+ description: string;
2557
+ responses: {
2558
+ "200": {
2559
+ description: string;
2560
+ content: {
2561
+ "application/json": {
2562
+ schema: {
2563
+ type: "array";
2564
+ items: {
2565
+ $ref: string;
2566
+ required: string[];
2567
+ };
2568
+ description: string;
2569
+ };
2570
+ };
2571
+ };
2572
+ };
2573
+ };
2574
+ };
973
2575
  };
974
- }[]>;
975
- setActiveSession: import("better-auth").StrictEndpoint<"/multi-session/set-active", {
2576
+ }, import('@better-auth/passkey/client').Passkey[]>;
2577
+ deletePasskey: import('better-auth').StrictEndpoint<"/passkey/delete-passkey", {
976
2578
  method: "POST";
977
- body: import("zod").ZodObject<{
978
- sessionToken: import("zod").ZodString;
979
- }, import("zod/v4/core").$strip>;
980
- requireHeaders: true;
2579
+ body: import('zod').ZodObject<{
2580
+ id: import('zod').ZodString;
2581
+ }, import('zod/v4/core').$strip>;
2582
+ use: (((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
2583
+ session: {
2584
+ session: Record<string, any> & {
2585
+ id: string;
2586
+ createdAt: Date;
2587
+ updatedAt: Date;
2588
+ userId: string;
2589
+ expiresAt: Date;
2590
+ token: string;
2591
+ ipAddress?: string | null | undefined;
2592
+ userAgent?: string | null | undefined;
2593
+ };
2594
+ user: Record<string, any> & {
2595
+ id: string;
2596
+ createdAt: Date;
2597
+ updatedAt: Date;
2598
+ email: string;
2599
+ emailVerified: boolean;
2600
+ name: string;
2601
+ image?: string | null | undefined;
2602
+ };
2603
+ };
2604
+ }>) | ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
2605
+ verifiedResource: {};
2606
+ }>))[];
981
2607
  metadata: {
982
2608
  openapi: {
983
2609
  description: string;
984
2610
  responses: {
985
- 200: {
2611
+ "200": {
986
2612
  description: string;
987
2613
  content: {
988
2614
  "application/json": {
989
2615
  schema: {
990
2616
  type: "object";
991
2617
  properties: {
992
- session: {
993
- $ref: string;
2618
+ status: {
2619
+ type: string;
2620
+ description: string;
994
2621
  };
995
2622
  };
2623
+ required: string[];
996
2624
  };
997
2625
  };
998
2626
  };
@@ -1001,33 +2629,15 @@ declare const authClient: {
1001
2629
  };
1002
2630
  };
1003
2631
  }, {
1004
- session: {
1005
- id: string;
1006
- createdAt: Date;
1007
- updatedAt: Date;
1008
- userId: string;
1009
- expiresAt: Date;
1010
- token: string;
1011
- ipAddress?: string | null | undefined;
1012
- userAgent?: string | null | undefined;
1013
- } & Record<string, any>;
1014
- user: {
1015
- id: string;
1016
- createdAt: Date;
1017
- updatedAt: Date;
1018
- email: string;
1019
- emailVerified: boolean;
1020
- name: string;
1021
- image?: string | null | undefined;
1022
- } & Record<string, any>;
2632
+ status: boolean;
1023
2633
  }>;
1024
- revokeDeviceSession: import("better-auth").StrictEndpoint<"/multi-session/revoke", {
2634
+ updatePasskey: import('better-auth').StrictEndpoint<"/passkey/update-passkey", {
1025
2635
  method: "POST";
1026
- body: import("zod").ZodObject<{
1027
- sessionToken: import("zod").ZodString;
1028
- }, import("zod/v4/core").$strip>;
1029
- requireHeaders: true;
1030
- use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
2636
+ body: import('zod').ZodObject<{
2637
+ id: import('zod').ZodString;
2638
+ name: import('zod').ZodString;
2639
+ }, import('zod/v4/core').$strip>;
2640
+ use: (((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
1031
2641
  session: {
1032
2642
  session: Record<string, any> & {
1033
2643
  id: string;
@@ -1049,22 +2659,25 @@ declare const authClient: {
1049
2659
  image?: string | null | undefined;
1050
2660
  };
1051
2661
  };
1052
- }>)[];
2662
+ }>) | ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
2663
+ verifiedResource: {};
2664
+ }>))[];
1053
2665
  metadata: {
1054
2666
  openapi: {
1055
2667
  description: string;
1056
2668
  responses: {
1057
- 200: {
2669
+ "200": {
1058
2670
  description: string;
1059
2671
  content: {
1060
2672
  "application/json": {
1061
2673
  schema: {
1062
2674
  type: "object";
1063
2675
  properties: {
1064
- status: {
1065
- type: string;
2676
+ passkey: {
2677
+ $ref: string;
1066
2678
  };
1067
2679
  };
2680
+ required: string[];
1068
2681
  };
1069
2682
  };
1070
2683
  };
@@ -1072,35 +2685,243 @@ declare const authClient: {
1072
2685
  };
1073
2686
  };
1074
2687
  };
1075
- }, {
1076
- status: boolean;
2688
+ }, {
2689
+ passkey: import('@better-auth/passkey/client').Passkey;
2690
+ }>;
2691
+ };
2692
+ schema: {
2693
+ passkey: {
2694
+ fields: {
2695
+ name: {
2696
+ type: "string";
2697
+ required: false;
2698
+ };
2699
+ publicKey: {
2700
+ type: "string";
2701
+ required: true;
2702
+ };
2703
+ userId: {
2704
+ type: "string";
2705
+ references: {
2706
+ model: string;
2707
+ field: string;
2708
+ };
2709
+ required: true;
2710
+ index: true;
2711
+ };
2712
+ credentialID: {
2713
+ type: "string";
2714
+ required: true;
2715
+ index: true;
2716
+ };
2717
+ counter: {
2718
+ type: "number";
2719
+ required: true;
2720
+ };
2721
+ deviceType: {
2722
+ type: "string";
2723
+ required: true;
2724
+ };
2725
+ backedUp: {
2726
+ type: "boolean";
2727
+ required: true;
2728
+ };
2729
+ transports: {
2730
+ type: "string";
2731
+ required: false;
2732
+ };
2733
+ createdAt: {
2734
+ type: "date";
2735
+ required: false;
2736
+ };
2737
+ aaguid: {
2738
+ type: "string";
2739
+ required: false;
2740
+ };
2741
+ };
2742
+ };
2743
+ };
2744
+ $ERROR_CODES: {
2745
+ CHALLENGE_NOT_FOUND: import('better-auth').RawError<"CHALLENGE_NOT_FOUND">;
2746
+ YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import('better-auth').RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
2747
+ FAILED_TO_VERIFY_REGISTRATION: import('better-auth').RawError<"FAILED_TO_VERIFY_REGISTRATION">;
2748
+ PASSKEY_NOT_FOUND: import('better-auth').RawError<"PASSKEY_NOT_FOUND">;
2749
+ AUTHENTICATION_FAILED: import('better-auth').RawError<"AUTHENTICATION_FAILED">;
2750
+ UNABLE_TO_CREATE_SESSION: import('better-auth').RawError<"UNABLE_TO_CREATE_SESSION">;
2751
+ FAILED_TO_UPDATE_PASSKEY: import('better-auth').RawError<"FAILED_TO_UPDATE_PASSKEY">;
2752
+ PREVIOUSLY_REGISTERED: import('better-auth').RawError<"PREVIOUSLY_REGISTERED">;
2753
+ REGISTRATION_CANCELLED: import('better-auth').RawError<"REGISTRATION_CANCELLED">;
2754
+ AUTH_CANCELLED: import('better-auth').RawError<"AUTH_CANCELLED">;
2755
+ UNKNOWN_ERROR: import('better-auth').RawError<"UNKNOWN_ERROR">;
2756
+ SESSION_REQUIRED: import('better-auth').RawError<"SESSION_REQUIRED">;
2757
+ RESOLVE_USER_REQUIRED: import('better-auth').RawError<"RESOLVE_USER_REQUIRED">;
2758
+ RESOLVED_USER_INVALID: import('better-auth').RawError<"RESOLVED_USER_INVALID">;
2759
+ };
2760
+ options: import('@better-auth/passkey/client').PasskeyOptions | undefined;
2761
+ }>;
2762
+ getActions: ($fetch: import('better-auth/client').BetterFetch, $store: import('better-auth').ClientStore) => {
2763
+ signIn: {
2764
+ passkey: (opts?: {
2765
+ autoFill?: boolean;
2766
+ extensions?: import('@better-auth/passkey/client').AuthenticationExtensionsClientInputs;
2767
+ returnWebAuthnResponse?: boolean;
2768
+ fetchOptions?: import('better-auth').ClientFetchOption;
2769
+ } | undefined, options?: import('better-auth').ClientFetchOption | undefined) => Promise<{
2770
+ data: null;
2771
+ error: {
2772
+ message?: string | undefined;
2773
+ status: number;
2774
+ statusText: string;
2775
+ };
2776
+ } | {
2777
+ data: {
2778
+ session: {
2779
+ id: string;
2780
+ createdAt: Date;
2781
+ updatedAt: Date;
2782
+ userId: string;
2783
+ expiresAt: Date;
2784
+ token: string;
2785
+ ipAddress?: string | null | undefined;
2786
+ userAgent?: string | null | undefined;
2787
+ };
2788
+ user: {
2789
+ id: string;
2790
+ createdAt: Date;
2791
+ updatedAt: Date;
2792
+ email: string;
2793
+ emailVerified: boolean;
2794
+ name: string;
2795
+ image?: string | null | undefined;
2796
+ };
2797
+ };
2798
+ error: null;
2799
+ } | {
2800
+ webauthn: {
2801
+ response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
2802
+ clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
2803
+ };
2804
+ data: null;
2805
+ error: {
2806
+ message?: string | undefined;
2807
+ status: number;
2808
+ statusText: string;
2809
+ };
2810
+ } | {
2811
+ webauthn: {
2812
+ response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
2813
+ clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
2814
+ };
2815
+ data: {
2816
+ session: {
2817
+ id: string;
2818
+ createdAt: Date;
2819
+ updatedAt: Date;
2820
+ userId: string;
2821
+ expiresAt: Date;
2822
+ token: string;
2823
+ ipAddress?: string | null | undefined;
2824
+ userAgent?: string | null | undefined;
2825
+ };
2826
+ user: {
2827
+ id: string;
2828
+ createdAt: Date;
2829
+ updatedAt: Date;
2830
+ email: string;
2831
+ emailVerified: boolean;
2832
+ name: string;
2833
+ image?: string | null | undefined;
2834
+ };
2835
+ };
2836
+ error: null;
2837
+ } | {
2838
+ data: null;
2839
+ error: {
2840
+ code: string;
2841
+ message: string;
2842
+ status: number;
2843
+ statusText: string;
2844
+ };
1077
2845
  }>;
1078
2846
  };
1079
- hooks: {
1080
- after: {
1081
- matcher: (context: import("better-auth").HookEndpointContext) => boolean;
1082
- handler: (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>;
1083
- }[];
2847
+ passkey: {
2848
+ addPasskey: (opts?: {
2849
+ fetchOptions?: import('better-auth').ClientFetchOption;
2850
+ name?: string;
2851
+ authenticatorAttachment?: "platform" | "cross-platform";
2852
+ context?: string | null;
2853
+ extensions?: import('@better-auth/passkey/client').AuthenticationExtensionsClientInputs;
2854
+ useAutoRegister?: boolean;
2855
+ returnWebAuthnResponse?: boolean;
2856
+ } | undefined, fetchOpts?: import('better-auth').ClientFetchOption | undefined) => Promise<{
2857
+ data: null;
2858
+ error: {
2859
+ message?: string | undefined;
2860
+ status: number;
2861
+ statusText: string;
2862
+ };
2863
+ } | {
2864
+ data: import('@better-auth/passkey/client').Passkey;
2865
+ error: null;
2866
+ } | {
2867
+ webauthn: {
2868
+ response: import('@better-auth/passkey/client').RegistrationResponseJSON;
2869
+ clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
2870
+ };
2871
+ data: import('@better-auth/passkey/client').Passkey;
2872
+ error: null;
2873
+ } | {
2874
+ data: null;
2875
+ error: {
2876
+ code: string;
2877
+ message: string;
2878
+ status: number;
2879
+ statusText: string;
2880
+ };
2881
+ }>;
1084
2882
  };
1085
- options: import("better-auth/plugins/multi-session").MultiSessionConfig | undefined;
1086
- $ERROR_CODES: {
1087
- INVALID_SESSION_TOKEN: import("better-auth").RawError<"INVALID_SESSION_TOKEN">;
2883
+ $Infer: {
2884
+ Passkey: import('@better-auth/passkey/client').Passkey;
1088
2885
  };
1089
- }>;
1090
- atomListeners: {
1091
- matcher(path: string): path is "/multi-session/set-active";
2886
+ };
2887
+ getAtoms($fetch: import('better-auth/client').BetterFetch): {
2888
+ listPasskeys: import('better-auth/client').AuthQueryAtom<import('@better-auth/passkey/client').Passkey[]>;
2889
+ $listPasskeys: import('better-auth/client').PreinitializedWritableAtom<any> & object;
2890
+ };
2891
+ pathMethods: {
2892
+ "/passkey/register": "POST";
2893
+ "/passkey/authenticate": "POST";
2894
+ };
2895
+ atomListeners: ({
2896
+ matcher(path: string): path is "/passkey/delete-passkey" | "/passkey/update-passkey" | "/passkey/verify-registration" | "/sign-out";
2897
+ signal: "$listPasskeys";
2898
+ } | {
2899
+ matcher: (path: string) => path is "/passkey/verify-authentication";
1092
2900
  signal: "$sessionSignal";
1093
- }[];
2901
+ })[];
1094
2902
  $ERROR_CODES: {
1095
- INVALID_SESSION_TOKEN: import("better-auth").RawError<"INVALID_SESSION_TOKEN">;
2903
+ CHALLENGE_NOT_FOUND: import('better-auth').RawError<"CHALLENGE_NOT_FOUND">;
2904
+ YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import('better-auth').RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
2905
+ FAILED_TO_VERIFY_REGISTRATION: import('better-auth').RawError<"FAILED_TO_VERIFY_REGISTRATION">;
2906
+ PASSKEY_NOT_FOUND: import('better-auth').RawError<"PASSKEY_NOT_FOUND">;
2907
+ AUTHENTICATION_FAILED: import('better-auth').RawError<"AUTHENTICATION_FAILED">;
2908
+ UNABLE_TO_CREATE_SESSION: import('better-auth').RawError<"UNABLE_TO_CREATE_SESSION">;
2909
+ FAILED_TO_UPDATE_PASSKEY: import('better-auth').RawError<"FAILED_TO_UPDATE_PASSKEY">;
2910
+ PREVIOUSLY_REGISTERED: import('better-auth').RawError<"PREVIOUSLY_REGISTERED">;
2911
+ REGISTRATION_CANCELLED: import('better-auth').RawError<"REGISTRATION_CANCELLED">;
2912
+ AUTH_CANCELLED: import('better-auth').RawError<"AUTH_CANCELLED">;
2913
+ UNKNOWN_ERROR: import('better-auth').RawError<"UNKNOWN_ERROR">;
2914
+ SESSION_REQUIRED: import('better-auth').RawError<"SESSION_REQUIRED">;
2915
+ RESOLVE_USER_REQUIRED: import('better-auth').RawError<"RESOLVE_USER_REQUIRED">;
2916
+ RESOLVED_USER_INVALID: import('better-auth').RawError<"RESOLVED_USER_INVALID">;
1096
2917
  };
1097
2918
  } | {
1098
2919
  id: "username";
1099
2920
  version: string;
1100
- $InferServerPlugin: ReturnType<(options?: import("better-auth/plugins/username").UsernameOptions | undefined) => {
2921
+ $InferServerPlugin: ReturnType<(options?: import('better-auth/plugins/username').UsernameOptions | undefined) => {
1101
2922
  id: "username";
1102
2923
  version: string;
1103
- init(ctx: import("better-auth").AuthContext): {
2924
+ init(ctx: import('better-auth').AuthContext): {
1104
2925
  options: {
1105
2926
  databaseHooks: {
1106
2927
  user: {
@@ -1113,7 +2934,7 @@ declare const authClient: {
1113
2934
  emailVerified: boolean;
1114
2935
  name: string;
1115
2936
  image?: string | null | undefined;
1116
- } & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null): Promise<{
2937
+ } & Record<string, unknown>, context: import('better-auth').GenericEndpointContext | null): Promise<{
1117
2938
  data: {
1118
2939
  displayUsername?: string | undefined;
1119
2940
  username?: string | undefined;
@@ -1136,7 +2957,7 @@ declare const authClient: {
1136
2957
  emailVerified: boolean;
1137
2958
  name: string;
1138
2959
  image?: string | null | undefined;
1139
- }> & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null): Promise<{
2960
+ }> & Record<string, unknown>, context: import('better-auth').GenericEndpointContext | null): Promise<{
1140
2961
  data: {
1141
2962
  displayUsername?: string | undefined;
1142
2963
  username?: string | undefined;
@@ -1155,14 +2976,14 @@ declare const authClient: {
1155
2976
  };
1156
2977
  };
1157
2978
  endpoints: {
1158
- signInUsername: import("better-auth").StrictEndpoint<"/sign-in/username", {
2979
+ signInUsername: import('better-auth').StrictEndpoint<"/sign-in/username", {
1159
2980
  method: "POST";
1160
- body: import("zod").ZodObject<{
1161
- username: import("zod").ZodString;
1162
- password: import("zod").ZodString;
1163
- rememberMe: import("zod").ZodOptional<import("zod").ZodBoolean>;
1164
- callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
1165
- }, import("zod/v4/core").$strip>;
2981
+ body: import('zod').ZodObject<{
2982
+ username: import('zod').ZodString;
2983
+ password: import('zod').ZodString;
2984
+ rememberMe: import('zod').ZodOptional<import('zod').ZodBoolean>;
2985
+ callbackURL: import('zod').ZodOptional<import('zod').ZodString>;
2986
+ }, import('zod/v4/core').$strip>;
1166
2987
  metadata: {
1167
2988
  openapi: {
1168
2989
  summary: string;
@@ -1221,11 +3042,11 @@ declare const authClient: {
1221
3042
  displayUsername: string;
1222
3043
  };
1223
3044
  }>;
1224
- isUsernameAvailable: import("better-auth").StrictEndpoint<"/is-username-available", {
3045
+ isUsernameAvailable: import('better-auth').StrictEndpoint<"/is-username-available", {
1225
3046
  method: "POST";
1226
- body: import("zod").ZodObject<{
1227
- username: import("zod").ZodString;
1228
- }, import("zod/v4/core").$strip>;
3047
+ body: import('zod').ZodObject<{
3048
+ username: import('zod').ZodString;
3049
+ }, import('zod/v4/core').$strip>;
1229
3050
  }, {
1230
3051
  available: boolean;
1231
3052
  }>;
@@ -1240,14 +3061,14 @@ declare const authClient: {
1240
3061
  unique: true;
1241
3062
  returned: true;
1242
3063
  transform: {
1243
- input(value: import("better-auth").DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
3064
+ input(value: import('better-auth').DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
1244
3065
  };
1245
3066
  };
1246
3067
  displayUsername: {
1247
3068
  type: "string";
1248
3069
  required: false;
1249
3070
  transform: {
1250
- input(value: import("better-auth").DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
3071
+ input(value: import('better-auth').DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
1251
3072
  };
1252
3073
  };
1253
3074
  };
@@ -1255,20 +3076,20 @@ declare const authClient: {
1255
3076
  };
1256
3077
  hooks: {
1257
3078
  before: {
1258
- matcher(context: import("better-auth").HookEndpointContext): boolean;
1259
- handler: (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>;
3079
+ matcher(context: import('better-auth').HookEndpointContext): boolean;
3080
+ handler: (inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<void>;
1260
3081
  }[];
1261
3082
  };
1262
- options: import("better-auth/plugins/username").UsernameOptions | undefined;
3083
+ options: import('better-auth/plugins/username').UsernameOptions | undefined;
1263
3084
  $ERROR_CODES: {
1264
- EMAIL_NOT_VERIFIED: import("better-auth").RawError<"EMAIL_NOT_VERIFIED">;
1265
- UNEXPECTED_ERROR: import("better-auth").RawError<"UNEXPECTED_ERROR">;
1266
- INVALID_USERNAME_OR_PASSWORD: import("better-auth").RawError<"INVALID_USERNAME_OR_PASSWORD">;
1267
- USERNAME_IS_ALREADY_TAKEN: import("better-auth").RawError<"USERNAME_IS_ALREADY_TAKEN">;
1268
- USERNAME_TOO_SHORT: import("better-auth").RawError<"USERNAME_TOO_SHORT">;
1269
- USERNAME_TOO_LONG: import("better-auth").RawError<"USERNAME_TOO_LONG">;
1270
- INVALID_USERNAME: import("better-auth").RawError<"INVALID_USERNAME">;
1271
- INVALID_DISPLAY_USERNAME: import("better-auth").RawError<"INVALID_DISPLAY_USERNAME">;
3085
+ EMAIL_NOT_VERIFIED: import('better-auth').RawError<"EMAIL_NOT_VERIFIED">;
3086
+ UNEXPECTED_ERROR: import('better-auth').RawError<"UNEXPECTED_ERROR">;
3087
+ INVALID_USERNAME_OR_PASSWORD: import('better-auth').RawError<"INVALID_USERNAME_OR_PASSWORD">;
3088
+ USERNAME_IS_ALREADY_TAKEN: import('better-auth').RawError<"USERNAME_IS_ALREADY_TAKEN">;
3089
+ USERNAME_TOO_SHORT: import('better-auth').RawError<"USERNAME_TOO_SHORT">;
3090
+ USERNAME_TOO_LONG: import('better-auth').RawError<"USERNAME_TOO_LONG">;
3091
+ INVALID_USERNAME: import('better-auth').RawError<"INVALID_USERNAME">;
3092
+ INVALID_DISPLAY_USERNAME: import('better-auth').RawError<"INVALID_DISPLAY_USERNAME">;
1272
3093
  };
1273
3094
  }>;
1274
3095
  atomListeners: {
@@ -1276,32 +3097,32 @@ declare const authClient: {
1276
3097
  signal: "$sessionSignal";
1277
3098
  }[];
1278
3099
  $ERROR_CODES: {
1279
- EMAIL_NOT_VERIFIED: import("better-auth").RawError<"EMAIL_NOT_VERIFIED">;
1280
- UNEXPECTED_ERROR: import("better-auth").RawError<"UNEXPECTED_ERROR">;
1281
- INVALID_USERNAME_OR_PASSWORD: import("better-auth").RawError<"INVALID_USERNAME_OR_PASSWORD">;
1282
- USERNAME_IS_ALREADY_TAKEN: import("better-auth").RawError<"USERNAME_IS_ALREADY_TAKEN">;
1283
- USERNAME_TOO_SHORT: import("better-auth").RawError<"USERNAME_TOO_SHORT">;
1284
- USERNAME_TOO_LONG: import("better-auth").RawError<"USERNAME_TOO_LONG">;
1285
- INVALID_USERNAME: import("better-auth").RawError<"INVALID_USERNAME">;
1286
- INVALID_DISPLAY_USERNAME: import("better-auth").RawError<"INVALID_DISPLAY_USERNAME">;
3100
+ EMAIL_NOT_VERIFIED: import('better-auth').RawError<"EMAIL_NOT_VERIFIED">;
3101
+ UNEXPECTED_ERROR: import('better-auth').RawError<"UNEXPECTED_ERROR">;
3102
+ INVALID_USERNAME_OR_PASSWORD: import('better-auth').RawError<"INVALID_USERNAME_OR_PASSWORD">;
3103
+ USERNAME_IS_ALREADY_TAKEN: import('better-auth').RawError<"USERNAME_IS_ALREADY_TAKEN">;
3104
+ USERNAME_TOO_SHORT: import('better-auth').RawError<"USERNAME_TOO_SHORT">;
3105
+ USERNAME_TOO_LONG: import('better-auth').RawError<"USERNAME_TOO_LONG">;
3106
+ INVALID_USERNAME: import('better-auth').RawError<"INVALID_USERNAME">;
3107
+ INVALID_DISPLAY_USERNAME: import('better-auth').RawError<"INVALID_DISPLAY_USERNAME">;
1287
3108
  };
1288
3109
  })[];
1289
- }, FetchOptions>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
3110
+ }, FetchOptions>> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
1290
3111
  status: boolean;
1291
3112
  }, {
1292
3113
  code?: string | undefined;
1293
3114
  message?: string | undefined;
1294
3115
  }, FetchOptions["throw"] extends true ? true : false>>;
1295
3116
  } & {
1296
- requestPasswordReset: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
3117
+ requestPasswordReset: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
1297
3118
  email: string;
1298
3119
  redirectTo?: string | undefined;
1299
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
3120
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
1300
3121
  email: string;
1301
3122
  redirectTo?: string | undefined;
1302
3123
  } & {
1303
3124
  fetchOptions?: FetchOptions | undefined;
1304
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
3125
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
1305
3126
  status: boolean;
1306
3127
  message: string;
1307
3128
  }, {
@@ -1310,25 +3131,25 @@ declare const authClient: {
1310
3131
  }, FetchOptions["throw"] extends true ? true : false>>;
1311
3132
  } & {
1312
3133
  resetPassword: {
1313
- ":token": <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
3134
+ ":token": <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
1314
3135
  callbackURL: string;
1315
3136
  }> & Record<string, any>, {
1316
3137
  token: string;
1317
- }>>(data_0: import("better-auth").Prettify<{
3138
+ }>>(data_0: import('better-auth').Prettify<{
1318
3139
  query: {
1319
3140
  callbackURL: string;
1320
3141
  };
1321
3142
  fetchOptions?: FetchOptions | undefined;
1322
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<never, {
3143
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<never, {
1323
3144
  code?: string | undefined;
1324
3145
  message?: string | undefined;
1325
3146
  }, FetchOptions["throw"] extends true ? true : false>>;
1326
3147
  };
1327
3148
  } & {
1328
- listSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
3149
+ listSessions: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
1329
3150
  query?: Record<string, any> | undefined;
1330
3151
  fetchOptions?: FetchOptions | undefined;
1331
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<import("better-auth").Prettify<{
3152
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<import('better-auth').Prettify<{
1332
3153
  id: string;
1333
3154
  createdAt: Date;
1334
3155
  updatedAt: Date;
@@ -1342,27 +3163,40 @@ declare const authClient: {
1342
3163
  message?: string | undefined;
1343
3164
  }, FetchOptions["throw"] extends true ? true : false>>;
1344
3165
  } & {
1345
- revokeSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
3166
+ revokeSession: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
3167
+ token: string;
3168
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
3169
+ token: string;
3170
+ } & {
3171
+ fetchOptions?: FetchOptions | undefined;
3172
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
3173
+ status: boolean;
3174
+ }, {
3175
+ code?: string | undefined;
3176
+ message?: string | undefined;
3177
+ }, FetchOptions["throw"] extends true ? true : false>>;
3178
+ } & {
3179
+ revokeSessions: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
1346
3180
  query?: Record<string, any> | undefined;
1347
3181
  fetchOptions?: FetchOptions | undefined;
1348
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
3182
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
1349
3183
  status: boolean;
1350
3184
  }, {
1351
3185
  code?: string | undefined;
1352
3186
  message?: string | undefined;
1353
3187
  }, FetchOptions["throw"] extends true ? true : false>>;
1354
3188
  } & {
1355
- revokeOtherSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
3189
+ revokeOtherSessions: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
1356
3190
  query?: Record<string, any> | undefined;
1357
3191
  fetchOptions?: FetchOptions | undefined;
1358
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
3192
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
1359
3193
  status: boolean;
1360
3194
  }, {
1361
3195
  code?: string | undefined;
1362
3196
  message?: string | undefined;
1363
3197
  }, FetchOptions["throw"] extends true ? true : false>>;
1364
3198
  } & {
1365
- linkSocial: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
3199
+ linkSocial: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
1366
3200
  provider: unknown;
1367
3201
  callbackURL?: string | undefined;
1368
3202
  idToken?: {
@@ -1377,7 +3211,7 @@ declare const authClient: {
1377
3211
  errorCallbackURL?: string | undefined;
1378
3212
  disableRedirect?: boolean | undefined;
1379
3213
  additionalData?: Record<string, any> | undefined;
1380
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
3214
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
1381
3215
  provider: unknown;
1382
3216
  callbackURL?: string | undefined;
1383
3217
  idToken?: {
@@ -1394,7 +3228,7 @@ declare const authClient: {
1394
3228
  additionalData?: Record<string, any> | undefined;
1395
3229
  } & {
1396
3230
  fetchOptions?: FetchOptions | undefined;
1397
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
3231
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
1398
3232
  url: string;
1399
3233
  redirect: boolean;
1400
3234
  }, {
@@ -1402,10 +3236,10 @@ declare const authClient: {
1402
3236
  message?: string | undefined;
1403
3237
  }, FetchOptions["throw"] extends true ? true : false>>;
1404
3238
  } & {
1405
- listAccounts: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
3239
+ listAccounts: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
1406
3240
  query?: Record<string, any> | undefined;
1407
3241
  fetchOptions?: FetchOptions | undefined;
1408
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
3242
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
1409
3243
  scopes: string[];
1410
3244
  id: string;
1411
3245
  createdAt: Date;
@@ -1419,16 +3253,16 @@ declare const authClient: {
1419
3253
  }, FetchOptions["throw"] extends true ? true : false>>;
1420
3254
  } & {
1421
3255
  deleteUser: {
1422
- callback: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
3256
+ callback: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
1423
3257
  token: string;
1424
3258
  callbackURL?: string | undefined;
1425
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
3259
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
1426
3260
  query: {
1427
3261
  token: string;
1428
3262
  callbackURL?: string | undefined;
1429
3263
  };
1430
3264
  fetchOptions?: FetchOptions | undefined;
1431
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
3265
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
1432
3266
  success: boolean;
1433
3267
  message: string;
1434
3268
  }, {
@@ -1437,32 +3271,32 @@ declare const authClient: {
1437
3271
  }, FetchOptions["throw"] extends true ? true : false>>;
1438
3272
  };
1439
3273
  } & {
1440
- unlinkAccount: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
3274
+ unlinkAccount: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
1441
3275
  providerId: string;
1442
3276
  accountId?: string | undefined;
1443
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
3277
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
1444
3278
  providerId: string;
1445
3279
  accountId?: string | undefined;
1446
3280
  } & {
1447
3281
  fetchOptions?: FetchOptions | undefined;
1448
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
3282
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
1449
3283
  status: boolean;
1450
3284
  }, {
1451
3285
  code?: string | undefined;
1452
3286
  message?: string | undefined;
1453
3287
  }, FetchOptions["throw"] extends true ? true : false>>;
1454
3288
  } & {
1455
- refreshToken: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
3289
+ refreshToken: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
1456
3290
  providerId: string;
1457
3291
  accountId?: string | undefined;
1458
3292
  userId?: string | undefined;
1459
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
3293
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
1460
3294
  providerId: string;
1461
3295
  accountId?: string | undefined;
1462
3296
  userId?: string | undefined;
1463
3297
  } & {
1464
3298
  fetchOptions?: FetchOptions | undefined;
1465
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
3299
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
1466
3300
  accessToken: string | undefined;
1467
3301
  refreshToken: string;
1468
3302
  accessTokenExpiresAt: Date | undefined;
@@ -1476,17 +3310,17 @@ declare const authClient: {
1476
3310
  message?: string | undefined;
1477
3311
  }, FetchOptions["throw"] extends true ? true : false>>;
1478
3312
  } & {
1479
- getAccessToken: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
3313
+ getAccessToken: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
1480
3314
  providerId: string;
1481
3315
  accountId?: string | undefined;
1482
3316
  userId?: string | undefined;
1483
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
3317
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
1484
3318
  providerId: string;
1485
3319
  accountId?: string | undefined;
1486
3320
  userId?: string | undefined;
1487
3321
  } & {
1488
3322
  fetchOptions?: FetchOptions | undefined;
1489
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
3323
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
1490
3324
  accessToken: string;
1491
3325
  accessTokenExpiresAt: Date | undefined;
1492
3326
  scopes: string[];
@@ -1496,32 +3330,32 @@ declare const authClient: {
1496
3330
  message?: string | undefined;
1497
3331
  }, FetchOptions["throw"] extends true ? true : false>>;
1498
3332
  } & {
1499
- accountInfo: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
3333
+ accountInfo: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
1500
3334
  accountId?: string | undefined;
1501
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
3335
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
1502
3336
  query?: {
1503
3337
  accountId?: string | undefined;
1504
3338
  } | undefined;
1505
3339
  fetchOptions?: FetchOptions | undefined;
1506
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1507
- user: import("better-auth").OAuth2UserInfo;
3340
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
3341
+ user: import('better-auth').OAuth2UserInfo;
1508
3342
  data: Record<string, any>;
1509
3343
  }, {
1510
3344
  code?: string | undefined;
1511
3345
  message?: string | undefined;
1512
3346
  }, FetchOptions["throw"] extends true ? true : false>>;
1513
3347
  } & {
1514
- getSession: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
3348
+ getSession: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
1515
3349
  disableCookieCache?: unknown;
1516
3350
  disableRefresh?: unknown;
1517
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
3351
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
1518
3352
  query?: {
1519
3353
  disableCookieCache?: unknown;
1520
3354
  disableRefresh?: unknown;
1521
3355
  } | undefined;
1522
3356
  fetchOptions?: FetchOptions | undefined;
1523
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1524
- user: import("better-auth").StripEmptyObjects<{
3357
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
3358
+ user: import('better-auth').StripEmptyObjects<{
1525
3359
  id: string;
1526
3360
  createdAt: Date;
1527
3361
  updatedAt: Date;
@@ -1533,7 +3367,7 @@ declare const authClient: {
1533
3367
  username?: string | null | undefined;
1534
3368
  displayUsername?: string | null | undefined;
1535
3369
  }>;
1536
- session: import("better-auth").StripEmptyObjects<{
3370
+ session: import('better-auth').StripEmptyObjects<{
1537
3371
  id: string;
1538
3372
  createdAt: Date;
1539
3373
  updatedAt: Date;
@@ -1549,235 +3383,98 @@ declare const authClient: {
1549
3383
  }, FetchOptions["throw"] extends true ? true : false>>;
1550
3384
  } & {
1551
3385
  signIn: {
1552
- magicLink: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
1553
- email: string;
1554
- name?: string | undefined;
1555
- callbackURL?: string | undefined;
1556
- newUserCallbackURL?: string | undefined;
1557
- errorCallbackURL?: string | undefined;
1558
- metadata?: Record<string, any> | undefined;
1559
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
1560
- email: string;
1561
- name?: string | undefined;
1562
- callbackURL?: string | undefined;
1563
- newUserCallbackURL?: string | undefined;
1564
- errorCallbackURL?: string | undefined;
1565
- metadata?: Record<string, any> | undefined;
1566
- } & {
1567
- fetchOptions?: FetchOptions | undefined;
1568
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1569
- status: boolean;
1570
- }, {
1571
- code?: string | undefined;
1572
- message?: string | undefined;
1573
- }, FetchOptions["throw"] extends true ? true : false>>;
1574
- };
1575
- } & {
1576
- magicLink: {
1577
- verify: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
1578
- token: string;
1579
- callbackURL?: string | undefined;
1580
- errorCallbackURL?: string | undefined;
1581
- newUserCallbackURL?: string | undefined;
1582
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
1583
- query: {
1584
- token: string;
1585
- callbackURL?: string | undefined;
1586
- errorCallbackURL?: string | undefined;
1587
- newUserCallbackURL?: string | undefined;
3386
+ passkey: (opts?: {
3387
+ autoFill?: boolean;
3388
+ extensions?: import('@better-auth/passkey/client').AuthenticationExtensionsClientInputs;
3389
+ returnWebAuthnResponse?: boolean;
3390
+ fetchOptions?: import('better-auth').ClientFetchOption;
3391
+ } | undefined, options?: import('better-auth').ClientFetchOption | undefined) => Promise<{
3392
+ data: null;
3393
+ error: {
3394
+ message?: string | undefined;
3395
+ status: number;
3396
+ statusText: string;
1588
3397
  };
1589
- fetchOptions?: FetchOptions | undefined;
1590
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<Omit<Omit<{
1591
- token: string;
1592
- user: {
1593
- id: string;
1594
- createdAt: Date;
1595
- updatedAt: Date;
1596
- email: string;
1597
- emailVerified: boolean;
1598
- name: string;
1599
- image?: string | null | undefined;
3398
+ } | {
3399
+ data: {
3400
+ session: import('better-auth').Session;
3401
+ user: import('better-auth').User;
1600
3402
  };
1601
- session: {
1602
- id: string;
1603
- createdAt: Date;
1604
- updatedAt: Date;
1605
- userId: string;
1606
- expiresAt: Date;
1607
- token: string;
1608
- ipAddress?: string | null | undefined;
1609
- userAgent?: string | null | undefined;
3403
+ error: null;
3404
+ } | {
3405
+ webauthn: {
3406
+ response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
3407
+ clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
1610
3408
  };
1611
- }, "user"> & {
1612
- user: import("better-auth").StripEmptyObjects<{
1613
- id: string;
1614
- createdAt: Date;
1615
- updatedAt: Date;
1616
- email: string;
1617
- emailVerified: boolean;
1618
- name: string;
1619
- image?: string | null | undefined;
1620
- } & {} & {
1621
- username?: string | null | undefined;
1622
- displayUsername?: string | null | undefined;
1623
- }>;
1624
- }, "session"> & {
1625
- session: import("better-auth").StripEmptyObjects<{
1626
- id: string;
1627
- createdAt: Date;
1628
- updatedAt: Date;
1629
- userId: string;
1630
- expiresAt: Date;
1631
- token: string;
1632
- ipAddress?: string | null | undefined;
1633
- userAgent?: string | null | undefined;
1634
- }>;
1635
- }, {
1636
- code?: string | undefined;
1637
- message?: string | undefined;
1638
- }, FetchOptions["throw"] extends true ? true : false>>;
1639
- };
1640
- } & {
1641
- multiSession: {
1642
- listDeviceSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
1643
- query?: Record<string, any> | undefined;
1644
- fetchOptions?: FetchOptions | undefined;
1645
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1646
- session: {
1647
- id: string;
1648
- createdAt: Date;
1649
- updatedAt: Date;
1650
- userId: string;
1651
- expiresAt: Date;
1652
- token: string;
1653
- ipAddress?: string | null | undefined;
1654
- userAgent?: string | null | undefined;
3409
+ data: null;
3410
+ error: {
3411
+ message?: string | undefined;
3412
+ status: number;
3413
+ statusText: string;
1655
3414
  };
1656
- user: {
1657
- id: string;
1658
- createdAt: Date;
1659
- updatedAt: Date;
1660
- email: string;
1661
- emailVerified: boolean;
1662
- name: string;
1663
- image?: string | null | undefined;
3415
+ } | {
3416
+ webauthn: {
3417
+ response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
3418
+ clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
1664
3419
  };
1665
- }[], {
1666
- code?: string | undefined;
1667
- message?: string | undefined;
1668
- }, FetchOptions["throw"] extends true ? true : false>>;
1669
- };
1670
- } & {
1671
- multiSession: {
1672
- setActive: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
1673
- sessionToken: string;
1674
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
1675
- sessionToken: string;
1676
- } & {
1677
- fetchOptions?: FetchOptions | undefined;
1678
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1679
- session: {
1680
- id: string;
1681
- createdAt: Date;
1682
- updatedAt: Date;
1683
- userId: string;
1684
- expiresAt: Date;
1685
- token: string;
1686
- ipAddress?: string | null | undefined;
1687
- userAgent?: string | null | undefined;
1688
- } & Record<string, any>;
1689
- user: {
1690
- id: string;
1691
- createdAt: Date;
1692
- updatedAt: Date;
1693
- email: string;
1694
- emailVerified: boolean;
1695
- name: string;
1696
- image?: string | null | undefined;
1697
- } & Record<string, any>;
1698
- }, {
1699
- code?: string | undefined;
1700
- message?: string | undefined;
1701
- }, FetchOptions["throw"] extends true ? true : false>>;
1702
- };
1703
- } & {
1704
- multiSession: {
1705
- revoke: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
1706
- sessionToken: string;
1707
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
1708
- sessionToken: string;
1709
- } & {
1710
- fetchOptions?: FetchOptions | undefined;
1711
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1712
- status: boolean;
1713
- }, {
1714
- code?: string | undefined;
1715
- message?: string | undefined;
1716
- }, FetchOptions["throw"] extends true ? true : false>>;
3420
+ data: {
3421
+ session: import('better-auth').Session;
3422
+ user: import('better-auth').User;
3423
+ };
3424
+ error: null;
3425
+ } | {
3426
+ data: null;
3427
+ error: {
3428
+ code: string;
3429
+ message: string;
3430
+ status: number;
3431
+ statusText: string;
3432
+ };
3433
+ }>;
1717
3434
  };
1718
- } & {
1719
- signIn: {
1720
- username: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
1721
- username: string;
1722
- password: string;
1723
- rememberMe?: boolean | undefined;
1724
- callbackURL?: string | undefined;
1725
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
1726
- username: string;
1727
- password: string;
1728
- rememberMe?: boolean | undefined;
1729
- callbackURL?: string | undefined;
1730
- } & {
1731
- fetchOptions?: FetchOptions | undefined;
1732
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<Omit<{
1733
- token: string;
1734
- user: {
1735
- id: string;
1736
- createdAt: Date;
1737
- updatedAt: Date;
1738
- email: string;
1739
- emailVerified: boolean;
1740
- name: string;
1741
- image?: string | null | undefined;
1742
- } & {
1743
- username: string;
1744
- displayUsername: string;
3435
+ passkey: {
3436
+ addPasskey: (opts?: {
3437
+ fetchOptions?: import('better-auth').ClientFetchOption;
3438
+ name?: string;
3439
+ authenticatorAttachment?: "platform" | "cross-platform";
3440
+ context?: string | null;
3441
+ extensions?: import('@better-auth/passkey/client').AuthenticationExtensionsClientInputs;
3442
+ useAutoRegister?: boolean;
3443
+ returnWebAuthnResponse?: boolean;
3444
+ } | undefined, fetchOpts?: import('better-auth').ClientFetchOption | undefined) => Promise<{
3445
+ data: null;
3446
+ error: {
3447
+ message?: string | undefined;
3448
+ status: number;
3449
+ statusText: string;
1745
3450
  };
1746
- }, "user"> & {
1747
- user: import("better-auth").StripEmptyObjects<{
1748
- id: string;
1749
- createdAt: Date;
1750
- updatedAt: Date;
1751
- email: string;
1752
- emailVerified: boolean;
1753
- name: string;
1754
- image?: string | null | undefined;
1755
- } & {} & {
1756
- username?: string | null | undefined;
1757
- displayUsername?: string | null | undefined;
1758
- }>;
1759
- }, {
1760
- code?: string | undefined;
1761
- message?: string | undefined;
1762
- }, FetchOptions["throw"] extends true ? true : false>>;
3451
+ } | {
3452
+ data: import('@better-auth/passkey/client').Passkey;
3453
+ error: null;
3454
+ } | {
3455
+ webauthn: {
3456
+ response: import('@better-auth/passkey/client').RegistrationResponseJSON;
3457
+ clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
3458
+ };
3459
+ data: import('@better-auth/passkey/client').Passkey;
3460
+ error: null;
3461
+ } | {
3462
+ data: null;
3463
+ error: {
3464
+ code: string;
3465
+ message: string;
3466
+ status: number;
3467
+ statusText: string;
3468
+ };
3469
+ }>;
3470
+ };
3471
+ $Infer: {
3472
+ Passkey: import('@better-auth/passkey/client').Passkey;
1763
3473
  };
1764
- } & {
1765
- isUsernameAvailable: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
1766
- username: string;
1767
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
1768
- username: string;
1769
- } & {
1770
- fetchOptions?: FetchOptions | undefined;
1771
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1772
- available: boolean;
1773
- }, {
1774
- code?: string | undefined;
1775
- message?: string | undefined;
1776
- }, FetchOptions["throw"] extends true ? true : false>>;
1777
3474
  } & {
1778
3475
  useSession: () => {
1779
3476
  data: {
1780
- user: import("better-auth").StripEmptyObjects<{
3477
+ user: import('better-auth').StripEmptyObjects<{
1781
3478
  id: string;
1782
3479
  createdAt: Date;
1783
3480
  updatedAt: Date;
@@ -1789,7 +3486,7 @@ declare const authClient: {
1789
3486
  username?: string | null | undefined;
1790
3487
  displayUsername?: string | null | undefined;
1791
3488
  }>;
1792
- session: import("better-auth").StripEmptyObjects<{
3489
+ session: import('better-auth').StripEmptyObjects<{
1793
3490
  id: string;
1794
3491
  createdAt: Date;
1795
3492
  updatedAt: Date;
@@ -1802,14 +3499,14 @@ declare const authClient: {
1802
3499
  } | null;
1803
3500
  isPending: boolean;
1804
3501
  isRefetching: boolean;
1805
- error: import("better-auth/react").BetterFetchError | null;
3502
+ error: import('better-auth/client').BetterFetchError | null;
1806
3503
  refetch: (queryParams?: {
1807
- query?: import("better-auth").SessionQueryParams;
3504
+ query?: import('better-auth').SessionQueryParams;
1808
3505
  } | undefined) => Promise<void>;
1809
3506
  };
1810
3507
  $Infer: {
1811
3508
  Session: {
1812
- user: import("better-auth").StripEmptyObjects<{
3509
+ user: import('better-auth').StripEmptyObjects<{
1813
3510
  id: string;
1814
3511
  createdAt: Date;
1815
3512
  updatedAt: Date;
@@ -1821,7 +3518,7 @@ declare const authClient: {
1821
3518
  username?: string | null | undefined;
1822
3519
  displayUsername?: string | null | undefined;
1823
3520
  }>;
1824
- session: import("better-auth").StripEmptyObjects<{
3521
+ session: import('better-auth').StripEmptyObjects<{
1825
3522
  id: string;
1826
3523
  createdAt: Date;
1827
3524
  updatedAt: Date;
@@ -1833,21 +3530,21 @@ declare const authClient: {
1833
3530
  }>;
1834
3531
  };
1835
3532
  };
1836
- $fetch: import("better-auth/react").BetterFetch<{
1837
- plugins: (import("better-auth/react").BetterFetchPlugin<Record<string, any>> | {
3533
+ $fetch: import('better-auth/client').BetterFetch<{
3534
+ plugins: (import('better-auth/client').BetterFetchPlugin<Record<string, any>> | {
1838
3535
  id: string;
1839
3536
  name: string;
1840
3537
  hooks: {
1841
- onSuccess(context: import("better-auth/react").SuccessContext<any>): void;
3538
+ onSuccess(context: import('better-auth/client').SuccessContext<any>): void;
1842
3539
  };
1843
3540
  } | {
1844
3541
  id: string;
1845
3542
  name: string;
1846
3543
  hooks: {
1847
- onSuccess: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
1848
- onError: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
1849
- onRequest: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
1850
- onResponse: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
3544
+ onSuccess: ((context: import('better-auth/client').SuccessContext<any>) => Promise<void> | void) | undefined;
3545
+ onError: ((context: import('better-auth/client').ErrorContext) => Promise<void> | void) | undefined;
3546
+ onRequest: (<T extends Record<string, any>>(context: import('better-auth/client').RequestContext<T>) => Promise<import('better-auth/client').RequestContext | void> | import('better-auth/client').RequestContext | void) | undefined;
3547
+ onResponse: ((context: import('better-auth/client').ResponseContext) => Promise<Response | void | import('better-auth/client').ResponseContext> | Response | import('better-auth/client').ResponseContext | void) | undefined;
1851
3548
  };
1852
3549
  })[];
1853
3550
  priority?: RequestPriority | undefined;
@@ -1867,12 +3564,12 @@ declare const authClient: {
1867
3564
  referrerPolicy?: ReferrerPolicy | undefined;
1868
3565
  signal?: (AbortSignal | null) | undefined;
1869
3566
  window?: null | undefined;
1870
- onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
3567
+ onRetry?: ((response: import('better-auth/client').ResponseContext) => Promise<void> | void) | undefined;
1871
3568
  hookOptions?: {
1872
3569
  cloneResponse?: boolean;
1873
3570
  } | undefined;
1874
3571
  timeout?: number | undefined;
1875
- customFetchImpl: import("better-auth/react").FetchEsque;
3572
+ customFetchImpl: import('better-auth/client').FetchEsque;
1876
3573
  baseURL: string;
1877
3574
  throw?: boolean | undefined;
1878
3575
  auth?: ({
@@ -1892,78 +3589,93 @@ declare const authClient: {
1892
3589
  params?: any;
1893
3590
  duplex?: "full" | "half" | undefined;
1894
3591
  jsonParser: (text: string) => Promise<any> | any;
1895
- retry?: import("better-auth/react").RetryOptions | undefined;
3592
+ retry?: import('better-auth/client').RetryOptions | undefined;
1896
3593
  retryAttempt?: number | undefined;
1897
- output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1898
- errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
3594
+ output?: (import('better-auth/client').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3595
+ errorSchema?: import('better-auth/client').StandardSchemaV1 | undefined;
1899
3596
  disableValidation?: boolean | undefined;
1900
3597
  disableSignal?: boolean | undefined;
1901
3598
  }, unknown, unknown, {}>;
1902
3599
  $store: {
1903
3600
  notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
1904
3601
  listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
1905
- atoms: Record<string, import("better-auth/react").WritableAtom<any>>;
3602
+ atoms: Record<string, import('better-auth/client').WritableAtom<any>>;
1906
3603
  };
1907
3604
  $ERROR_CODES: {
1908
- INVALID_SESSION_TOKEN: import("better-auth").RawError<"INVALID_SESSION_TOKEN">;
3605
+ INVALID_SESSION_TOKEN: import('better-auth').RawError<"INVALID_SESSION_TOKEN">;
3606
+ } & {
3607
+ CHALLENGE_NOT_FOUND: import('better-auth').RawError<"CHALLENGE_NOT_FOUND">;
3608
+ YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import('better-auth').RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
3609
+ FAILED_TO_VERIFY_REGISTRATION: import('better-auth').RawError<"FAILED_TO_VERIFY_REGISTRATION">;
3610
+ PASSKEY_NOT_FOUND: import('better-auth').RawError<"PASSKEY_NOT_FOUND">;
3611
+ AUTHENTICATION_FAILED: import('better-auth').RawError<"AUTHENTICATION_FAILED">;
3612
+ UNABLE_TO_CREATE_SESSION: import('better-auth').RawError<"UNABLE_TO_CREATE_SESSION">;
3613
+ FAILED_TO_UPDATE_PASSKEY: import('better-auth').RawError<"FAILED_TO_UPDATE_PASSKEY">;
3614
+ PREVIOUSLY_REGISTERED: import('better-auth').RawError<"PREVIOUSLY_REGISTERED">;
3615
+ REGISTRATION_CANCELLED: import('better-auth').RawError<"REGISTRATION_CANCELLED">;
3616
+ AUTH_CANCELLED: import('better-auth').RawError<"AUTH_CANCELLED">;
3617
+ UNKNOWN_ERROR: import('better-auth').RawError<"UNKNOWN_ERROR">;
3618
+ SESSION_REQUIRED: import('better-auth').RawError<"SESSION_REQUIRED">;
3619
+ RESOLVE_USER_REQUIRED: import('better-auth').RawError<"RESOLVE_USER_REQUIRED">;
3620
+ RESOLVED_USER_INVALID: import('better-auth').RawError<"RESOLVED_USER_INVALID">;
1909
3621
  } & {
1910
- EMAIL_NOT_VERIFIED: import("better-auth").RawError<"EMAIL_NOT_VERIFIED">;
1911
- UNEXPECTED_ERROR: import("better-auth").RawError<"UNEXPECTED_ERROR">;
1912
- INVALID_USERNAME_OR_PASSWORD: import("better-auth").RawError<"INVALID_USERNAME_OR_PASSWORD">;
1913
- USERNAME_IS_ALREADY_TAKEN: import("better-auth").RawError<"USERNAME_IS_ALREADY_TAKEN">;
1914
- USERNAME_TOO_SHORT: import("better-auth").RawError<"USERNAME_TOO_SHORT">;
1915
- USERNAME_TOO_LONG: import("better-auth").RawError<"USERNAME_TOO_LONG">;
1916
- INVALID_USERNAME: import("better-auth").RawError<"INVALID_USERNAME">;
1917
- INVALID_DISPLAY_USERNAME: import("better-auth").RawError<"INVALID_DISPLAY_USERNAME">;
3622
+ EMAIL_NOT_VERIFIED: import('better-auth').RawError<"EMAIL_NOT_VERIFIED">;
3623
+ UNEXPECTED_ERROR: import('better-auth').RawError<"UNEXPECTED_ERROR">;
3624
+ INVALID_USERNAME_OR_PASSWORD: import('better-auth').RawError<"INVALID_USERNAME_OR_PASSWORD">;
3625
+ USERNAME_IS_ALREADY_TAKEN: import('better-auth').RawError<"USERNAME_IS_ALREADY_TAKEN">;
3626
+ USERNAME_TOO_SHORT: import('better-auth').RawError<"USERNAME_TOO_SHORT">;
3627
+ USERNAME_TOO_LONG: import('better-auth').RawError<"USERNAME_TOO_LONG">;
3628
+ INVALID_USERNAME: import('better-auth').RawError<"INVALID_USERNAME">;
3629
+ INVALID_DISPLAY_USERNAME: import('better-auth').RawError<"INVALID_DISPLAY_USERNAME">;
1918
3630
  } & {
1919
- USER_NOT_FOUND: import("better-auth").RawError<"USER_NOT_FOUND">;
1920
- FAILED_TO_CREATE_USER: import("better-auth").RawError<"FAILED_TO_CREATE_USER">;
1921
- FAILED_TO_CREATE_SESSION: import("better-auth").RawError<"FAILED_TO_CREATE_SESSION">;
1922
- FAILED_TO_UPDATE_USER: import("better-auth").RawError<"FAILED_TO_UPDATE_USER">;
1923
- FAILED_TO_GET_SESSION: import("better-auth").RawError<"FAILED_TO_GET_SESSION">;
1924
- INVALID_PASSWORD: import("better-auth").RawError<"INVALID_PASSWORD">;
1925
- INVALID_EMAIL: import("better-auth").RawError<"INVALID_EMAIL">;
1926
- INVALID_EMAIL_OR_PASSWORD: import("better-auth").RawError<"INVALID_EMAIL_OR_PASSWORD">;
1927
- INVALID_USER: import("better-auth").RawError<"INVALID_USER">;
1928
- SOCIAL_ACCOUNT_ALREADY_LINKED: import("better-auth").RawError<"SOCIAL_ACCOUNT_ALREADY_LINKED">;
1929
- PROVIDER_NOT_FOUND: import("better-auth").RawError<"PROVIDER_NOT_FOUND">;
1930
- INVALID_TOKEN: import("better-auth").RawError<"INVALID_TOKEN">;
1931
- TOKEN_EXPIRED: import("better-auth").RawError<"TOKEN_EXPIRED">;
1932
- ID_TOKEN_NOT_SUPPORTED: import("better-auth").RawError<"ID_TOKEN_NOT_SUPPORTED">;
1933
- FAILED_TO_GET_USER_INFO: import("better-auth").RawError<"FAILED_TO_GET_USER_INFO">;
1934
- USER_EMAIL_NOT_FOUND: import("better-auth").RawError<"USER_EMAIL_NOT_FOUND">;
1935
- EMAIL_NOT_VERIFIED: import("better-auth").RawError<"EMAIL_NOT_VERIFIED">;
1936
- PASSWORD_TOO_SHORT: import("better-auth").RawError<"PASSWORD_TOO_SHORT">;
1937
- PASSWORD_TOO_LONG: import("better-auth").RawError<"PASSWORD_TOO_LONG">;
1938
- USER_ALREADY_EXISTS: import("better-auth").RawError<"USER_ALREADY_EXISTS">;
1939
- USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: import("better-auth").RawError<"USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL">;
1940
- EMAIL_CAN_NOT_BE_UPDATED: import("better-auth").RawError<"EMAIL_CAN_NOT_BE_UPDATED">;
1941
- CREDENTIAL_ACCOUNT_NOT_FOUND: import("better-auth").RawError<"CREDENTIAL_ACCOUNT_NOT_FOUND">;
1942
- ACCOUNT_NOT_FOUND: import("better-auth").RawError<"ACCOUNT_NOT_FOUND">;
1943
- SESSION_EXPIRED: import("better-auth").RawError<"SESSION_EXPIRED">;
1944
- FAILED_TO_UNLINK_LAST_ACCOUNT: import("better-auth").RawError<"FAILED_TO_UNLINK_LAST_ACCOUNT">;
1945
- USER_ALREADY_HAS_PASSWORD: import("better-auth").RawError<"USER_ALREADY_HAS_PASSWORD">;
1946
- CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: import("better-auth").RawError<"CROSS_SITE_NAVIGATION_LOGIN_BLOCKED">;
1947
- VERIFICATION_EMAIL_NOT_ENABLED: import("better-auth").RawError<"VERIFICATION_EMAIL_NOT_ENABLED">;
1948
- EMAIL_ALREADY_VERIFIED: import("better-auth").RawError<"EMAIL_ALREADY_VERIFIED">;
1949
- EMAIL_MISMATCH: import("better-auth").RawError<"EMAIL_MISMATCH">;
1950
- SESSION_NOT_FRESH: import("better-auth").RawError<"SESSION_NOT_FRESH">;
1951
- LINKED_ACCOUNT_ALREADY_EXISTS: import("better-auth").RawError<"LINKED_ACCOUNT_ALREADY_EXISTS">;
1952
- INVALID_ORIGIN: import("better-auth").RawError<"INVALID_ORIGIN">;
1953
- INVALID_CALLBACK_URL: import("better-auth").RawError<"INVALID_CALLBACK_URL">;
1954
- INVALID_REDIRECT_URL: import("better-auth").RawError<"INVALID_REDIRECT_URL">;
1955
- INVALID_ERROR_CALLBACK_URL: import("better-auth").RawError<"INVALID_ERROR_CALLBACK_URL">;
1956
- INVALID_NEW_USER_CALLBACK_URL: import("better-auth").RawError<"INVALID_NEW_USER_CALLBACK_URL">;
1957
- MISSING_OR_NULL_ORIGIN: import("better-auth").RawError<"MISSING_OR_NULL_ORIGIN">;
1958
- CALLBACK_URL_REQUIRED: import("better-auth").RawError<"CALLBACK_URL_REQUIRED">;
1959
- FAILED_TO_CREATE_VERIFICATION: import("better-auth").RawError<"FAILED_TO_CREATE_VERIFICATION">;
1960
- FIELD_NOT_ALLOWED: import("better-auth").RawError<"FIELD_NOT_ALLOWED">;
1961
- ASYNC_VALIDATION_NOT_SUPPORTED: import("better-auth").RawError<"ASYNC_VALIDATION_NOT_SUPPORTED">;
1962
- VALIDATION_ERROR: import("better-auth").RawError<"VALIDATION_ERROR">;
1963
- MISSING_FIELD: import("better-auth").RawError<"MISSING_FIELD">;
1964
- METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED: import("better-auth").RawError<"METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED">;
1965
- BODY_MUST_BE_AN_OBJECT: import("better-auth").RawError<"BODY_MUST_BE_AN_OBJECT">;
1966
- PASSWORD_ALREADY_SET: import("better-auth").RawError<"PASSWORD_ALREADY_SET">;
3631
+ USER_NOT_FOUND: import('better-auth').RawError<"USER_NOT_FOUND">;
3632
+ FAILED_TO_CREATE_USER: import('better-auth').RawError<"FAILED_TO_CREATE_USER">;
3633
+ FAILED_TO_CREATE_SESSION: import('better-auth').RawError<"FAILED_TO_CREATE_SESSION">;
3634
+ FAILED_TO_UPDATE_USER: import('better-auth').RawError<"FAILED_TO_UPDATE_USER">;
3635
+ FAILED_TO_GET_SESSION: import('better-auth').RawError<"FAILED_TO_GET_SESSION">;
3636
+ INVALID_PASSWORD: import('better-auth').RawError<"INVALID_PASSWORD">;
3637
+ INVALID_EMAIL: import('better-auth').RawError<"INVALID_EMAIL">;
3638
+ INVALID_EMAIL_OR_PASSWORD: import('better-auth').RawError<"INVALID_EMAIL_OR_PASSWORD">;
3639
+ INVALID_USER: import('better-auth').RawError<"INVALID_USER">;
3640
+ SOCIAL_ACCOUNT_ALREADY_LINKED: import('better-auth').RawError<"SOCIAL_ACCOUNT_ALREADY_LINKED">;
3641
+ PROVIDER_NOT_FOUND: import('better-auth').RawError<"PROVIDER_NOT_FOUND">;
3642
+ INVALID_TOKEN: import('better-auth').RawError<"INVALID_TOKEN">;
3643
+ TOKEN_EXPIRED: import('better-auth').RawError<"TOKEN_EXPIRED">;
3644
+ ID_TOKEN_NOT_SUPPORTED: import('better-auth').RawError<"ID_TOKEN_NOT_SUPPORTED">;
3645
+ FAILED_TO_GET_USER_INFO: import('better-auth').RawError<"FAILED_TO_GET_USER_INFO">;
3646
+ USER_EMAIL_NOT_FOUND: import('better-auth').RawError<"USER_EMAIL_NOT_FOUND">;
3647
+ EMAIL_NOT_VERIFIED: import('better-auth').RawError<"EMAIL_NOT_VERIFIED">;
3648
+ PASSWORD_TOO_SHORT: import('better-auth').RawError<"PASSWORD_TOO_SHORT">;
3649
+ PASSWORD_TOO_LONG: import('better-auth').RawError<"PASSWORD_TOO_LONG">;
3650
+ USER_ALREADY_EXISTS: import('better-auth').RawError<"USER_ALREADY_EXISTS">;
3651
+ USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: import('better-auth').RawError<"USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL">;
3652
+ EMAIL_CAN_NOT_BE_UPDATED: import('better-auth').RawError<"EMAIL_CAN_NOT_BE_UPDATED">;
3653
+ CREDENTIAL_ACCOUNT_NOT_FOUND: import('better-auth').RawError<"CREDENTIAL_ACCOUNT_NOT_FOUND">;
3654
+ ACCOUNT_NOT_FOUND: import('better-auth').RawError<"ACCOUNT_NOT_FOUND">;
3655
+ SESSION_EXPIRED: import('better-auth').RawError<"SESSION_EXPIRED">;
3656
+ FAILED_TO_UNLINK_LAST_ACCOUNT: import('better-auth').RawError<"FAILED_TO_UNLINK_LAST_ACCOUNT">;
3657
+ USER_ALREADY_HAS_PASSWORD: import('better-auth').RawError<"USER_ALREADY_HAS_PASSWORD">;
3658
+ CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: import('better-auth').RawError<"CROSS_SITE_NAVIGATION_LOGIN_BLOCKED">;
3659
+ VERIFICATION_EMAIL_NOT_ENABLED: import('better-auth').RawError<"VERIFICATION_EMAIL_NOT_ENABLED">;
3660
+ EMAIL_ALREADY_VERIFIED: import('better-auth').RawError<"EMAIL_ALREADY_VERIFIED">;
3661
+ EMAIL_MISMATCH: import('better-auth').RawError<"EMAIL_MISMATCH">;
3662
+ SESSION_NOT_FRESH: import('better-auth').RawError<"SESSION_NOT_FRESH">;
3663
+ LINKED_ACCOUNT_ALREADY_EXISTS: import('better-auth').RawError<"LINKED_ACCOUNT_ALREADY_EXISTS">;
3664
+ INVALID_ORIGIN: import('better-auth').RawError<"INVALID_ORIGIN">;
3665
+ INVALID_CALLBACK_URL: import('better-auth').RawError<"INVALID_CALLBACK_URL">;
3666
+ INVALID_REDIRECT_URL: import('better-auth').RawError<"INVALID_REDIRECT_URL">;
3667
+ INVALID_ERROR_CALLBACK_URL: import('better-auth').RawError<"INVALID_ERROR_CALLBACK_URL">;
3668
+ INVALID_NEW_USER_CALLBACK_URL: import('better-auth').RawError<"INVALID_NEW_USER_CALLBACK_URL">;
3669
+ MISSING_OR_NULL_ORIGIN: import('better-auth').RawError<"MISSING_OR_NULL_ORIGIN">;
3670
+ CALLBACK_URL_REQUIRED: import('better-auth').RawError<"CALLBACK_URL_REQUIRED">;
3671
+ FAILED_TO_CREATE_VERIFICATION: import('better-auth').RawError<"FAILED_TO_CREATE_VERIFICATION">;
3672
+ FIELD_NOT_ALLOWED: import('better-auth').RawError<"FIELD_NOT_ALLOWED">;
3673
+ ASYNC_VALIDATION_NOT_SUPPORTED: import('better-auth').RawError<"ASYNC_VALIDATION_NOT_SUPPORTED">;
3674
+ VALIDATION_ERROR: import('better-auth').RawError<"VALIDATION_ERROR">;
3675
+ MISSING_FIELD: import('better-auth').RawError<"MISSING_FIELD">;
3676
+ METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED: import('better-auth').RawError<"METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED">;
3677
+ BODY_MUST_BE_AN_OBJECT: import('better-auth').RawError<"BODY_MUST_BE_AN_OBJECT">;
3678
+ PASSWORD_ALREADY_SET: import('better-auth').RawError<"PASSWORD_ALREADY_SET">;
1967
3679
  };
1968
3680
  };
1969
3681
  /**