@access-dlsu/leapify 0.260608.1 → 0.260608.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@ import type { LeapifyBindings } from '../types';
13
13
  * - After successful user creation, upserts a row in our custom `users` table
14
14
  * to carry the application role
15
15
  */
16
- export declare function createAuth(env: LeapifyBindings): import("better-auth").Auth<{
16
+ export declare function createAuth(env: LeapifyBindings): import("better-auth/types").Auth<{
17
17
  baseURL: string;
18
18
  secret: string;
19
19
  advanced: {
@@ -21,13 +21,13 @@ export declare function createAuth(env: LeapifyBindings): import("better-auth").
21
21
  ipAddressHeaders: string[];
22
22
  };
23
23
  };
24
- database: (options: import("better-auth").BetterAuthOptions) => import("better-auth").DBAdapter<import("better-auth").BetterAuthOptions>;
24
+ database: (options: import("@better-auth/core").BetterAuthOptions) => import("better-auth/types").DBAdapter<import("@better-auth/core").BetterAuthOptions>;
25
25
  plugins: [{
26
26
  id: "bearer";
27
27
  version: string;
28
28
  hooks: {
29
29
  before: {
30
- matcher(context: import("better-auth").HookEndpointContext): boolean;
30
+ matcher(context: import("@better-auth/core").HookEndpointContext): boolean;
31
31
  handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
32
32
  context: {
33
33
  headers: Headers;
@@ -35,7 +35,7 @@ export declare function createAuth(env: LeapifyBindings): import("better-auth").
35
35
  } | undefined>;
36
36
  }[];
37
37
  after: {
38
- matcher(context: import("better-auth").HookEndpointContext): true;
38
+ matcher(context: import("@better-auth/core").HookEndpointContext): true;
39
39
  handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>;
40
40
  }[];
41
41
  };
@@ -95,5 +95,5 @@ export declare function createAuth(env: LeapifyBindings): import("better-auth").
95
95
  };
96
96
  };
97
97
  }>;
98
- export type Auth = ReturnType<typeof createAuth>;
98
+ export type { Auth } from 'better-auth/types';
99
99
  //# sourceMappingURL=auth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/auth/auth.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAI/C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAoCrC;;;mBAGG;;;;;;;;;;;;;;;;;;;;gBAWH;;;;;;;mBAOG;;;;;;;;;;;;;GA2CZ;AAED,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/auth/auth.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAI/C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAoCrC;;;mBAGG;;;;;;;;;;;;;;;;;;;;gBAWH;;;;;;;mBAOG;;;;;;;;;;;;;GA2CZ;AAED,YAAY,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA"}
@@ -22,11 +22,11 @@
22
22
  * in the Authorization header.
23
23
  */
24
24
  export declare function createLeapifyAuthClient(baseUrl: string): {
25
- refreshToken: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
25
+ refreshToken: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
26
26
  providerId: string;
27
27
  accountId?: string | undefined;
28
28
  userId?: string | undefined;
29
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
29
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/types").Prettify<{
30
30
  providerId: string;
31
31
  accountId?: string | undefined;
32
32
  userId?: string | undefined;
@@ -47,7 +47,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
47
47
  }, FetchOptions["throw"] extends true ? true : false>>;
48
48
  } & {
49
49
  signIn: {
50
- social: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
50
+ social: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
51
51
  provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
52
52
  callbackURL?: string | undefined;
53
53
  newUserCallbackURL?: string | undefined;
@@ -71,7 +71,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
71
71
  requestSignUp?: boolean | undefined;
72
72
  loginHint?: string | undefined;
73
73
  additionalData?: Record<string, any> | undefined;
74
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
74
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/types").Prettify<{
75
75
  provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
76
76
  callbackURL?: string | undefined;
77
77
  newUserCallbackURL?: string | undefined;
@@ -114,7 +114,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
114
114
  image?: string | null | undefined | undefined;
115
115
  };
116
116
  }, "user"> & {
117
- user: import("better-auth").StripEmptyObjects<{
117
+ user: import("better-auth/types").StripEmptyObjects<{
118
118
  id: string;
119
119
  createdAt: Date;
120
120
  updatedAt: Date;
@@ -129,7 +129,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
129
129
  }, FetchOptions["throw"] extends true ? true : false>>;
130
130
  };
131
131
  } & {
132
- signOut: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
132
+ signOut: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/types").Prettify<{
133
133
  query?: Record<string, any> | undefined;
134
134
  fetchOptions?: FetchOptions | undefined;
135
135
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
@@ -140,14 +140,14 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
140
140
  }, FetchOptions["throw"] extends true ? true : false>>;
