wcz-test 6.13.1 → 6.14.0
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.
- package/dist/FileHooks-41k6-RtZ.js +3262 -0
- package/dist/FileHooks-41k6-RtZ.js.map +1 -0
- package/dist/client.d.ts +49 -55
- package/dist/components.js +3339 -3
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +1008 -1
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +419 -6
- package/dist/index.js.map +1 -1
- package/dist/queries.js +1 -1
- package/dist/vite.js +0 -3
- package/dist/vite.js.map +1 -1
- package/package.json +28 -28
- package/dist/FileHooks-BbjesS5D.js +0 -195
- package/dist/FileHooks-BbjesS5D.js.map +0 -1
package/dist/client.d.ts
CHANGED
|
@@ -6,19 +6,19 @@ import { ClientFetchOption } from 'better-auth';
|
|
|
6
6
|
import { ErrorContext } from '@better-fetch/fetch';
|
|
7
7
|
import { FetchEsque } from '@better-fetch/fetch';
|
|
8
8
|
import { OAuth2UserInfo } from 'better-auth';
|
|
9
|
+
import { Prettify } from 'better-auth/react';
|
|
9
10
|
import { RequestContext } from '@better-fetch/fetch';
|
|
10
11
|
import { ResponseContext } from '@better-fetch/fetch';
|
|
11
12
|
import { RetryOptions } from '@better-fetch/fetch';
|
|
12
13
|
import { SessionQueryParams } from 'better-auth';
|
|
13
14
|
import { StandardSchemaV1 } from '@better-fetch/fetch';
|
|
14
15
|
import { SuccessContext } from '@better-fetch/fetch';
|
|
15
|
-
import { u } from 'node_modules/better-auth/dist/helper-DU33OcfW.d.mts';
|
|
16
16
|
import { WritableAtom } from 'nanostores';
|
|
17
17
|
|
|
18
18
|
export declare const authClient: {
|
|
19
19
|
signIn: {
|
|
20
20
|
social: <FetchOptions extends ClientFetchOption<Partial<{
|
|
21
|
-
provider:
|
|
21
|
+
provider: "line" | (string & {}) | "zoom" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "vercel";
|
|
22
22
|
callbackURL?: string | undefined;
|
|
23
23
|
newUserCallbackURL?: string | undefined;
|
|
24
24
|
errorCallbackURL?: string | undefined;
|
|
@@ -34,8 +34,8 @@ export declare const authClient: {
|
|
|
34
34
|
requestSignUp?: boolean | undefined;
|
|
35
35
|
loginHint?: string | undefined;
|
|
36
36
|
additionalData?: Record<string, any> | undefined;
|
|
37
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
38
|
-
provider:
|
|
37
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: Prettify< {
|
|
38
|
+
provider: "line" | (string & {}) | "zoom" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "vercel";
|
|
39
39
|
callbackURL?: string | undefined;
|
|
40
40
|
newUserCallbackURL?: string | undefined;
|
|
41
41
|
errorCallbackURL?: string | undefined;
|
|
@@ -55,27 +55,27 @@ export declare const authClient: {
|
|
|
55
55
|
fetchOptions?: FetchOptions | undefined;
|
|
56
56
|
}>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<NonNullable<{
|
|
57
57
|
redirect: boolean;
|
|
58
|
+
url: string;
|
|
59
|
+
} | {
|
|
60
|
+
redirect: boolean;
|
|
58
61
|
token: string;
|
|
59
62
|
url: undefined;
|
|
60
63
|
user: {
|
|
61
64
|
id: string;
|
|
62
|
-
email: string;
|
|
63
|
-
name: string;
|
|
64
|
-
image: string | null | undefined;
|
|
65
|
-
emailVerified: boolean;
|
|
66
65
|
createdAt: Date;
|
|
67
66
|
updatedAt: Date;
|
|
67
|
+
email: string;
|
|
68
|
+
emailVerified: boolean;
|
|
69
|
+
name: string;
|
|
70
|
+
image?: string | null | undefined | undefined;
|
|
68
71
|
};
|
|
69
|
-
} | {
|
|
70
|
-
url: string;
|
|
71
|
-
redirect: boolean;
|
|
72
72
|
}>, {
|
|
73
73
|
code?: string | undefined;
|
|
74
74
|
message?: string | undefined;
|
|
75
75
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
76
76
|
};
|
|
77
77
|
} & {
|
|
78
|
-
signOut: <FetchOptions extends ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
78
|
+
signOut: <FetchOptions extends ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: Prettify< {
|
|
79
79
|
query?: Record<string, any> | undefined;
|
|
80
80
|
fetchOptions?: FetchOptions | undefined;
|
|
81
81
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse< {
|
|
@@ -93,7 +93,7 @@ export declare const authClient: {
|
|
|
93
93
|
image?: string | undefined;
|
|
94
94
|
callbackURL?: string | undefined;
|
|
95
95
|
rememberMe?: boolean | undefined;
|
|
96
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
96
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: Prettify< {
|
|
97
97
|
email: string;
|
|
98
98
|
name: string;
|
|
99
99
|
password: string;
|
|
@@ -104,23 +104,23 @@ export declare const authClient: {
|
|
|
104
104
|
token: null;
|
|
105
105
|
user: {
|
|
106
106
|
id: string;
|
|
107
|
-
email: string;
|
|
108
|
-
name: string;
|
|
109
|
-
image: string | null | undefined;
|
|
110
|
-
emailVerified: boolean;
|
|
111
107
|
createdAt: Date;
|
|
112
108
|
updatedAt: Date;
|
|
109
|
+
email: string;
|
|
110
|
+
emailVerified: boolean;
|
|
111
|
+
name: string;
|
|
112
|
+
image?: string | null | undefined | undefined;
|
|
113
113
|
};
|
|
114
114
|
} | {
|
|
115
115
|
token: string;
|
|
116
116
|
user: {
|
|
117
117
|
id: string;
|
|
118
|
-
email: string;
|
|
119
|
-
name: string;
|
|
120
|
-
image: string | null | undefined;
|
|
121
|
-
emailVerified: boolean;
|
|
122
118
|
createdAt: Date;
|
|
123
119
|
updatedAt: Date;
|
|
120
|
+
email: string;
|
|
121
|
+
emailVerified: boolean;
|
|
122
|
+
name: string;
|
|
123
|
+
image?: string | null | undefined | undefined;
|
|
124
124
|
};
|
|
125
125
|
}>, {
|
|
126
126
|
code?: string | undefined;
|
|
@@ -134,7 +134,7 @@ export declare const authClient: {
|
|
|
134
134
|
password: string;
|
|
135
135
|
callbackURL?: string | undefined;
|
|
136
136
|
rememberMe?: boolean | undefined;
|
|
137
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
137
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: Prettify< {
|
|
138
138
|
email: string;
|
|
139
139
|
password: string;
|
|
140
140
|
callbackURL?: string | undefined;
|
|
@@ -144,15 +144,15 @@ export declare const authClient: {
|
|
|
144
144
|
}>, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse< {
|
|
145
145
|
redirect: boolean;
|
|
146
146
|
token: string;
|
|
147
|
-
url
|
|
147
|
+
url?: string | undefined;
|
|
148
148
|
user: {
|
|
149
149
|
id: string;
|
|
150
|
-
email: string;
|
|
151
|
-
name: string;
|
|
152
|
-
image: string | null | undefined;
|
|
153
|
-
emailVerified: boolean;
|
|
154
150
|
createdAt: Date;
|
|
155
151
|
updatedAt: Date;
|
|
152
|
+
email: string;
|
|
153
|
+
emailVerified: boolean;
|
|
154
|
+
name: string;
|
|
155
|
+
image?: string | null | undefined | undefined;
|
|
156
156
|
};
|
|
157
157
|
}, {
|
|
158
158
|
code?: string | undefined;
|
|
@@ -165,7 +165,7 @@ export declare const authClient: {
|
|
|
165
165
|
token?: string | undefined;
|
|
166
166
|
}> & Record<string, any>, Partial<{
|
|
167
167
|
token?: string | undefined;
|
|
168
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
168
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: Prettify< {
|
|
169
169
|
newPassword: string;
|
|
170
170
|
token?: string | undefined;
|
|
171
171
|
} & {
|
|
@@ -180,7 +180,7 @@ export declare const authClient: {
|
|
|
180
180
|
verifyEmail: <FetchOptions extends ClientFetchOption<never, Partial<{
|
|
181
181
|
token: string;
|
|
182
182
|
callbackURL?: string | undefined;
|
|
183
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
183
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: Prettify< {
|
|
184
184
|
query: {
|
|
185
185
|
token: string;
|
|
186
186
|
callbackURL?: string | undefined;
|
|
@@ -196,7 +196,7 @@ export declare const authClient: {
|
|
|
196
196
|
sendVerificationEmail: <FetchOptions extends ClientFetchOption<Partial<{
|
|
197
197
|
email: string;
|
|
198
198
|
callbackURL?: string | undefined;
|
|
199
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
199
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: Prettify< {
|
|
200
200
|
email: string;
|
|
201
201
|
callbackURL?: string | undefined;
|
|
202
202
|
} & {
|
|
@@ -211,7 +211,7 @@ export declare const authClient: {
|
|
|
211
211
|
changeEmail: <FetchOptions extends ClientFetchOption<Partial<{
|
|
212
212
|
newEmail: string;
|
|
213
213
|
callbackURL?: string | undefined;
|
|
214
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
214
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: Prettify< {
|
|
215
215
|
newEmail: string;
|
|
216
216
|
callbackURL?: string | undefined;
|
|
217
217
|
} & {
|
|
@@ -227,7 +227,7 @@ export declare const authClient: {
|
|
|
227
227
|
newPassword: string;
|
|
228
228
|
currentPassword: string;
|
|
229
229
|
revokeOtherSessions?: boolean | undefined;
|
|
230
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
230
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: Prettify< {
|
|
231
231
|
newPassword: string;
|
|
232
232
|
currentPassword: string;
|
|
233
233
|
revokeOtherSessions?: boolean | undefined;
|
|
@@ -252,7 +252,7 @@ export declare const authClient: {
|
|
|
252
252
|
updateUser: <FetchOptions extends ClientFetchOption<Partial<Partial<{}> & {
|
|
253
253
|
name?: string | undefined;
|
|
254
254
|
image?: string | undefined;
|
|
255
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
255
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: Prettify< {
|
|
256
256
|
image?: (string | null) | undefined;
|
|
257
257
|
name?: string | undefined;
|
|
258
258
|
fetchOptions?: FetchOptions | undefined;
|
|
@@ -267,7 +267,7 @@ export declare const authClient: {
|
|
|
267
267
|
callbackURL?: string | undefined;
|
|
268
268
|
password?: string | undefined;
|
|
269
269
|
token?: string | undefined;
|
|
270
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
270
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: Prettify< {
|
|
271
271
|
callbackURL?: string | undefined;
|
|
272
272
|
password?: string | undefined;
|
|
273
273
|
token?: string | undefined;
|
|
@@ -284,7 +284,7 @@ export declare const authClient: {
|
|
|
284
284
|
requestPasswordReset: <FetchOptions extends ClientFetchOption<Partial<{
|
|
285
285
|
email: string;
|
|
286
286
|
redirectTo?: string | undefined;
|
|
287
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
287
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: Prettify< {
|
|
288
288
|
email: string;
|
|
289
289
|
redirectTo?: string | undefined;
|
|
290
290
|
} & {
|
|
@@ -302,7 +302,7 @@ export declare const authClient: {
|
|
|
302
302
|
callbackURL: string;
|
|
303
303
|
}> & Record<string, any>, {
|
|
304
304
|
token: string;
|
|
305
|
-
}>>(data_0:
|
|
305
|
+
}>>(data_0: Prettify< {
|
|
306
306
|
query: {
|
|
307
307
|
callbackURL: string;
|
|
308
308
|
};
|
|
@@ -313,10 +313,10 @@ export declare const authClient: {
|
|
|
313
313
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
314
314
|
};
|
|
315
315
|
} & {
|
|
316
|
-
listSessions: <FetchOptions extends ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
316
|
+
listSessions: <FetchOptions extends ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: Prettify< {
|
|
317
317
|
query?: Record<string, any> | undefined;
|
|
318
318
|
fetchOptions?: FetchOptions | undefined;
|
|
319
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<
|
|
319
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse<Prettify< {
|
|
320
320
|
id: string;
|
|
321
321
|
createdAt: Date;
|
|
322
322
|
updatedAt: Date;
|
|
@@ -332,7 +332,7 @@ export declare const authClient: {
|
|
|
332
332
|
} & {
|
|
333
333
|
revokeSession: <FetchOptions extends ClientFetchOption<Partial<{
|
|
334
334
|
token: string;
|
|
335
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
335
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: Prettify< {
|
|
336
336
|
token: string;
|
|
337
337
|
} & {
|
|
338
338
|
fetchOptions?: FetchOptions | undefined;
|
|
@@ -343,7 +343,7 @@ export declare const authClient: {
|
|
|
343
343
|
message?: string | undefined;
|
|
344
344
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
345
345
|
} & {
|
|
346
|
-
revokeSessions: <FetchOptions extends ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
346
|
+
revokeSessions: <FetchOptions extends ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: Prettify< {
|
|
347
347
|
query?: Record<string, any> | undefined;
|
|
348
348
|
fetchOptions?: FetchOptions | undefined;
|
|
349
349
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse< {
|
|
@@ -353,7 +353,7 @@ export declare const authClient: {
|
|
|
353
353
|
message?: string | undefined;
|
|
354
354
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
355
355
|
} & {
|
|
356
|
-
revokeOtherSessions: <FetchOptions extends ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
356
|
+
revokeOtherSessions: <FetchOptions extends ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: Prettify< {
|
|
357
357
|
query?: Record<string, any> | undefined;
|
|
358
358
|
fetchOptions?: FetchOptions | undefined;
|
|
359
359
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse< {
|
|
@@ -378,7 +378,7 @@ export declare const authClient: {
|
|
|
378
378
|
errorCallbackURL?: string | undefined;
|
|
379
379
|
disableRedirect?: boolean | undefined;
|
|
380
380
|
additionalData?: Record<string, any> | undefined;
|
|
381
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
381
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: Prettify< {
|
|
382
382
|
provider: unknown;
|
|
383
383
|
callbackURL?: string | undefined;
|
|
384
384
|
idToken?: {
|
|
@@ -403,7 +403,7 @@ export declare const authClient: {
|
|
|
403
403
|
message?: string | undefined;
|
|
404
404
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
405
405
|
} & {
|
|
406
|
-
listAccounts: <FetchOptions extends ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
406
|
+
listAccounts: <FetchOptions extends ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: Prettify< {
|
|
407
407
|
query?: Record<string, any> | undefined;
|
|
408
408
|
fetchOptions?: FetchOptions | undefined;
|
|
409
409
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<BetterFetchResponse< {
|
|
@@ -423,7 +423,7 @@ export declare const authClient: {
|
|
|
423
423
|
callback: <FetchOptions extends ClientFetchOption<never, Partial<{
|
|
424
424
|
token: string;
|
|
425
425
|
callbackURL?: string | undefined;
|
|
426
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
426
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: Prettify< {
|
|
427
427
|
query: {
|
|
428
428
|
token: string;
|
|
429
429
|
callbackURL?: string | undefined;
|
|
@@ -441,7 +441,7 @@ export declare const authClient: {
|
|
|
441
441
|
unlinkAccount: <FetchOptions extends ClientFetchOption<Partial<{
|
|
442
442
|
providerId: string;
|
|
443
443
|
accountId?: string | undefined;
|
|
444
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
444
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: Prettify< {
|
|
445
445
|
providerId: string;
|
|
446
446
|
accountId?: string | undefined;
|
|
447
447
|
} & {
|
|
@@ -457,7 +457,7 @@ export declare const authClient: {
|
|
|
457
457
|
providerId: string;
|
|
458
458
|
accountId?: string | undefined;
|
|
459
459
|
userId?: string | undefined;
|
|
460
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
460
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: Prettify< {
|
|
461
461
|
providerId: string;
|
|
462
462
|
accountId?: string | undefined;
|
|
463
463
|
userId?: string | undefined;
|
|
@@ -481,7 +481,7 @@ export declare const authClient: {
|
|
|
481
481
|
providerId: string;
|
|
482
482
|
accountId?: string | undefined;
|
|
483
483
|
userId?: string | undefined;
|
|
484
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
484
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: Prettify< {
|
|
485
485
|
providerId: string;
|
|
486
486
|
accountId?: string | undefined;
|
|
487
487
|
userId?: string | undefined;
|
|
@@ -499,7 +499,7 @@ export declare const authClient: {
|
|
|
499
499
|
} & {
|
|
500
500
|
accountInfo: <FetchOptions extends ClientFetchOption<never, Partial<{
|
|
501
501
|
accountId?: string | undefined;
|
|
502
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
502
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: Prettify< {
|
|
503
503
|
query?: {
|
|
504
504
|
accountId?: string | undefined;
|
|
505
505
|
} | undefined;
|
|
@@ -515,7 +515,7 @@ export declare const authClient: {
|
|
|
515
515
|
getSession: <FetchOptions extends ClientFetchOption<never, Partial<{
|
|
516
516
|
disableCookieCache?: unknown;
|
|
517
517
|
disableRefresh?: unknown;
|
|
518
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
518
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: Prettify< {
|
|
519
519
|
query?: {
|
|
520
520
|
disableCookieCache?: unknown;
|
|
521
521
|
disableRefresh?: unknown;
|
|
@@ -609,12 +609,6 @@ export declare const authClient: {
|
|
|
609
609
|
id: string;
|
|
610
610
|
name: string;
|
|
611
611
|
hooks: {
|
|
612
|
-
onRequest<T extends Record<string, any>>(context: RequestContext<T>): void;
|
|
613
|
-
};
|
|
614
|
-
} | {
|
|
615
|
-
id: string;
|
|
616
|
-
name: string;
|
|
617
|
-
hooks: {
|
|
618
612
|
onSuccess: ((context: SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
619
613
|
onError: ((context: ErrorContext) => Promise<void> | void) | undefined;
|
|
620
614
|
onRequest: (<T extends Record<string, any>>(context: RequestContext<T>) => Promise<RequestContext | void> | RequestContext | void) | undefined;
|