@inflector/aura 0.1.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/auth.d.ts ADDED
@@ -0,0 +1,1232 @@
1
+ export declare const AuraAuth: (url: string, workspace: string) => {
2
+ Logout: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
3
+ query?: Record<string, any> | undefined;
4
+ fetchOptions?: FetchOptions | undefined;
5
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
6
+ success: boolean;
7
+ }, {
8
+ code?: string | undefined;
9
+ message?: string | undefined;
10
+ }, FetchOptions["throw"] extends true ? true : false>>;
11
+ Email: {
12
+ SignUp: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
13
+ name: string;
14
+ email: string;
15
+ password: string;
16
+ image?: string | undefined;
17
+ callbackURL?: string | undefined;
18
+ rememberMe?: boolean | undefined;
19
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
20
+ email: string;
21
+ name: string;
22
+ password: string;
23
+ image?: string | undefined;
24
+ callbackURL?: string | undefined;
25
+ fetchOptions?: FetchOptions | undefined;
26
+ } & {} & {}>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<NonNullable<{
27
+ token: null;
28
+ user: {
29
+ id: string;
30
+ createdAt: Date;
31
+ updatedAt: Date;
32
+ email: string;
33
+ emailVerified: boolean;
34
+ name: string;
35
+ image?: string | null | undefined | undefined;
36
+ };
37
+ } | {
38
+ token: string;
39
+ user: {
40
+ id: string;
41
+ createdAt: Date;
42
+ updatedAt: Date;
43
+ email: string;
44
+ emailVerified: boolean;
45
+ name: string;
46
+ image?: string | null | undefined | undefined;
47
+ };
48
+ }>, {
49
+ code?: string | undefined;
50
+ message?: string | undefined;
51
+ }, FetchOptions["throw"] extends true ? true : false>>;
52
+ Login: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
53
+ email: string;
54
+ password: string;
55
+ callbackURL?: string | undefined;
56
+ rememberMe?: boolean | undefined;
57
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
58
+ email: string;
59
+ password: string;
60
+ callbackURL?: string | undefined;
61
+ rememberMe?: boolean | undefined;
62
+ } & {
63
+ fetchOptions?: FetchOptions | undefined;
64
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
65
+ redirect: boolean;
66
+ token: string;
67
+ url?: string | undefined;
68
+ user: {
69
+ id: string;
70
+ createdAt: Date;
71
+ updatedAt: Date;
72
+ email: string;
73
+ emailVerified: boolean;
74
+ name: string;
75
+ image?: string | null | undefined | undefined;
76
+ };
77
+ }, {
78
+ code?: string | undefined;
79
+ message?: string | undefined;
80
+ }, FetchOptions["throw"] extends true ? true : false>>;
81
+ };
82
+ Oauth: {
83
+ Google: (data?: Omit<import("better-auth").Prettify<{
84
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
85
+ callbackURL?: string | undefined;
86
+ newUserCallbackURL?: string | undefined;
87
+ errorCallbackURL?: string | undefined;
88
+ disableRedirect?: boolean | undefined;
89
+ idToken?: {
90
+ token: string;
91
+ nonce?: string | undefined;
92
+ accessToken?: string | undefined;
93
+ refreshToken?: string | undefined;
94
+ expiresAt?: number | undefined;
95
+ } | undefined;
96
+ scopes?: string[] | undefined;
97
+ requestSignUp?: boolean | undefined;
98
+ loginHint?: string | undefined;
99
+ additionalData?: Record<string, any> | undefined;
100
+ } & {
101
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
102
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
103
+ callbackURL?: string | undefined;
104
+ newUserCallbackURL?: string | undefined;
105
+ errorCallbackURL?: string | undefined;
106
+ disableRedirect?: boolean | undefined;
107
+ idToken?: {
108
+ token: string;
109
+ nonce?: string | undefined;
110
+ accessToken?: string | undefined;
111
+ refreshToken?: string | undefined;
112
+ expiresAt?: number | undefined;
113
+ } | undefined;
114
+ scopes?: string[] | undefined;
115
+ requestSignUp?: boolean | undefined;
116
+ loginHint?: string | undefined;
117
+ additionalData?: Record<string, any> | undefined;
118
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
119
+ }>, "provider">) => Promise<{
120
+ data: NonNullable<{
121
+ redirect: boolean;
122
+ url: string;
123
+ } | {
124
+ redirect: boolean;
125
+ token: string;
126
+ url: undefined;
127
+ user: {
128
+ id: string;
129
+ createdAt: Date;
130
+ updatedAt: Date;
131
+ email: string;
132
+ emailVerified: boolean;
133
+ name: string;
134
+ image?: string | null | undefined | undefined;
135
+ };
136
+ }>;
137
+ error: null;
138
+ } | {
139
+ data: null;
140
+ error: {
141
+ code?: string | undefined | undefined;
142
+ message?: string | undefined | undefined;
143
+ status: number;
144
+ statusText: string;
145
+ };
146
+ }>;
147
+ Apple: (data?: Omit<import("better-auth").Prettify<{
148
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
149
+ callbackURL?: string | undefined;
150
+ newUserCallbackURL?: string | undefined;
151
+ errorCallbackURL?: string | undefined;
152
+ disableRedirect?: boolean | undefined;
153
+ idToken?: {
154
+ token: string;
155
+ nonce?: string | undefined;
156
+ accessToken?: string | undefined;
157
+ refreshToken?: string | undefined;
158
+ expiresAt?: number | undefined;
159
+ } | undefined;
160
+ scopes?: string[] | undefined;
161
+ requestSignUp?: boolean | undefined;
162
+ loginHint?: string | undefined;
163
+ additionalData?: Record<string, any> | undefined;
164
+ } & {
165
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
166
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
167
+ callbackURL?: string | undefined;
168
+ newUserCallbackURL?: string | undefined;
169
+ errorCallbackURL?: string | undefined;
170
+ disableRedirect?: boolean | undefined;
171
+ idToken?: {
172
+ token: string;
173
+ nonce?: string | undefined;
174
+ accessToken?: string | undefined;
175
+ refreshToken?: string | undefined;
176
+ expiresAt?: number | undefined;
177
+ } | undefined;
178
+ scopes?: string[] | undefined;
179
+ requestSignUp?: boolean | undefined;
180
+ loginHint?: string | undefined;
181
+ additionalData?: Record<string, any> | undefined;
182
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
183
+ }>, "provider">) => Promise<{
184
+ data: NonNullable<{
185
+ redirect: boolean;
186
+ url: string;
187
+ } | {
188
+ redirect: boolean;
189
+ token: string;
190
+ url: undefined;
191
+ user: {
192
+ id: string;
193
+ createdAt: Date;
194
+ updatedAt: Date;
195
+ email: string;
196
+ emailVerified: boolean;
197
+ name: string;
198
+ image?: string | null | undefined | undefined;
199
+ };
200
+ }>;
201
+ error: null;
202
+ } | {
203
+ data: null;
204
+ error: {
205
+ code?: string | undefined | undefined;
206
+ message?: string | undefined | undefined;
207
+ status: number;
208
+ statusText: string;
209
+ };
210
+ }>;
211
+ Discord: (data?: Omit<import("better-auth").Prettify<{
212
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
213
+ callbackURL?: string | undefined;
214
+ newUserCallbackURL?: string | undefined;
215
+ errorCallbackURL?: string | undefined;
216
+ disableRedirect?: boolean | undefined;
217
+ idToken?: {
218
+ token: string;
219
+ nonce?: string | undefined;
220
+ accessToken?: string | undefined;
221
+ refreshToken?: string | undefined;
222
+ expiresAt?: number | undefined;
223
+ } | undefined;
224
+ scopes?: string[] | undefined;
225
+ requestSignUp?: boolean | undefined;
226
+ loginHint?: string | undefined;
227
+ additionalData?: Record<string, any> | undefined;
228
+ } & {
229
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
230
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
231
+ callbackURL?: string | undefined;
232
+ newUserCallbackURL?: string | undefined;
233
+ errorCallbackURL?: string | undefined;
234
+ disableRedirect?: boolean | undefined;
235
+ idToken?: {
236
+ token: string;
237
+ nonce?: string | undefined;
238
+ accessToken?: string | undefined;
239
+ refreshToken?: string | undefined;
240
+ expiresAt?: number | undefined;
241
+ } | undefined;
242
+ scopes?: string[] | undefined;
243
+ requestSignUp?: boolean | undefined;
244
+ loginHint?: string | undefined;
245
+ additionalData?: Record<string, any> | undefined;
246
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
247
+ }>, "provider">) => Promise<{
248
+ data: NonNullable<{
249
+ redirect: boolean;
250
+ url: string;
251
+ } | {
252
+ redirect: boolean;
253
+ token: string;
254
+ url: undefined;
255
+ user: {
256
+ id: string;
257
+ createdAt: Date;
258
+ updatedAt: Date;
259
+ email: string;
260
+ emailVerified: boolean;
261
+ name: string;
262
+ image?: string | null | undefined | undefined;
263
+ };
264
+ }>;
265
+ error: null;
266
+ } | {
267
+ data: null;
268
+ error: {
269
+ code?: string | undefined | undefined;
270
+ message?: string | undefined | undefined;
271
+ status: number;
272
+ statusText: string;
273
+ };
274
+ }>;
275
+ Facebook: (data?: Omit<import("better-auth").Prettify<{
276
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
277
+ callbackURL?: string | undefined;
278
+ newUserCallbackURL?: string | undefined;
279
+ errorCallbackURL?: string | undefined;
280
+ disableRedirect?: boolean | undefined;
281
+ idToken?: {
282
+ token: string;
283
+ nonce?: string | undefined;
284
+ accessToken?: string | undefined;
285
+ refreshToken?: string | undefined;
286
+ expiresAt?: number | undefined;
287
+ } | undefined;
288
+ scopes?: string[] | undefined;
289
+ requestSignUp?: boolean | undefined;
290
+ loginHint?: string | undefined;
291
+ additionalData?: Record<string, any> | undefined;
292
+ } & {
293
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
294
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
295
+ callbackURL?: string | undefined;
296
+ newUserCallbackURL?: string | undefined;
297
+ errorCallbackURL?: string | undefined;
298
+ disableRedirect?: boolean | undefined;
299
+ idToken?: {
300
+ token: string;
301
+ nonce?: string | undefined;
302
+ accessToken?: string | undefined;
303
+ refreshToken?: string | undefined;
304
+ expiresAt?: number | undefined;
305
+ } | undefined;
306
+ scopes?: string[] | undefined;
307
+ requestSignUp?: boolean | undefined;
308
+ loginHint?: string | undefined;
309
+ additionalData?: Record<string, any> | undefined;
310
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
311
+ }>, "provider">) => Promise<{
312
+ data: NonNullable<{
313
+ redirect: boolean;
314
+ url: string;
315
+ } | {
316
+ redirect: boolean;
317
+ token: string;
318
+ url: undefined;
319
+ user: {
320
+ id: string;
321
+ createdAt: Date;
322
+ updatedAt: Date;
323
+ email: string;
324
+ emailVerified: boolean;
325
+ name: string;
326
+ image?: string | null | undefined | undefined;
327
+ };
328
+ }>;
329
+ error: null;
330
+ } | {
331
+ data: null;
332
+ error: {
333
+ code?: string | undefined | undefined;
334
+ message?: string | undefined | undefined;
335
+ status: number;
336
+ statusText: string;
337
+ };
338
+ }>;
339
+ Github: (data?: Omit<import("better-auth").Prettify<{
340
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
341
+ callbackURL?: string | undefined;
342
+ newUserCallbackURL?: string | undefined;
343
+ errorCallbackURL?: string | undefined;
344
+ disableRedirect?: boolean | undefined;
345
+ idToken?: {
346
+ token: string;
347
+ nonce?: string | undefined;
348
+ accessToken?: string | undefined;
349
+ refreshToken?: string | undefined;
350
+ expiresAt?: number | undefined;
351
+ } | undefined;
352
+ scopes?: string[] | undefined;
353
+ requestSignUp?: boolean | undefined;
354
+ loginHint?: string | undefined;
355
+ additionalData?: Record<string, any> | undefined;
356
+ } & {
357
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
358
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
359
+ callbackURL?: string | undefined;
360
+ newUserCallbackURL?: string | undefined;
361
+ errorCallbackURL?: string | undefined;
362
+ disableRedirect?: boolean | undefined;
363
+ idToken?: {
364
+ token: string;
365
+ nonce?: string | undefined;
366
+ accessToken?: string | undefined;
367
+ refreshToken?: string | undefined;
368
+ expiresAt?: number | undefined;
369
+ } | undefined;
370
+ scopes?: string[] | undefined;
371
+ requestSignUp?: boolean | undefined;
372
+ loginHint?: string | undefined;
373
+ additionalData?: Record<string, any> | undefined;
374
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
375
+ }>, "provider">) => Promise<{
376
+ data: NonNullable<{
377
+ redirect: boolean;
378
+ url: string;
379
+ } | {
380
+ redirect: boolean;
381
+ token: string;
382
+ url: undefined;
383
+ user: {
384
+ id: string;
385
+ createdAt: Date;
386
+ updatedAt: Date;
387
+ email: string;
388
+ emailVerified: boolean;
389
+ name: string;
390
+ image?: string | null | undefined | undefined;
391
+ };
392
+ }>;
393
+ error: null;
394
+ } | {
395
+ data: null;
396
+ error: {
397
+ code?: string | undefined | undefined;
398
+ message?: string | undefined | undefined;
399
+ status: number;
400
+ statusText: string;
401
+ };
402
+ }>;
403
+ Gitlab: (data?: Omit<import("better-auth").Prettify<{
404
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
405
+ callbackURL?: string | undefined;
406
+ newUserCallbackURL?: string | undefined;
407
+ errorCallbackURL?: string | undefined;
408
+ disableRedirect?: boolean | undefined;
409
+ idToken?: {
410
+ token: string;
411
+ nonce?: string | undefined;
412
+ accessToken?: string | undefined;
413
+ refreshToken?: string | undefined;
414
+ expiresAt?: number | undefined;
415
+ } | undefined;
416
+ scopes?: string[] | undefined;
417
+ requestSignUp?: boolean | undefined;
418
+ loginHint?: string | undefined;
419
+ additionalData?: Record<string, any> | undefined;
420
+ } & {
421
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
422
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
423
+ callbackURL?: string | undefined;
424
+ newUserCallbackURL?: string | undefined;
425
+ errorCallbackURL?: string | undefined;
426
+ disableRedirect?: boolean | undefined;
427
+ idToken?: {
428
+ token: string;
429
+ nonce?: string | undefined;
430
+ accessToken?: string | undefined;
431
+ refreshToken?: string | undefined;
432
+ expiresAt?: number | undefined;
433
+ } | undefined;
434
+ scopes?: string[] | undefined;
435
+ requestSignUp?: boolean | undefined;
436
+ loginHint?: string | undefined;
437
+ additionalData?: Record<string, any> | undefined;
438
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
439
+ }>, "provider">) => Promise<{
440
+ data: NonNullable<{
441
+ redirect: boolean;
442
+ url: string;
443
+ } | {
444
+ redirect: boolean;
445
+ token: string;
446
+ url: undefined;
447
+ user: {
448
+ id: string;
449
+ createdAt: Date;
450
+ updatedAt: Date;
451
+ email: string;
452
+ emailVerified: boolean;
453
+ name: string;
454
+ image?: string | null | undefined | undefined;
455
+ };
456
+ }>;
457
+ error: null;
458
+ } | {
459
+ data: null;
460
+ error: {
461
+ code?: string | undefined | undefined;
462
+ message?: string | undefined | undefined;
463
+ status: number;
464
+ statusText: string;
465
+ };
466
+ }>;
467
+ HuggingFace: (data?: Omit<import("better-auth").Prettify<{
468
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
469
+ callbackURL?: string | undefined;
470
+ newUserCallbackURL?: string | undefined;
471
+ errorCallbackURL?: string | undefined;
472
+ disableRedirect?: boolean | undefined;
473
+ idToken?: {
474
+ token: string;
475
+ nonce?: string | undefined;
476
+ accessToken?: string | undefined;
477
+ refreshToken?: string | undefined;
478
+ expiresAt?: number | undefined;
479
+ } | undefined;
480
+ scopes?: string[] | undefined;
481
+ requestSignUp?: boolean | undefined;
482
+ loginHint?: string | undefined;
483
+ additionalData?: Record<string, any> | undefined;
484
+ } & {
485
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
486
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
487
+ callbackURL?: string | undefined;
488
+ newUserCallbackURL?: string | undefined;
489
+ errorCallbackURL?: string | undefined;
490
+ disableRedirect?: boolean | undefined;
491
+ idToken?: {
492
+ token: string;
493
+ nonce?: string | undefined;
494
+ accessToken?: string | undefined;
495
+ refreshToken?: string | undefined;
496
+ expiresAt?: number | undefined;
497
+ } | undefined;
498
+ scopes?: string[] | undefined;
499
+ requestSignUp?: boolean | undefined;
500
+ loginHint?: string | undefined;
501
+ additionalData?: Record<string, any> | undefined;
502
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
503
+ }>, "provider">) => Promise<{
504
+ data: NonNullable<{
505
+ redirect: boolean;
506
+ url: string;
507
+ } | {
508
+ redirect: boolean;
509
+ token: string;
510
+ url: undefined;
511
+ user: {
512
+ id: string;
513
+ createdAt: Date;
514
+ updatedAt: Date;
515
+ email: string;
516
+ emailVerified: boolean;
517
+ name: string;
518
+ image?: string | null | undefined | undefined;
519
+ };
520
+ }>;
521
+ error: null;
522
+ } | {
523
+ data: null;
524
+ error: {
525
+ code?: string | undefined | undefined;
526
+ message?: string | undefined | undefined;
527
+ status: number;
528
+ statusText: string;
529
+ };
530
+ }>;
531
+ Linkedin: (data?: Omit<import("better-auth").Prettify<{
532
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
533
+ callbackURL?: string | undefined;
534
+ newUserCallbackURL?: string | undefined;
535
+ errorCallbackURL?: string | undefined;
536
+ disableRedirect?: boolean | undefined;
537
+ idToken?: {
538
+ token: string;
539
+ nonce?: string | undefined;
540
+ accessToken?: string | undefined;
541
+ refreshToken?: string | undefined;
542
+ expiresAt?: number | undefined;
543
+ } | undefined;
544
+ scopes?: string[] | undefined;
545
+ requestSignUp?: boolean | undefined;
546
+ loginHint?: string | undefined;
547
+ additionalData?: Record<string, any> | undefined;
548
+ } & {
549
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
550
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
551
+ callbackURL?: string | undefined;
552
+ newUserCallbackURL?: string | undefined;
553
+ errorCallbackURL?: string | undefined;
554
+ disableRedirect?: boolean | undefined;
555
+ idToken?: {
556
+ token: string;
557
+ nonce?: string | undefined;
558
+ accessToken?: string | undefined;
559
+ refreshToken?: string | undefined;
560
+ expiresAt?: number | undefined;
561
+ } | undefined;
562
+ scopes?: string[] | undefined;
563
+ requestSignUp?: boolean | undefined;
564
+ loginHint?: string | undefined;
565
+ additionalData?: Record<string, any> | undefined;
566
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
567
+ }>, "provider">) => Promise<{
568
+ data: NonNullable<{
569
+ redirect: boolean;
570
+ url: string;
571
+ } | {
572
+ redirect: boolean;
573
+ token: string;
574
+ url: undefined;
575
+ user: {
576
+ id: string;
577
+ createdAt: Date;
578
+ updatedAt: Date;
579
+ email: string;
580
+ emailVerified: boolean;
581
+ name: string;
582
+ image?: string | null | undefined | undefined;
583
+ };
584
+ }>;
585
+ error: null;
586
+ } | {
587
+ data: null;
588
+ error: {
589
+ code?: string | undefined | undefined;
590
+ message?: string | undefined | undefined;
591
+ status: number;
592
+ statusText: string;
593
+ };
594
+ }>;
595
+ Microsoft: (data?: Omit<import("better-auth").Prettify<{
596
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
597
+ callbackURL?: string | undefined;
598
+ newUserCallbackURL?: string | undefined;
599
+ errorCallbackURL?: string | undefined;
600
+ disableRedirect?: boolean | undefined;
601
+ idToken?: {
602
+ token: string;
603
+ nonce?: string | undefined;
604
+ accessToken?: string | undefined;
605
+ refreshToken?: string | undefined;
606
+ expiresAt?: number | undefined;
607
+ } | undefined;
608
+ scopes?: string[] | undefined;
609
+ requestSignUp?: boolean | undefined;
610
+ loginHint?: string | undefined;
611
+ additionalData?: Record<string, any> | undefined;
612
+ } & {
613
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
614
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
615
+ callbackURL?: string | undefined;
616
+ newUserCallbackURL?: string | undefined;
617
+ errorCallbackURL?: string | undefined;
618
+ disableRedirect?: boolean | undefined;
619
+ idToken?: {
620
+ token: string;
621
+ nonce?: string | undefined;
622
+ accessToken?: string | undefined;
623
+ refreshToken?: string | undefined;
624
+ expiresAt?: number | undefined;
625
+ } | undefined;
626
+ scopes?: string[] | undefined;
627
+ requestSignUp?: boolean | undefined;
628
+ loginHint?: string | undefined;
629
+ additionalData?: Record<string, any> | undefined;
630
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
631
+ }>, "provider">) => Promise<{
632
+ data: NonNullable<{
633
+ redirect: boolean;
634
+ url: string;
635
+ } | {
636
+ redirect: boolean;
637
+ token: string;
638
+ url: undefined;
639
+ user: {
640
+ id: string;
641
+ createdAt: Date;
642
+ updatedAt: Date;
643
+ email: string;
644
+ emailVerified: boolean;
645
+ name: string;
646
+ image?: string | null | undefined | undefined;
647
+ };
648
+ }>;
649
+ error: null;
650
+ } | {
651
+ data: null;
652
+ error: {
653
+ code?: string | undefined | undefined;
654
+ message?: string | undefined | undefined;
655
+ status: number;
656
+ statusText: string;
657
+ };
658
+ }>;
659
+ Redit: (data?: Omit<import("better-auth").Prettify<{
660
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
661
+ callbackURL?: string | undefined;
662
+ newUserCallbackURL?: string | undefined;
663
+ errorCallbackURL?: string | undefined;
664
+ disableRedirect?: boolean | undefined;
665
+ idToken?: {
666
+ token: string;
667
+ nonce?: string | undefined;
668
+ accessToken?: string | undefined;
669
+ refreshToken?: string | undefined;
670
+ expiresAt?: number | undefined;
671
+ } | undefined;
672
+ scopes?: string[] | undefined;
673
+ requestSignUp?: boolean | undefined;
674
+ loginHint?: string | undefined;
675
+ additionalData?: Record<string, any> | undefined;
676
+ } & {
677
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
678
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
679
+ callbackURL?: string | undefined;
680
+ newUserCallbackURL?: string | undefined;
681
+ errorCallbackURL?: string | undefined;
682
+ disableRedirect?: boolean | undefined;
683
+ idToken?: {
684
+ token: string;
685
+ nonce?: string | undefined;
686
+ accessToken?: string | undefined;
687
+ refreshToken?: string | undefined;
688
+ expiresAt?: number | undefined;
689
+ } | undefined;
690
+ scopes?: string[] | undefined;
691
+ requestSignUp?: boolean | undefined;
692
+ loginHint?: string | undefined;
693
+ additionalData?: Record<string, any> | undefined;
694
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
695
+ }>, "provider">) => Promise<{
696
+ data: NonNullable<{
697
+ redirect: boolean;
698
+ url: string;
699
+ } | {
700
+ redirect: boolean;
701
+ token: string;
702
+ url: undefined;
703
+ user: {
704
+ id: string;
705
+ createdAt: Date;
706
+ updatedAt: Date;
707
+ email: string;
708
+ emailVerified: boolean;
709
+ name: string;
710
+ image?: string | null | undefined | undefined;
711
+ };
712
+ }>;
713
+ error: null;
714
+ } | {
715
+ data: null;
716
+ error: {
717
+ code?: string | undefined | undefined;
718
+ message?: string | undefined | undefined;
719
+ status: number;
720
+ statusText: string;
721
+ };
722
+ }>;
723
+ Polar: (data?: Omit<import("better-auth").Prettify<{
724
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
725
+ callbackURL?: string | undefined;
726
+ newUserCallbackURL?: string | undefined;
727
+ errorCallbackURL?: string | undefined;
728
+ disableRedirect?: boolean | undefined;
729
+ idToken?: {
730
+ token: string;
731
+ nonce?: string | undefined;
732
+ accessToken?: string | undefined;
733
+ refreshToken?: string | undefined;
734
+ expiresAt?: number | undefined;
735
+ } | undefined;
736
+ scopes?: string[] | undefined;
737
+ requestSignUp?: boolean | undefined;
738
+ loginHint?: string | undefined;
739
+ additionalData?: Record<string, any> | undefined;
740
+ } & {
741
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
742
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
743
+ callbackURL?: string | undefined;
744
+ newUserCallbackURL?: string | undefined;
745
+ errorCallbackURL?: string | undefined;
746
+ disableRedirect?: boolean | undefined;
747
+ idToken?: {
748
+ token: string;
749
+ nonce?: string | undefined;
750
+ accessToken?: string | undefined;
751
+ refreshToken?: string | undefined;
752
+ expiresAt?: number | undefined;
753
+ } | undefined;
754
+ scopes?: string[] | undefined;
755
+ requestSignUp?: boolean | undefined;
756
+ loginHint?: string | undefined;
757
+ additionalData?: Record<string, any> | undefined;
758
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
759
+ }>, "provider">) => Promise<{
760
+ data: NonNullable<{
761
+ redirect: boolean;
762
+ url: string;
763
+ } | {
764
+ redirect: boolean;
765
+ token: string;
766
+ url: undefined;
767
+ user: {
768
+ id: string;
769
+ createdAt: Date;
770
+ updatedAt: Date;
771
+ email: string;
772
+ emailVerified: boolean;
773
+ name: string;
774
+ image?: string | null | undefined | undefined;
775
+ };
776
+ }>;
777
+ error: null;
778
+ } | {
779
+ data: null;
780
+ error: {
781
+ code?: string | undefined | undefined;
782
+ message?: string | undefined | undefined;
783
+ status: number;
784
+ statusText: string;
785
+ };
786
+ }>;
787
+ Spotify: (data?: Omit<import("better-auth").Prettify<{
788
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
789
+ callbackURL?: string | undefined;
790
+ newUserCallbackURL?: string | undefined;
791
+ errorCallbackURL?: string | undefined;
792
+ disableRedirect?: boolean | undefined;
793
+ idToken?: {
794
+ token: string;
795
+ nonce?: string | undefined;
796
+ accessToken?: string | undefined;
797
+ refreshToken?: string | undefined;
798
+ expiresAt?: number | undefined;
799
+ } | undefined;
800
+ scopes?: string[] | undefined;
801
+ requestSignUp?: boolean | undefined;
802
+ loginHint?: string | undefined;
803
+ additionalData?: Record<string, any> | undefined;
804
+ } & {
805
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
806
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
807
+ callbackURL?: string | undefined;
808
+ newUserCallbackURL?: string | undefined;
809
+ errorCallbackURL?: string | undefined;
810
+ disableRedirect?: boolean | undefined;
811
+ idToken?: {
812
+ token: string;
813
+ nonce?: string | undefined;
814
+ accessToken?: string | undefined;
815
+ refreshToken?: string | undefined;
816
+ expiresAt?: number | undefined;
817
+ } | undefined;
818
+ scopes?: string[] | undefined;
819
+ requestSignUp?: boolean | undefined;
820
+ loginHint?: string | undefined;
821
+ additionalData?: Record<string, any> | undefined;
822
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
823
+ }>, "provider">) => Promise<{
824
+ data: NonNullable<{
825
+ redirect: boolean;
826
+ url: string;
827
+ } | {
828
+ redirect: boolean;
829
+ token: string;
830
+ url: undefined;
831
+ user: {
832
+ id: string;
833
+ createdAt: Date;
834
+ updatedAt: Date;
835
+ email: string;
836
+ emailVerified: boolean;
837
+ name: string;
838
+ image?: string | null | undefined | undefined;
839
+ };
840
+ }>;
841
+ error: null;
842
+ } | {
843
+ data: null;
844
+ error: {
845
+ code?: string | undefined | undefined;
846
+ message?: string | undefined | undefined;
847
+ status: number;
848
+ statusText: string;
849
+ };
850
+ }>;
851
+ Tiktok: (data?: Omit<import("better-auth").Prettify<{
852
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
853
+ callbackURL?: string | undefined;
854
+ newUserCallbackURL?: string | undefined;
855
+ errorCallbackURL?: string | undefined;
856
+ disableRedirect?: boolean | undefined;
857
+ idToken?: {
858
+ token: string;
859
+ nonce?: string | undefined;
860
+ accessToken?: string | undefined;
861
+ refreshToken?: string | undefined;
862
+ expiresAt?: number | undefined;
863
+ } | undefined;
864
+ scopes?: string[] | undefined;
865
+ requestSignUp?: boolean | undefined;
866
+ loginHint?: string | undefined;
867
+ additionalData?: Record<string, any> | undefined;
868
+ } & {
869
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
870
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
871
+ callbackURL?: string | undefined;
872
+ newUserCallbackURL?: string | undefined;
873
+ errorCallbackURL?: string | undefined;
874
+ disableRedirect?: boolean | undefined;
875
+ idToken?: {
876
+ token: string;
877
+ nonce?: string | undefined;
878
+ accessToken?: string | undefined;
879
+ refreshToken?: string | undefined;
880
+ expiresAt?: number | undefined;
881
+ } | undefined;
882
+ scopes?: string[] | undefined;
883
+ requestSignUp?: boolean | undefined;
884
+ loginHint?: string | undefined;
885
+ additionalData?: Record<string, any> | undefined;
886
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
887
+ }>, "provider">) => Promise<{
888
+ data: NonNullable<{
889
+ redirect: boolean;
890
+ url: string;
891
+ } | {
892
+ redirect: boolean;
893
+ token: string;
894
+ url: undefined;
895
+ user: {
896
+ id: string;
897
+ createdAt: Date;
898
+ updatedAt: Date;
899
+ email: string;
900
+ emailVerified: boolean;
901
+ name: string;
902
+ image?: string | null | undefined | undefined;
903
+ };
904
+ }>;
905
+ error: null;
906
+ } | {
907
+ data: null;
908
+ error: {
909
+ code?: string | undefined | undefined;
910
+ message?: string | undefined | undefined;
911
+ status: number;
912
+ statusText: string;
913
+ };
914
+ }>;
915
+ Twitch: (data?: Omit<import("better-auth").Prettify<{
916
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
917
+ callbackURL?: string | undefined;
918
+ newUserCallbackURL?: string | undefined;
919
+ errorCallbackURL?: string | undefined;
920
+ disableRedirect?: boolean | undefined;
921
+ idToken?: {
922
+ token: string;
923
+ nonce?: string | undefined;
924
+ accessToken?: string | undefined;
925
+ refreshToken?: string | undefined;
926
+ expiresAt?: number | undefined;
927
+ } | undefined;
928
+ scopes?: string[] | undefined;
929
+ requestSignUp?: boolean | undefined;
930
+ loginHint?: string | undefined;
931
+ additionalData?: Record<string, any> | undefined;
932
+ } & {
933
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
934
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
935
+ callbackURL?: string | undefined;
936
+ newUserCallbackURL?: string | undefined;
937
+ errorCallbackURL?: string | undefined;
938
+ disableRedirect?: boolean | undefined;
939
+ idToken?: {
940
+ token: string;
941
+ nonce?: string | undefined;
942
+ accessToken?: string | undefined;
943
+ refreshToken?: string | undefined;
944
+ expiresAt?: number | undefined;
945
+ } | undefined;
946
+ scopes?: string[] | undefined;
947
+ requestSignUp?: boolean | undefined;
948
+ loginHint?: string | undefined;
949
+ additionalData?: Record<string, any> | undefined;
950
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
951
+ }>, "provider">) => Promise<{
952
+ data: NonNullable<{
953
+ redirect: boolean;
954
+ url: string;
955
+ } | {
956
+ redirect: boolean;
957
+ token: string;
958
+ url: undefined;
959
+ user: {
960
+ id: string;
961
+ createdAt: Date;
962
+ updatedAt: Date;
963
+ email: string;
964
+ emailVerified: boolean;
965
+ name: string;
966
+ image?: string | null | undefined | undefined;
967
+ };
968
+ }>;
969
+ error: null;
970
+ } | {
971
+ data: null;
972
+ error: {
973
+ code?: string | undefined | undefined;
974
+ message?: string | undefined | undefined;
975
+ status: number;
976
+ statusText: string;
977
+ };
978
+ }>;
979
+ X: (data?: Omit<import("better-auth").Prettify<{
980
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
981
+ callbackURL?: string | undefined;
982
+ newUserCallbackURL?: string | undefined;
983
+ errorCallbackURL?: string | undefined;
984
+ disableRedirect?: boolean | undefined;
985
+ idToken?: {
986
+ token: string;
987
+ nonce?: string | undefined;
988
+ accessToken?: string | undefined;
989
+ refreshToken?: string | undefined;
990
+ expiresAt?: number | undefined;
991
+ } | undefined;
992
+ scopes?: string[] | undefined;
993
+ requestSignUp?: boolean | undefined;
994
+ loginHint?: string | undefined;
995
+ additionalData?: Record<string, any> | undefined;
996
+ } & {
997
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
998
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
999
+ callbackURL?: string | undefined;
1000
+ newUserCallbackURL?: string | undefined;
1001
+ errorCallbackURL?: string | undefined;
1002
+ disableRedirect?: boolean | undefined;
1003
+ idToken?: {
1004
+ token: string;
1005
+ nonce?: string | undefined;
1006
+ accessToken?: string | undefined;
1007
+ refreshToken?: string | undefined;
1008
+ expiresAt?: number | undefined;
1009
+ } | undefined;
1010
+ scopes?: string[] | undefined;
1011
+ requestSignUp?: boolean | undefined;
1012
+ loginHint?: string | undefined;
1013
+ additionalData?: Record<string, any> | undefined;
1014
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1015
+ }>, "provider">) => Promise<{
1016
+ data: NonNullable<{
1017
+ redirect: boolean;
1018
+ url: string;
1019
+ } | {
1020
+ redirect: boolean;
1021
+ token: string;
1022
+ url: undefined;
1023
+ user: {
1024
+ id: string;
1025
+ createdAt: Date;
1026
+ updatedAt: Date;
1027
+ email: string;
1028
+ emailVerified: boolean;
1029
+ name: string;
1030
+ image?: string | null | undefined | undefined;
1031
+ };
1032
+ }>;
1033
+ error: null;
1034
+ } | {
1035
+ data: null;
1036
+ error: {
1037
+ code?: string | undefined | undefined;
1038
+ message?: string | undefined | undefined;
1039
+ status: number;
1040
+ statusText: string;
1041
+ };
1042
+ }>;
1043
+ VK: (data?: Omit<import("better-auth").Prettify<{
1044
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
1045
+ callbackURL?: string | undefined;
1046
+ newUserCallbackURL?: string | undefined;
1047
+ errorCallbackURL?: string | undefined;
1048
+ disableRedirect?: boolean | undefined;
1049
+ idToken?: {
1050
+ token: string;
1051
+ nonce?: string | undefined;
1052
+ accessToken?: string | undefined;
1053
+ refreshToken?: string | undefined;
1054
+ expiresAt?: number | undefined;
1055
+ } | undefined;
1056
+ scopes?: string[] | undefined;
1057
+ requestSignUp?: boolean | undefined;
1058
+ loginHint?: string | undefined;
1059
+ additionalData?: Record<string, any> | undefined;
1060
+ } & {
1061
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
1062
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
1063
+ callbackURL?: string | undefined;
1064
+ newUserCallbackURL?: string | undefined;
1065
+ errorCallbackURL?: string | undefined;
1066
+ disableRedirect?: boolean | undefined;
1067
+ idToken?: {
1068
+ token: string;
1069
+ nonce?: string | undefined;
1070
+ accessToken?: string | undefined;
1071
+ refreshToken?: string | undefined;
1072
+ expiresAt?: number | undefined;
1073
+ } | undefined;
1074
+ scopes?: string[] | undefined;
1075
+ requestSignUp?: boolean | undefined;
1076
+ loginHint?: string | undefined;
1077
+ additionalData?: Record<string, any> | undefined;
1078
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1079
+ }>, "provider">) => Promise<{
1080
+ data: NonNullable<{
1081
+ redirect: boolean;
1082
+ url: string;
1083
+ } | {
1084
+ redirect: boolean;
1085
+ token: string;
1086
+ url: undefined;
1087
+ user: {
1088
+ id: string;
1089
+ createdAt: Date;
1090
+ updatedAt: Date;
1091
+ email: string;
1092
+ emailVerified: boolean;
1093
+ name: string;
1094
+ image?: string | null | undefined | undefined;
1095
+ };
1096
+ }>;
1097
+ error: null;
1098
+ } | {
1099
+ data: null;
1100
+ error: {
1101
+ code?: string | undefined | undefined;
1102
+ message?: string | undefined | undefined;
1103
+ status: number;
1104
+ statusText: string;
1105
+ };
1106
+ }>;
1107
+ Zoom: (data?: Omit<import("better-auth").Prettify<{
1108
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
1109
+ callbackURL?: string | undefined;
1110
+ newUserCallbackURL?: string | undefined;
1111
+ errorCallbackURL?: string | undefined;
1112
+ disableRedirect?: boolean | undefined;
1113
+ idToken?: {
1114
+ token: string;
1115
+ nonce?: string | undefined;
1116
+ accessToken?: string | undefined;
1117
+ refreshToken?: string | undefined;
1118
+ expiresAt?: number | undefined;
1119
+ } | undefined;
1120
+ scopes?: string[] | undefined;
1121
+ requestSignUp?: boolean | undefined;
1122
+ loginHint?: string | undefined;
1123
+ additionalData?: Record<string, any> | undefined;
1124
+ } & {
1125
+ fetchOptions?: import("better-auth").ClientFetchOption<Partial<{
1126
+ provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
1127
+ callbackURL?: string | undefined;
1128
+ newUserCallbackURL?: string | undefined;
1129
+ errorCallbackURL?: string | undefined;
1130
+ disableRedirect?: boolean | undefined;
1131
+ idToken?: {
1132
+ token: string;
1133
+ nonce?: string | undefined;
1134
+ accessToken?: string | undefined;
1135
+ refreshToken?: string | undefined;
1136
+ expiresAt?: number | undefined;
1137
+ } | undefined;
1138
+ scopes?: string[] | undefined;
1139
+ requestSignUp?: boolean | undefined;
1140
+ loginHint?: string | undefined;
1141
+ additionalData?: Record<string, any> | undefined;
1142
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1143
+ }>, "provider">) => Promise<{
1144
+ data: NonNullable<{
1145
+ redirect: boolean;
1146
+ url: string;
1147
+ } | {
1148
+ redirect: boolean;
1149
+ token: string;
1150
+ url: undefined;
1151
+ user: {
1152
+ id: string;
1153
+ createdAt: Date;
1154
+ updatedAt: Date;
1155
+ email: string;
1156
+ emailVerified: boolean;
1157
+ name: string;
1158
+ image?: string | null | undefined | undefined;
1159
+ };
1160
+ }>;
1161
+ error: null;
1162
+ } | {
1163
+ data: null;
1164
+ error: {
1165
+ code?: string | undefined | undefined;
1166
+ message?: string | undefined | undefined;
1167
+ status: number;
1168
+ statusText: string;
1169
+ };
1170
+ }>;
1171
+ };
1172
+ Signal: import("nanostores").ReadableAtom<{
1173
+ data: {
1174
+ user: {
1175
+ id: string;
1176
+ createdAt: Date;
1177
+ updatedAt: Date;
1178
+ email: string;
1179
+ emailVerified: boolean;
1180
+ name: string;
1181
+ image?: string | null | undefined;
1182
+ isAnonymous: boolean | null | undefined;
1183
+ };
1184
+ session: {
1185
+ id: string;
1186
+ createdAt: Date;
1187
+ updatedAt: Date;
1188
+ userId: string;
1189
+ expiresAt: Date;
1190
+ token: string;
1191
+ ipAddress?: string | null | undefined;
1192
+ userAgent?: string | null | undefined;
1193
+ };
1194
+ } | null;
1195
+ error: import("@better-fetch/fetch").BetterFetchError | null;
1196
+ isPending: boolean;
1197
+ isRefetching: boolean;
1198
+ refetch: (queryParams?: {
1199
+ query?: import("better-auth").SessionQueryParams;
1200
+ } | undefined) => Promise<void>;
1201
+ }>;
1202
+ Anonymous: {
1203
+ SignUp: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
1204
+ query?: Record<string, any> | undefined;
1205
+ fetchOptions?: FetchOptions | undefined;
1206
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1207
+ token: string;
1208
+ user: Record<string, any> & {
1209
+ id: string;
1210
+ createdAt: Date;
1211
+ updatedAt: Date;
1212
+ email: string;
1213
+ emailVerified: boolean;
1214
+ name: string;
1215
+ image?: string | null | undefined;
1216
+ };
1217
+ }, {
1218
+ code?: string | undefined;
1219
+ message?: string | undefined;
1220
+ }, FetchOptions["throw"] extends true ? true : false>>;
1221
+ Delete: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
1222
+ query?: Record<string, any> | undefined;
1223
+ fetchOptions?: FetchOptions | undefined;
1224
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1225
+ success: boolean;
1226
+ }, {
1227
+ code?: string | undefined;
1228
+ message?: string | undefined;
1229
+ }, FetchOptions["throw"] extends true ? true : false>>;
1230
+ };
1231
+ };
1232
+ //# sourceMappingURL=auth.d.ts.map