141
141
  } & {
142
142
  signUp: {
143
- email: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
143
+ email: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
144
144
  name: string;
145
145
  email: string;
146
146
  password: string;
147
147
  image?: string | undefined;
148
148
  callbackURL?: string | undefined;
149
149
  rememberMe?: boolean | undefined;
150
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
150
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/types").Prettify<{
151
151
  email: string;
152
152
  name: string;
153
153
  password: string;
@@ -166,7 +166,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
166
166
  image?: string | null | undefined | undefined;
167
167
  };
168
168
  }, "user"> & {
169
- user: import("better-auth").StripEmptyObjects<{
169
+ user: import("better-auth/types").StripEmptyObjects<{
170
170
  id: string;
171
171
  createdAt: Date;
172
172
  updatedAt: Date;
@@ -187,7 +187,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
187
187
  image?: string | null | undefined | undefined;
188
188
  };
189
189
  }, "user"> & {
190
- user: import("better-auth").StripEmptyObjects<{
190
+ user: import("better-auth/types").StripEmptyObjects<{
191
191
  id: string;
192
192
  createdAt: Date;
193
193
  updatedAt: Date;
@@ -203,12 +203,12 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
203
203
  };
204
204
  } & {
205
205
  signIn: {
206
- email: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
206
+ email: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
207
207
  email: string;
208
208
  password: string;
209
209
  callbackURL?: string | undefined;
210
210
  rememberMe?: boolean | undefined;
211
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
211
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/types").Prettify<{
212
212
  email: string;
213
213
  password: string;
214
214
  callbackURL?: string | undefined;
@@ -229,7 +229,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
229
229
  image?: string | null | undefined | undefined;
230
230
  };
231
231
  }, "user"> & {
232
- user: import("better-auth").StripEmptyObjects<{
232
+ user: import("better-auth/types").StripEmptyObjects<{
233
233
  id: string;
234
234
  createdAt: Date;
235
235
  updatedAt: Date;
@@ -244,12 +244,12 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
244
244
  }, FetchOptions["throw"] extends true ? true : false>>;
245
245
  };
246
246
  } & {
247
- resetPassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
247
+ resetPassword: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
248
248
  newPassword: string;
249
249
  token?: string | undefined;
250
250
  }> & Record<string, any>, Partial<{
251
251
  token?: string | undefined;
252
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
252
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/types").Prettify<{
253
253
  newPassword: string;
254
254
  token?: string | undefined;
255
255
  } & {
@@ -261,10 +261,10 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
261
261
  message?: string | undefined;
262
262
  }, FetchOptions["throw"] extends true ? true : false>>;
263
263
  } & {
264
- verifyEmail: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
264
+ verifyEmail: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<{
265
265
  token: string;
266
266
  callbackURL?: string | undefined;
267
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
267
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/types").Prettify<{
268
268
  query: {
269
269
  token: string;
270
270
  callbackURL?: string | undefined;
@@ -277,10 +277,10 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
277
277
  message?: string | undefined;
278
278
  }, FetchOptions["throw"] extends true ? true : false>>;
279
279
  } & {
280
- sendVerificationEmail: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
280
+ sendVerificationEmail: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
281
281
  email: string;
282
282
  callbackURL?: string | undefined;
283
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
283
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/types").Prettify<{
284
284
  email: string;
285
285
  callbackURL?: string | undefined;
286
286
  } & {
@@ -292,10 +292,10 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
292
292
  message?: string | undefined;
293
293
  }, FetchOptions["throw"] extends true ? true : false>>;
294
294
  } & {
295
- changeEmail: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
295
+ changeEmail: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
296
296
  newEmail: string;
297
297
  callbackURL?: string | undefined;
298
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
298
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/types").Prettify<{
299
299
  newEmail: string;
300
300
  callbackURL?: string | undefined;
301
301
  } & {
@@ -307,11 +307,11 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
307
307
  message?: string | undefined;
308
308
  }, FetchOptions["throw"] extends true ? true : false>>;
309
309
  } & {
310
- changePassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
310
+ changePassword: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
311
311
  newPassword: string;
312
312
  currentPassword: string;
313
313
  revokeOtherSessions?: boolean | undefined;
314
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
314
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/types").Prettify<{
315
315
  newPassword: string;
316
316
  currentPassword: string;
317
317
  revokeOtherSessions?: boolean | undefined;
@@ -337,7 +337,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
337
337
  image?: string | null | undefined;
338
338
  };
