@nextsparkjs/core 0.1.0-beta.184 → 0.1.0-beta.185

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