hylekit 1.0.4 → 1.0.6

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.
@@ -3,16 +3,8 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
3
3
  import * as better_auth from 'better-auth';
4
4
  export { a as SessionData, S as SessionResult, U as UserInfo } from '../types-Wucl0qmN.js';
5
5
 
6
- /**
7
- * Client-side Auth instance.
8
- * Use this in your Next.js client components.
9
- * This is safe to use on the client as it doesn't contain secrets.
10
- */
11
- declare const client: {
12
- /**
13
- * Alias for signIn.
14
- */
15
- login: {
6
+ declare const authClient: {
7
+ signIn: {
16
8
  social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
17
9
  provider: "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {});
18
10
  callbackURL?: string | undefined;
@@ -69,23 +61,35 @@ declare const client: {
69
61
  code?: string | undefined;
70
62
  message?: string | undefined;
71
63
  }, FetchOptions["throw"] extends true ? true : false>>;
72
- } & {
64
+ };
65
+ } & {
66
+ signOut: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
67
+ query?: Record<string, any> | undefined;
68
+ fetchOptions?: FetchOptions | undefined;
69
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
70
+ success: boolean;
71
+ }, {
72
+ code?: string | undefined;
73
+ message?: string | undefined;
74
+ }, FetchOptions["throw"] extends true ? true : false>>;
75
+ } & {
76
+ signUp: {
73
77
  email: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
78
+ name: string;
74
79
  email: string;
75
80
  password: string;
81
+ image?: string | undefined;
76
82
  callbackURL?: string | undefined;
77
83
  rememberMe?: boolean | undefined;
78
84
  }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
79
85
  email: string;
86
+ name: string;
80
87
  password: string;
88
+ image?: string | undefined;
81
89
  callbackURL?: string | undefined;
82
- rememberMe?: boolean | undefined;
83
- } & {
84
90
  fetchOptions?: FetchOptions | undefined;
85
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
86
- redirect: boolean;
87
- token: string;
88
- url?: string | undefined;
91
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
92
+ token: null;
89
93
  user: {
90
94
  id: string;
91
95
  createdAt: Date;
@@ -95,55 +99,8 @@ declare const client: {
95
99
  name: string;
96
100
  image?: string | null | undefined | undefined;
97
101
  };
98
- }, {
99
- code?: string | undefined;
100
- message?: string | undefined;
101
- }, FetchOptions["throw"] extends true ? true : false>>;
102
- };
103
- signIn: {
104
- social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
105
- provider: "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {});
106
- callbackURL?: string | undefined;
107
- newUserCallbackURL?: string | undefined;
108
- errorCallbackURL?: string | undefined;
109
- disableRedirect?: boolean | undefined;
110
- idToken?: {
111
- token: string;
112
- nonce?: string | undefined;
113
- accessToken?: string | undefined;
114
- refreshToken?: string | undefined;
115
- expiresAt?: number | undefined;
116
- } | undefined;
117
- scopes?: string[] | undefined;
118
- requestSignUp?: boolean | undefined;
119
- loginHint?: string | undefined;
120
- additionalData?: Record<string, any> | undefined;
121
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
122
- provider: "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {});
123
- callbackURL?: string | undefined;
124
- newUserCallbackURL?: string | undefined;
125
- errorCallbackURL?: string | undefined;
126
- disableRedirect?: boolean | undefined;
127
- idToken?: {
128
- token: string;
129
- nonce?: string | undefined;
130
- accessToken?: string | undefined;
131
- refreshToken?: string | undefined;
132
- expiresAt?: number | undefined;
133
- } | undefined;
134
- scopes?: string[] | undefined;
135
- requestSignUp?: boolean | undefined;
136
- loginHint?: string | undefined;
137
- additionalData?: Record<string, any> | undefined;
138
- } & {
139
- fetchOptions?: FetchOptions | undefined;
140
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
141
- redirect: boolean;
142
- url: string;
143
102
  } | {
144
- redirect: boolean;
145
103
  token: string;
146
- url: undefined;
147
104
  user: {
148
105
  id: string;
149
106
  createdAt: Date;
@@ -157,7 +114,9 @@ declare const client: {
157
114
  code?: string | undefined;
158
115
  message?: string | undefined;
159
116
  }, FetchOptions["throw"] extends true ? true : false>>;
160
- } & {
117
+ };
118
+ } & {
119
+ signIn: {
161
120
  email: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
162
121
  email: string;
163
122
  password: string;
@@ -188,58 +147,8 @@ declare const client: {
188
147
  message?: string | undefined;
189
148
  }, FetchOptions["throw"] extends true ? true : false>>;
190
149
  };
191
- signOut: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
192
- query?: Record<string, any> | undefined;
193
- fetchOptions?: FetchOptions | undefined;
194
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
195
- success: boolean;
196
- }, {
197
- code?: string | undefined;
198
- message?: string | undefined;
199
- }, FetchOptions["throw"] extends true ? true : false>>;
200
- signUp: {
201
- email: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
202
- name: string;
203
- email: string;
204
- password: string;
205
- image?: string | undefined;
206
- callbackURL?: string | undefined;
207
- rememberMe?: boolean | undefined;
208
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
209
- email: string;
210
- name: string;
211
- password: string;
212
- image?: string | undefined;
213
- callbackURL?: string | undefined;
214
- fetchOptions?: FetchOptions | undefined;
215
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
216
- token: null;
217
- user: {
218
- id: string;
219
- createdAt: Date;
220
- updatedAt: Date;
221
- email: string;
222
- emailVerified: boolean;
223
- name: string;
224
- image?: string | null | undefined | undefined;
225
- };
226
- } | {
227
- token: string;
228
- user: {
229
- id: string;
230
- createdAt: Date;
231
- updatedAt: Date;
232
- email: string;
233
- emailVerified: boolean;
234
- name: string;
235
- image?: string | null | undefined | undefined;
236
- };
237
- }>, {
238
- code?: string | undefined;
239
- message?: string | undefined;
240
- }, FetchOptions["throw"] extends true ? true : false>>;
241
- };
242
- resetPassword: (<FetchOptions extends better_auth.ClientFetchOption<Partial<{
150
+ } & {
151
+ resetPassword: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
243
152
  newPassword: string;
244
153
  token?: string | undefined;
245
154
  }> & Record<string, any>, Partial<{
@@ -254,21 +163,8 @@ declare const client: {
254
163
  }, {
255
164
  code?: string | undefined;
256
165
  message?: string | undefined;
257
- }, FetchOptions["throw"] extends true ? true : false>>) & {
258
- ":token": <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
259
- callbackURL: string;
260
- }> & Record<string, any>, {
261
- token: string;
262
- }>>(data_0: better_auth.Prettify<{
263
- query: {
264
- callbackURL: string;
265
- };
266
- fetchOptions?: FetchOptions | undefined;
267
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<never, {
268
- code?: string | undefined;
269
- message?: string | undefined;
270
- }, FetchOptions["throw"] extends true ? true : false>>;
271
- };
166
+ }, FetchOptions["throw"] extends true ? true : false>>;
167
+ } & {
272
168
  verifyEmail: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
273
169
  token: string;
274
170
  callbackURL?: string | undefined;
@@ -284,6 +180,7 @@ declare const client: {
284
180
  code?: string | undefined;
285
181
  message?: string | undefined;
286
182
  }, FetchOptions["throw"] extends true ? true : false>>;
183
+ } & {
287
184
  sendVerificationEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
288
185
  email: string;
289
186
  callbackURL?: string | undefined;
@@ -298,6 +195,7 @@ declare const client: {
298
195
  code?: string | undefined;
299
196
  message?: string | undefined;
300
197
  }, FetchOptions["throw"] extends true ? true : false>>;
198
+ } & {
301
199
  changeEmail: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
302
200
  newEmail: string;
303
201
  callbackURL?: string | undefined;
@@ -312,6 +210,7 @@ declare const client: {
312
210
  code?: string | undefined;
313
211
  message?: string | undefined;
314
212
  }, FetchOptions["throw"] extends true ? true : false>>;
213
+ } & {
315
214
  changePassword: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
316
215
  newPassword: string;
317
216
  currentPassword: string;
@@ -337,6 +236,7 @@ declare const client: {
337
236
  code?: string | undefined;
338
237
  message?: string | undefined;
339
238
  }, FetchOptions["throw"] extends true ? true : false>>;
239
+ } & {
340
240
  updateUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<Partial<{}> & {
341
241
  name?: string | undefined;
342
242
  image?: string | undefined | null;
@@ -350,7 +250,8 @@ declare const client: {
350
250
  code?: string | undefined;
351
251
  message?: string | undefined;
352
252
  }, FetchOptions["throw"] extends true ? true : false>>;
353
- deleteUser: (<FetchOptions extends better_auth.ClientFetchOption<Partial<{
253
+ } & {
254
+ deleteUser: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
354
255
  callbackURL?: string | undefined;
355
256
  password?: string | undefined;
356
257
  token?: string | undefined;
@@ -366,24 +267,8 @@ declare const client: {
366
267
  }, {
367
268
  code?: string | undefined;
368
269
  message?: string | undefined;
369
- }, FetchOptions["throw"] extends true ? true : false>>) & {
370
- callback: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
371
- token: string;
372
- callbackURL?: string | undefined;
373
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
374
- query: {
375
- token: string;
376
- callbackURL?: string | undefined;
377
- };
378
- fetchOptions?: FetchOptions | undefined;
379
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
380
- success: boolean;
381
- message: string;
382
- }, {
383
- code?: string | undefined;
384
- message?: string | undefined;
385
- }, FetchOptions["throw"] extends true ? true : false>>;
386
- };
270
+ }, FetchOptions["throw"] extends true ? true : false>>;
271
+ } & {
387
272
  requestPasswordReset: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
388
273
  email: string;
389
274
  redirectTo?: string | undefined;
@@ -399,6 +284,23 @@ declare const client: {
399
284
  code?: string | undefined;
400
285
  message?: string | undefined;
401
286
  }, FetchOptions["throw"] extends true ? true : false>>;
287
+ } & {
288
+ resetPassword: {
289
+ ":token": <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
290
+ callbackURL: string;
291
+ }> & Record<string, any>, {
292
+ token: string;
293
+ }>>(data_0: better_auth.Prettify<{
294
+ query: {
295
+ callbackURL: string;
296
+ };
297
+ fetchOptions?: FetchOptions | undefined;
298
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<never, {
299
+ code?: string | undefined;
300
+ message?: string | undefined;
301
+ }, FetchOptions["throw"] extends true ? true : false>>;
302
+ };
303
+ } & {
402
304
  listSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
403
305
  query?: Record<string, any> | undefined;
404
306
  fetchOptions?: FetchOptions | undefined;
@@ -415,6 +317,7 @@ declare const client: {
415
317
  code?: string | undefined;
416
318
  message?: string | undefined;
417
319
  }, FetchOptions["throw"] extends true ? true : false>>;
320
+ } & {
418
321
  revokeSession: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
419
322
  token: string;
420
323
  }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
@@ -427,6 +330,7 @@ declare const client: {
427
330
  code?: string | undefined;
428
331
  message?: string | undefined;
429
332
  }, FetchOptions["throw"] extends true ? true : false>>;
333
+ } & {
430
334
  revokeSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
431
335
  query?: Record<string, any> | undefined;
432
336
  fetchOptions?: FetchOptions | undefined;
@@ -436,6 +340,7 @@ declare const client: {
436
340
  code?: string | undefined;
437
341
  message?: string | undefined;
438
342
  }, FetchOptions["throw"] extends true ? true : false>>;
343
+ } & {
439
344
  revokeOtherSessions: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
440
345
  query?: Record<string, any> | undefined;
441
346
  fetchOptions?: FetchOptions | undefined;
@@ -445,6 +350,7 @@ declare const client: {
445
350
  code?: string | undefined;
446
351
  message?: string | undefined;
447
352
  }, FetchOptions["throw"] extends true ? true : false>>;
353
+ } & {
448
354
  linkSocial: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
449
355
  provider: unknown;
450
356
  callbackURL?: string | undefined;
@@ -484,6 +390,7 @@ declare const client: {
484
390
  code?: string | undefined;
485
391
  message?: string | undefined;
486
392
  }, FetchOptions["throw"] extends true ? true : false>>;
393
+ } & {
487
394
  listAccounts: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
488
395
  query?: Record<string, any> | undefined;
489
396
  fetchOptions?: FetchOptions | undefined;
@@ -499,6 +406,26 @@ declare const client: {
499
406
  code?: string | undefined;
500
407
  message?: string | undefined;
501
408
  }, FetchOptions["throw"] extends true ? true : false>>;
409
+ } & {
410
+ deleteUser: {
411
+ callback: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
412
+ token: string;
413
+ callbackURL?: string | undefined;
414
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
415
+ query: {
416
+ token: string;
417
+ callbackURL?: string | undefined;
418
+ };
419
+ fetchOptions?: FetchOptions | undefined;
420
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
421
+ success: boolean;
422
+ message: string;
423
+ }, {
424
+ code?: string | undefined;
425
+ message?: string | undefined;
426
+ }, FetchOptions["throw"] extends true ? true : false>>;
427
+ };
428
+ } & {
502
429
  unlinkAccount: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
503
430
  providerId: string;
504
431
  accountId?: string | undefined;
@@ -513,6 +440,7 @@ declare const client: {
513
440
  code?: string | undefined;
514
441
  message?: string | undefined;
515
442
  }, FetchOptions["throw"] extends true ? true : false>>;
443
+ } & {
516
444
  refreshToken: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
517
445
  providerId: string;
518
446
  accountId?: string | undefined;
@@ -536,6 +464,7 @@ declare const client: {
536
464
  code?: string | undefined;
537
465
  message?: string | undefined;
538
466
  }, FetchOptions["throw"] extends true ? true : false>>;
467
+ } & {
539
468
  getAccessToken: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
540
469
  providerId: string;
541
470
  accountId?: string | undefined;
@@ -555,6 +484,7 @@ declare const client: {
555
484
  code?: string | undefined;
556
485
  message?: string | undefined;
557
486
  }, FetchOptions["throw"] extends true ? true : false>>;
487
+ } & {
558
488
  accountInfo: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
559
489
  accountId?: string | undefined;
560
490
  }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