339
339
  }, "user"> & {
340
- user: import("better-auth").StripEmptyObjects<{
340
+ user: import("better-auth/types").StripEmptyObjects<{
341
341
  id: string;
342
342
  createdAt: Date;
343
343
  updatedAt: Date;
@@ -351,7 +351,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
351
351
  message?: string | undefined;
352
352
  }, FetchOptions["throw"] extends true ? true : false>>;
353
353
  } & {
354
- updateSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<Partial<{}>> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<Partial<{}> & {
354
+ updateSession: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<Partial<{}>> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/types").Prettify<Partial<{}> & {
355
355
  fetchOptions?: FetchOptions | undefined;
356
356
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
357
357
  session: {
@@ -369,10 +369,10 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
369
369
  message?: string | undefined;
370
370
  }, FetchOptions["throw"] extends true ? true : false>>;
371
371
  } & {
372
- updateUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<Partial<{}> & {
372
+ updateUser: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<Partial<{}> & {
373
373
  name?: string | undefined;
374
374
  image?: string | undefined | null;
375
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<import("better-auth/client").InferUserUpdateCtx<{
375
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/types").Prettify<import("better-auth/client").InferUserUpdateCtx<{
376
376
  baseURL: string;
377
377
  fetchOptions: {
378
378
  auth: {
@@ -387,11 +387,11 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
387
387
  message?: string | undefined;
388
388
  }, FetchOptions["throw"] extends true ? true : false>>;
389
389
  } & {
390
- deleteUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
390
+ deleteUser: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
391
391
  callbackURL?: string | undefined;
392
392
  password?: string | undefined;
393
393
  token?: string | undefined;
394
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
394
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/types").Prettify<{
395
395
  callbackURL?: string | undefined;
396
396
  password?: string | undefined;
397
397
  token?: string | undefined;
@@ -405,10 +405,10 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
405
405
  message?: string | undefined;
406
406
  }, FetchOptions["throw"] extends true ? true : false>>;
407
407
  } & {
408
- requestPasswordReset: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
408
+ requestPasswordReset: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
409
409
  email: string;
410
410
  redirectTo?: string | undefined;
411
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
411
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/types").Prettify<{
412
412
  email: string;
413
413
  redirectTo?: string | undefined;
414
414
  } & {
@@ -422,11 +422,11 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
422
422
  }, FetchOptions["throw"] extends true ? true : false>>;
423
423
  } & {
424
424
  resetPassword: {
425
- ":token": <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
425
+ ":token": <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<{
426
426
  callbackURL: string;
427
427
  }> & Record<string, any>, {
428
428
  token: string;
429
- }>>(data_0: import("better-auth").Prettify<{
429
+ }>>(data_0: import("better-auth/types").Prettify<{
430
430
  query: {
431
431
  callbackURL: string;
432
432
  };
@@ -437,10 +437,10 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
437
437
  }, FetchOptions["throw"] extends true ? true : false>>;
438
438
  };
439
439
  } & {
440
- listSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
440
+ listSessions: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/types").Prettify<{
441
441
  query?: Record<string, any> | undefined;
442
442
  fetchOptions?: FetchOptions | undefined;
443
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<import("better-auth").Prettify<{
443
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<import("better-auth/types").Prettify<{
444
444
  id: string;
445
445
  createdAt: Date;
446
446
  updatedAt: Date;
@@ -454,9 +454,9 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
454
454
  message?: string | undefined;
455
455
  }, FetchOptions["throw"] extends true ? true : false>>;
456
456
  } & {
457
- revokeSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
457
+ revokeSession: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
458
458
  token: string;
459
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
459
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/types").Prettify<{
460
460
  token: string;
461
461
  } & {
462
462
  fetchOptions?: FetchOptions | undefined;
@@ -467,7 +467,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
467
467
  message?: string | undefined;
468
468
  }, FetchOptions["throw"] extends true ? true : false>>;
469
469
  } & {
470
- revokeSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
470
+ revokeSessions: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/types").Prettify<{
471
471
  query?: Record<string, any> | undefined;
472
472
  fetchOptions?: FetchOptions | undefined;
473
473
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
@@ -477,7 +477,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
477
477
  message?: string | undefined;
478
478
  }, FetchOptions["throw"] extends true ? true : false>>;
479
479
  } & {
480
- revokeOtherSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
480
+ revokeOtherSessions: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/types").Prettify<{
481
481
  query?: Record<string, any> | undefined;
482
482
  fetchOptions?: FetchOptions | undefined;
483
483
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
@@ -487,7 +487,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
487
487
  message?: string | undefined;
488
488
  }, FetchOptions["throw"] extends true ? true : false>>;
489
489
  } & {
490
- linkSocial: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
490
+ linkSocial: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
491
491
  provider: unknown;
492
492
  callbackURL?: string | undefined;
493
493
  idToken?: {
@@ -502,7 +502,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
502
502
  errorCallbackURL?: string | undefined;
503
503
  disableRedirect?: boolean | undefined;
504
504
  additionalData?: Record<string, any> | undefined;
505
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
505
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/types").Prettify<{
506
506
  provider: unknown;
507
507
  callbackURL?: string | undefined;
508
508
  idToken?: {
@@ -527,7 +527,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
527
527
  message?: string | undefined;
528
528
  }, FetchOptions["throw"] extends true ? true : false>>;
529
529
  } & {
530
- listAccounts: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
530
+ listAccounts: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/types").Prettify<{
531
531
  query?: Record<string, any> | undefined;
532
532
  fetchOptions?: FetchOptions | undefined;
533
533
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
@@ -544,10 +544,10 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
544
544
  }, FetchOptions["throw"] extends true ? true : false>>;
545
545
  } & {
546
546
  deleteUser: {
547
- callback: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
547
+ callback: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<{
548
548
  token: string;
549
549
  callbackURL?: string | undefined;
550
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
550
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/types").Prettify<{
551
551
  query: {
552
552
  token: string;
553
553
  callbackURL?: string | undefined;
@@ -562,10 +562,10 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
562
562
  }, FetchOptions["throw"] extends true ? true : false>>;
563
563
  };
564
564
  } & {
565
- unlinkAccount: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
565
+ unlinkAccount: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
566
566
  providerId: string;
567
567
  accountId?: string | undefined;
568
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
568
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/types").Prettify<{
569
569
  providerId: string;
570
570
  accountId?: string | undefined;
571
571
  } & {
@@ -577,11 +577,11 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
577
577
  message?: string | undefined;
578
578
  }, FetchOptions["throw"] extends true ? true : false>>;
579
579
  } & {
580
- getAccessToken: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
580
+ getAccessToken: <FetchOptions extends import("@better-auth/core").ClientFetchOption<Partial<{
581
581
  providerId: string;
582
582
  accountId?: string | undefined;
583
583
  userId?: string | undefined;
584
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
584
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth/types").Prettify<{
585
585
  providerId: string;
586
586
  accountId?: string | undefined;
587
587
  userId?: string | undefined;
@@ -597,32 +597,36 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
597
597
  message?: string | undefined;
598
598
  }, FetchOptions["throw"] extends true ? true : false>>;
599
599
  } & {
600
- accountInfo: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
600
+ accountInfo: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<{
601
601
  accountId?: string | undefined;
602
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
602
+ providerId?: string | undefined;
603
+ userId?: string | undefined;
604
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/types").Prettify<{
603
605
  query?: {
604
606
  accountId?: string | undefined;
607
+ providerId?: string | undefined;
608
+ userId?: string | undefined;
605
609
  } | undefined;
606
610
  fetchOptions?: FetchOptions | undefined;
607
611
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
608
- user: import("better-auth").OAuth2UserInfo;
612
+ user: import("@better-auth/core/oauth2").OAuth2UserInfo;
609
613
  data: Record<string, any>;
610
614
  }, {
611
615
  code?: string | undefined;
612
616
  message?: string | undefined;
613
617
  }, FetchOptions["throw"] extends true ? true : false>>;
614
618
  } & {
615
- getSession: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
619
+ getSession: <FetchOptions extends import("@better-auth/core").ClientFetchOption<never, Partial<{
616
620
  disableCookieCache?: unknown;
617
621
  disableRefresh?: unknown;
618
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
622
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth/types").Prettify<{
619
623
  query?: {
620
624
  disableCookieCache?: unknown;
621
625
  disableRefresh?: unknown;
622
626
  } | undefined;
623
627
  fetchOptions?: FetchOptions | undefined;
624
628
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
625
- user: import("better-auth").StripEmptyObjects<{
629
+ user: import("better-auth/types").StripEmptyObjects<{
626
630
  id: string;
627
631
  createdAt: Date;
628
632
  updatedAt: Date;
@@ -631,7 +635,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
631
635
  name: string;
632
636
  image?: string | null | undefined;
633
637
  }>;
634
- session: import("better-auth").StripEmptyObjects<{
638
+ session: import("better-auth/types").StripEmptyObjects<{
635
639
  id: string;
636
640
  createdAt: Date;
637
641
  updatedAt: Date;
@@ -648,7 +652,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
648
652
  } & {
649
653
  useSession: import("nanostores").Atom<{
650
654
  data: {
651
- user: import("better-auth").StripEmptyObjects<{
655
+ user: import("better-auth/types").StripEmptyObjects<{
652
656
  id: string;
653
657
  createdAt: Date;
654
658
  updatedAt: Date;
@@ -657,7 +661,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
657
661
  name: string;
658
662
  image?: string | null | undefined;
659
663
  }>;
660
- session: import("better-auth").StripEmptyObjects<{
664
+ session: import("better-auth/types").StripEmptyObjects<{
661
665
  id: string;
662
666
  createdAt: Date;
663
667
  updatedAt: Date;
@@ -672,7 +676,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
672
676
  isPending: boolean;
673
677
  isRefetching: boolean;
674
678
  refetch: (queryParams?: {
675
- query?: import("better-auth").SessionQueryParams;
679
+ query?: import("better-auth/types").SessionQueryParams;
676
680
  } | undefined) => Promise<void>;
677
681
  }>;
678
682
  $fetch: import("@better-fetch/fetch").BetterFetch<{
@@ -760,7 +764,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
760
764
  };
761
765
  $Infer: {
762
766
  Session: {
763
- user: import("better-auth").StripEmptyObjects<{
767
+ user: import("better-auth/types").StripEmptyObjects<{
764
768
  id: string;
765
769
  createdAt: Date;
766
770
  updatedAt: Date;
@@ -769,7 +773,7 @@ export declare function createLeapifyAuthClient(baseUrl: string): {
769
773
  name: string;
770
774
  image?: string | null | undefined;
771
775
  }>;
772
- session: import("better-auth").StripEmptyObjects<{
776
+ session: import("better-auth/types").StripEmptyObjects<{
773
777
  id: string;
774
778
  createdAt: Date;
775
779
  updatedAt: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/client/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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