@@ -569,6 +499,7 @@ declare const client: {
569
499
  code?: string | undefined;
570
500
  message?: string | undefined;
571
501
  }, FetchOptions["throw"] extends true ? true : false>>;
502
+ } & {
572
503
  getSession: <FetchOptions extends better_auth.ClientFetchOption<never, Partial<{
573
504
  disableCookieCache?: unknown;
574
505
  disableRefresh?: unknown;
@@ -602,6 +533,7 @@ declare const client: {
602
533
  code?: string | undefined;
603
534
  message?: string | undefined;
604
535
  }, FetchOptions["throw"] extends true ? true : false>>;
536
+ } & {
605
537
  useSession: () => {
606
538
  data: {
607
539
  user: {
@@ -771,5 +703,12 @@ declare const client: {
771
703
  readonly MISSING_FIELD: "Field is required";
772
704
  };
773
705
  };
706
+ /**
707
+ * Client-side Auth instance.
708
+ * Use this in your Next.js client components.
709
+ */
710
+ declare const client: typeof authClient & {
711
+ login: typeof authClient.signIn;
712
+ };
774
713
 
775
714
  export { client };
@@ -1,13 +1,8 @@
1
1
  // src/client/nextjs.ts
2
2
  import { createAuthClient } from "better-auth/react";
3
3
  var authClient = createAuthClient();
4
- var client = {
5
- ...authClient,
6
- /**
7
- * Alias for signIn.
8
- */
9
- login: authClient.signIn
10
- };
4
+ var client = authClient;
5
+ client.login = authClient.signIn;
11
6
  export {
12
7
  client
13
8
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/client/nextjs.ts"],"sourcesContent":["import { createAuthClient } from \"better-auth/react\";\nexport type { SessionResult, UserInfo, SessionData } from \"./types\";\n\n// Initialize the Better Auth Client (for browser/client-side use)\nconst authClient = createAuthClient();\n\n/**\n * Client-side Auth instance.\n * Use this in your Next.js client components.\n * This is safe to use on the client as it doesn't contain secrets.\n */\nexport const client = {\n ...authClient,\n /**\n * Alias for signIn.\n */\n login: authClient.signIn\n};\n"],"mappings":";AAAA,SAAS,wBAAwB;AAIjC,IAAM,aAAa,iBAAiB;AAO7B,IAAM,SAAS;AAAA,EAClB,GAAG;AAAA;AAAA;AAAA;AAAA,EAIH,OAAO,WAAW;AACtB;","names":[]}
1
+ {"version":3,"sources":["../../src/client/nextjs.ts"],"sourcesContent":["import { createAuthClient } from \"better-auth/react\";\nexport type { SessionResult, UserInfo, SessionData } from \"./types\";\n\n// Initialize the Better Auth Client (for browser/client-side use)\nconst authClient = createAuthClient();\n\n/**\n * Client-side Auth instance.\n * Use this in your Next.js client components.\n */\nexport const client = authClient as typeof authClient & { login: typeof authClient.signIn };\nclient.login = authClient.signIn;\n"],"mappings":";AAAA,SAAS,wBAAwB;AAIjC,IAAM,aAAa,iBAAiB;AAM7B,IAAM,SAAS;AACtB,OAAO,QAAQ,WAAW;","names":[]}
@@ -25,13 +25,8 @@ __export(sveltekit_exports, {
25
25
  module.exports = __toCommonJS(sveltekit_exports);
26
26
  var import_svelte = require("better-auth/svelte");
27
27
  var authClient = (0, import_svelte.createAuthClient)();
28
- var client = {
29
- ...authClient,
30
- /**
31
- * Alias for signIn.
32
- */
33
- login: authClient.signIn
34
- };
28
+ var client = authClient;
29
+ client.login = authClient.signIn;
35
30
  // Annotate the CommonJS export names for ESM import in node:
36
31
  0 && (module.exports = {
37
32
  client
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/client/sveltekit.ts"],"sourcesContent":["import { createAuthClient } from \"better-auth/svelte\";\nexport type { SessionResult, UserInfo, SessionData } from \"./types\";\n\n// Initialize the Better Auth Client (for browser/client-side use)\nconst authClient = createAuthClient();\n\n/**\n * Client-side Auth instance.\n * Use this in your Svelte components and client-side logic.\n * This is safe to use on the client as it doesn't contain secrets.\n */\nexport const client = {\n ...authClient,\n /**\n * Alias for signIn.\n */\n login: authClient.signIn\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAiC;AAIjC,IAAM,iBAAa,gCAAiB;AAO7B,IAAM,SAAS;AAAA,EAClB,GAAG;AAAA;AAAA;AAAA;AAAA,EAIH,OAAO,WAAW;AACtB;","names":[]}
1
+ {"version":3,"sources":["../../src/client/sveltekit.ts"],"sourcesContent":["import { createAuthClient } from \"better-auth/svelte\";\nexport type { SessionResult, UserInfo, SessionData } from \"./types\";\n\n// Initialize the Better Auth Client (for browser/client-side use)\nconst authClient = createAuthClient();\n\n/**\n * Client-side Auth instance.\n * Use this in your Svelte components and client-side logic.\n */\nexport const client = authClient as typeof authClient & { login: typeof authClient.signIn };\nclient.login = authClient.signIn;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAiC;AAIjC,IAAM,iBAAa,gCAAiB;AAM7B,IAAM,SAAS;AACtB,OAAO,QAAQ,WAAW;","names":[]}