@neondatabase/auth 0.1.0-beta.20 → 0.1.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/{adapter-core-8s6XdCco.mjs → adapter-core-PD5NQpLE.mjs} +1 -1
  2. package/dist/{adapter-core-23fYTUxT.d.mts → adapter-core-y53SWo8w.d.mts} +8 -2
  3. package/dist/{better-auth-react-adapter-D9tIaEyQ.mjs → better-auth-react-adapter-B0XIXPUH.mjs} +1 -1
  4. package/dist/{supabase-adapter-Dr-pKvPt.d.mts → better-auth-react-adapter-B7zoQmoL.d.mts} +56 -144
  5. package/dist/index.d.mts +4 -5
  6. package/dist/index.mjs +2 -2
  7. package/dist/{neon-auth-2f58U8_-.mjs → neon-auth-DUbqaO2v.mjs} +1 -1
  8. package/dist/{neon-auth-CDYpC_O1.d.mts → neon-auth-oDgy6lQm.d.mts} +3 -3
  9. package/dist/next/index.d.mts +1 -64
  10. package/dist/next/index.mjs +4 -35
  11. package/dist/next/server/index.d.mts +50 -6
  12. package/dist/next/server/index.mjs +300 -1
  13. package/dist/react/adapters/index.d.mts +3 -4
  14. package/dist/react/adapters/index.mjs +2 -2
  15. package/dist/react/index.d.mts +4 -5
  16. package/dist/react/index.mjs +3 -3
  17. package/dist/react/ui/index.d.mts +1 -1
  18. package/dist/react/ui/index.mjs +1 -1
  19. package/dist/{supabase-adapter-BYMJSxOT.mjs → supabase-adapter-Bdw6aPGx.mjs} +1 -1
  20. package/dist/{better-auth-react-adapter-QFe5RtaM.d.mts → supabase-adapter-Dm56RKRF.d.mts} +287 -199
  21. package/dist/types/index.d.mts +1 -2
  22. package/dist/ui/.safelist.html +1 -1
  23. package/dist/ui/css.css +1 -1
  24. package/dist/ui/tailwind.css +1 -1
  25. package/dist/ui/theme-inline.css +41 -36
  26. package/dist/ui/theme.css +102 -75
  27. package/dist/{ui-Cg1EZzGG.mjs → ui-CrxGg6vQ.mjs} +27 -18
  28. package/dist/vanilla/adapters/index.d.mts +3 -4
  29. package/dist/vanilla/adapters/index.mjs +2 -2
  30. package/dist/vanilla/index.d.mts +3 -4
  31. package/dist/vanilla/index.mjs +2 -2
  32. package/package.json +3 -3
  33. package/dist/better-auth-types-BUiggBfa.d.mts +0 -9
  34. package/dist/index-Bga0CzOO.d.mts +0 -49
  35. package/dist/middleware-C7jHeulu.mjs +0 -303
  36. /package/dist/{index-BHI9uOzY.d.mts → index-CPnFzULh.d.mts} +0 -0
  37. /package/dist/{index-CSe4aQIZ.d.mts → index-CzsGMS7C.d.mts} +0 -0
  38. /package/dist/{index-LhFpnU-f.d.mts → index-OEBbnNdr.d.mts} +0 -0
@@ -1,22 +1,25 @@
1
- import { n as NeonAuthAdapterCoreAuthOptions, t as NeonAuthAdapterCore } from "./adapter-core-23fYTUxT.mjs";
1
+ import { n as NeonAuthAdapterCoreAuthOptions, r as SupportedBetterAuthClientPlugins, t as NeonAuthAdapterCore } from "./adapter-core-y53SWo8w.mjs";
2
2
  import * as better_auth_client23 from "better-auth/client";
3
+ import { createAuthClient } from "better-auth/client";
4
+ import * as _supabase_auth_js0 from "@supabase/auth-js";
5
+ import { AuthClient, JwtHeader, JwtPayload } from "@supabase/auth-js";
3
6
  import * as jose1 from "jose";
4
- import * as better_auth302 from "better-auth";
7
+ import * as better_auth303 from "better-auth";
5
8
  import * as _better_fetch_fetch177 from "@better-fetch/fetch";
6
9
  import * as better_auth_plugins11 from "better-auth/plugins";
7
- import * as nanostores6 from "nanostores";
10
+ import * as nanostores1 from "nanostores";
8
11
 
9
- //#region src/adapters/better-auth-react/better-auth-react-adapter.d.ts
10
- type BetterAuthReactAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
12
+ //#region src/adapters/better-auth-vanilla/better-auth-vanilla-adapter.d.ts
13
+ type BetterAuthVanillaAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
11
14
  /**
12
- * Internal implementation class - use BetterAuthReactAdapter factory function instead
15
+ * Internal implementation class - use BetterAuthVanillaAdapter factory function instead
13
16
  */
14
- declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
17
+ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
15
18
  private _betterAuth;
16
19
  constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
17
20
  getBetterAuthInstance(): {
18
- useActiveOrganization: () => {
19
- data: better_auth302.Prettify<{
21
+ useActiveOrganization: nanostores1.PreinitializedWritableAtom<{
22
+ data: better_auth303.Prettify<{
20
23
  id: string;
21
24
  name: string;
22
25
  slug: string;
@@ -52,10 +55,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
52
55
  isPending: boolean;
53
56
  isRefetching: boolean;
54
57
  refetch: (queryParams?: {
55
- query?: better_auth302.SessionQueryParams;
58
+ query?: better_auth303.SessionQueryParams;
56
59
  } | undefined) => Promise<void>;
57
- };
58
- useListOrganizations: () => {
60
+ }> & object;
61
+ useListOrganizations: nanostores1.PreinitializedWritableAtom<{
59
62
  data: {
60
63
  id: string;
61
64
  name: string;
@@ -68,10 +71,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
68
71
  isPending: boolean;
69
72
  isRefetching: boolean;
70
73
  refetch: (queryParams?: {
71
- query?: better_auth302.SessionQueryParams;
74
+ query?: better_auth303.SessionQueryParams;
72
75
  } | undefined) => Promise<void>;
73
- };
74
- useActiveMember: () => {
76
+ }> & object;
77
+ useActiveMember: nanostores1.PreinitializedWritableAtom<{
75
78
  data: {
76
79
  id: string;
77
80
  organizationId: string;
@@ -83,10 +86,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
83
86
  isPending: boolean;
84
87
  isRefetching: boolean;
85
88
  refetch: (queryParams?: {
86
- query?: better_auth302.SessionQueryParams;
89
+ query?: better_auth303.SessionQueryParams;
87
90
  } | undefined) => Promise<void>;
88
- };
89
- useActiveMemberRole: () => {
91
+ }> & object;
92
+ useActiveMemberRole: nanostores1.PreinitializedWritableAtom<{
90
93
  data: {
91
94
  role: string;
92
95
  } | null;
@@ -94,11 +97,11 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
94
97
  isPending: boolean;
95
98
  isRefetching: boolean;
96
99
  refetch: (queryParams?: {
97
- query?: better_auth302.SessionQueryParams;
100
+ query?: better_auth303.SessionQueryParams;
98
101
  } | undefined) => Promise<void>;
99
- };
102
+ }> & object;
100
103
  } & {
101
- token: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
104
+ token: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
102
105
  query?: Record<string, any> | undefined;
103
106
  fetchOptions?: FetchOptions | undefined;
104
107
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
@@ -109,10 +112,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
109
112
  }, FetchOptions["throw"] extends true ? true : false>>;
110
113
  } & {
111
114
  admin: {
112
- setRole: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
115
+ setRole: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
113
116
  userId: string;
114
117
  role: "user" | "admin" | ("user" | "admin")[];
115
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
118
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
116
119
  userId: string;
117
120
  role: "user" | "admin" | ("user" | "admin")[];
118
121
  } & {
@@ -126,9 +129,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
126
129
  };
127
130
  } & {
128
131
  admin: {
129
- getUser: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
132
+ getUser: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<{
130
133
  id: string;
131
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
134
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
132
135
  query: {
133
136
  id: string;
134
137
  };
@@ -148,13 +151,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
148
151
  };
149
152
  } & {
150
153
  admin: {
151
- createUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
154
+ createUser: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
152
155
  email: string;
153
156
  password: string;
154
157
  name: string;
155
158
  role?: "user" | "admin" | ("user" | "admin")[] | undefined;
156
159
  data?: Record<string, any> | undefined;
157
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
160
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
158
161
  email: string;
159
162
  password: string;
160
163
  name: string;
@@ -171,10 +174,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
171
174
  };
172
175
  } & {
173
176
  admin: {
174
- updateUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
177
+ updateUser: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
175
178
  userId: unknown;
176
179
  data: Record<any, any>;
177
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
180
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
178
181
  userId: unknown;
179
182
  data: Record<any, any>;
180
183
  } & {
@@ -186,7 +189,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
186
189
  };
187
190
  } & {
188
191
  admin: {
189
- listUsers: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
192
+ listUsers: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<{
190
193
  searchValue?: string | undefined;
191
194
  searchField?: "email" | "name" | undefined;
192
195
  searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
@@ -197,7 +200,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
197
200
  filterField?: string | undefined;
198
201
  filterValue?: string | number | boolean | undefined;
199
202
  filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
200
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
203
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
201
204
  query: {
202
205
  searchValue?: string | undefined;
203
206
  searchField?: "email" | "name" | undefined;
@@ -226,9 +229,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
226
229
  };
227
230
  } & {
228
231
  admin: {
229
- listUserSessions: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
232
+ listUserSessions: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
230
233
  userId: unknown;
231
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
234
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
232
235
  userId: unknown;
233
236
  } & {
234
237
  fetchOptions?: FetchOptions | undefined;
@@ -241,9 +244,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
241
244
  };
242
245
  } & {
243
246
  admin: {
244
- unbanUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
247
+ unbanUser: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
245
248
  userId: unknown;
246
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
249
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
247
250
  userId: unknown;
248
251
  } & {
249
252
  fetchOptions?: FetchOptions | undefined;
@@ -264,11 +267,11 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
264
267
  };
265
268
  } & {
266
269
  admin: {
267
- banUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
270
+ banUser: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
268
271
  userId: unknown;
269
272
  banReason?: string | undefined;
270
273
  banExpiresIn?: number | undefined;
271
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
274
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
272
275
  userId: unknown;
273
276
  banReason?: string | undefined;
274
277
  banExpiresIn?: number | undefined;
@@ -291,9 +294,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
291
294
  };
292
295
  } & {
293
296
  admin: {
294
- impersonateUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
297
+ impersonateUser: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
295
298
  userId: unknown;
296
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
299
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
297
300
  userId: unknown;
298
301
  } & {
299
302
  fetchOptions?: FetchOptions | undefined;
@@ -316,12 +319,12 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
316
319
  };
317
320
  } & {
318
321
  admin: {
319
- stopImpersonating: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
322
+ stopImpersonating: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
320
323
  query?: Record<string, any> | undefined;
321
324
  fetchOptions?: FetchOptions | undefined;
322
325
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
323
- session: better_auth302.Session & Record<string, any>;
324
- user: better_auth302.User & Record<string, any>;
326
+ session: better_auth303.Session & Record<string, any>;
327
+ user: better_auth303.User & Record<string, any>;
325
328
  }, {
326
329
  code?: string | undefined;
327
330
  message?: string | undefined;
@@ -329,9 +332,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
329
332
  };
330
333
  } & {
331
334
  admin: {
332
- revokeUserSession: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
335
+ revokeUserSession: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
333
336
  sessionToken: string;
334
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
337
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
335
338
  sessionToken: string;
336
339
  } & {
337
340
  fetchOptions?: FetchOptions | undefined;
@@ -344,9 +347,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
344
347
  };
345
348
  } & {
346
349
  admin: {
347
- revokeUserSessions: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
350
+ revokeUserSessions: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
348
351
  userId: unknown;
349
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
352
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
350
353
  userId: unknown;
351
354
  } & {
352
355
  fetchOptions?: FetchOptions | undefined;
@@ -359,9 +362,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
359
362
  };
360
363
  } & {
361
364
  admin: {
362
- removeUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
365
+ removeUser: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
363
366
  userId: unknown;
364
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
367
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
365
368
  userId: unknown;
366
369
  } & {
367
370
  fetchOptions?: FetchOptions | undefined;
@@ -374,10 +377,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
374
377
  };
375
378
  } & {
376
379
  admin: {
377
- setUserPassword: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
380
+ setUserPassword: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
378
381
  newPassword: string;
379
382
  userId: unknown;
380
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
383
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
381
384
  newPassword: string;
382
385
  userId: unknown;
383
386
  } & {
@@ -391,7 +394,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
391
394
  };
392
395
  } & {
393
396
  admin: {
394
- hasPermission: <FetchOptions extends better_auth302.ClientFetchOption<Partial<({
397
+ hasPermission: <FetchOptions extends better_auth303.ClientFetchOption<Partial<({
395
398
  permission: {
396
399
  readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
397
400
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
@@ -406,7 +409,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
406
409
  }) & {
407
410
  userId?: string | undefined;
408
411
  role?: "user" | "admin" | undefined;
409
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<(({
412
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<(({
410
413
  permission: {
411
414
  readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
412
415
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
@@ -433,14 +436,14 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
433
436
  };
434
437
  } & {
435
438
  organization: {
436
- create: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
439
+ create: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
437
440
  name: string;
438
441
  slug: string;
439
442
  userId?: string | undefined;
440
443
  logo?: string | undefined;
441
444
  metadata?: Record<string, any> | undefined;
442
445
  keepCurrentActiveOrganization?: boolean | undefined;
443
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
446
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
444
447
  name: string;
445
448
  slug: string;
446
449
  userId?: string | undefined;
@@ -472,7 +475,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
472
475
  };
473
476
  } & {
474
477
  organization: {
475
- update: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
478
+ update: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
476
479
  data: {
477
480
  name?: string | undefined;
478
481
  slug?: string | undefined;
@@ -480,7 +483,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
480
483
  metadata?: Record<string, any> | undefined;
481
484
  } & Partial<{}>;
482
485
  organizationId?: string | undefined;
483
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
486
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
484
487
  data: {
485
488
  name?: string | undefined;
486
489
  slug?: string | undefined;
@@ -506,9 +509,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
506
509
  };
507
510
  } & {
508
511
  organization: {
509
- delete: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
512
+ delete: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
510
513
  organizationId: string;
511
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
514
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
512
515
  organizationId: string;
513
516
  } & {
514
517
  fetchOptions?: FetchOptions | undefined;
@@ -526,10 +529,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
526
529
  };
527
530
  } & {
528
531
  organization: {
529
- setActive: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
532
+ setActive: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
530
533
  organizationId?: string | null | undefined;
531
534
  organizationSlug?: string | undefined;
532
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
535
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
533
536
  organizationId?: string | null | undefined;
534
537
  organizationSlug?: string | undefined;
535
538
  } & {
@@ -572,11 +575,11 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
572
575
  };
573
576
  } & {
574
577
  organization: {
575
- getFullOrganization: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
578
+ getFullOrganization: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<{
576
579
  organizationId?: string | undefined;
577
580
  organizationSlug?: string | undefined;
578
581
  membersLimit?: string | number | undefined;
579
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
582
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
580
583
  query?: {
581
584
  organizationId?: string | undefined;
582
585
  organizationSlug?: string | undefined;
@@ -621,7 +624,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
621
624
  };
622
625
  } & {
623
626
  organization: {
624
- list: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
627
+ list: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
625
628
  query?: Record<string, any> | undefined;
626
629
  fetchOptions?: FetchOptions | undefined;
627
630
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
@@ -638,12 +641,12 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
638
641
  };
639
642
  } & {
640
643
  organization: {
641
- inviteMember: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
644
+ inviteMember: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
642
645
  email: string;
643
646
  role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
644
647
  organizationId?: string | undefined;
645
648
  resend?: boolean | undefined;
646
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
649
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
647
650
  email: string;
648
651
  role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
649
652
  organizationId?: string | undefined;
@@ -666,9 +669,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
666
669
  };
667
670
  } & {
668
671
  organization: {
669
- cancelInvitation: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
672
+ cancelInvitation: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
670
673
  invitationId: string;
671
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
674
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
672
675
  invitationId: string;
673
676
  } & {
674
677
  fetchOptions?: FetchOptions | undefined;
@@ -688,9 +691,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
688
691
  };
689
692
  } & {
690
693
  organization: {
691
- acceptInvitation: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
694
+ acceptInvitation: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
692
695
  invitationId: string;
693
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
696
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
694
697
  invitationId: string;
695
698
  } & {
696
699
  fetchOptions?: FetchOptions | undefined;
@@ -719,9 +722,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
719
722
  };
720
723
  } & {
721
724
  organization: {
722
- getInvitation: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
725
+ getInvitation: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<{
723
726
  id: string;
724
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
727
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
725
728
  query: {
726
729
  id: string;
727
730
  };
@@ -746,9 +749,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
746
749
  };
747
750
  } & {
748
751
  organization: {
749
- rejectInvitation: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
752
+ rejectInvitation: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
750
753
  invitationId: string;
751
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
754
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
752
755
  invitationId: string;
753
756
  } & {
754
757
  fetchOptions?: FetchOptions | undefined;
@@ -771,9 +774,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
771
774
  };
772
775
  } & {
773
776
  organization: {
774
- listInvitations: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
777
+ listInvitations: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<{
775
778
  organizationId?: string | undefined;
776
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
779
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
777
780
  query?: {
778
781
  organizationId?: string | undefined;
779
782
  } | undefined;
@@ -794,7 +797,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
794
797
  };
795
798
  } & {
796
799
  organization: {
797
- getActiveMember: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
800
+ getActiveMember: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
798
801
  query?: Record<string, any> | undefined;
799
802
  fetchOptions?: FetchOptions | undefined;
800
803
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<Omit<{
@@ -810,7 +813,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
810
813
  image?: string | undefined;
811
814
  };
812
815
  } & {
813
- user: better_auth302.User;
816
+ user: better_auth303.User;
814
817
  }, "user"> & {
815
818
  user: {
816
819
  id: string;
@@ -825,9 +828,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
825
828
  };
826
829
  } & {
827
830
  organization: {
828
- checkSlug: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
831
+ checkSlug: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
829
832
  slug: string;
830
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
833
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
831
834
  slug: string;
832
835
  } & {
833
836
  fetchOptions?: FetchOptions | undefined;
@@ -840,10 +843,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
840
843
  };
841
844
  } & {
842
845
  organization: {
843
- removeMember: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
846
+ removeMember: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
844
847
  memberIdOrEmail: string;
845
848
  organizationId?: string | undefined;
846
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
849
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
847
850
  memberIdOrEmail: string;
848
851
  organizationId?: string | undefined;
849
852
  } & {
@@ -869,12 +872,12 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
869
872
  };
870
873
  } & {
871
874
  organization: {
872
- updateMemberRole: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
873
- role: better_auth302.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth302.LiteralString[];
875
+ updateMemberRole: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
876
+ role: better_auth303.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth303.LiteralString[];
874
877
  memberId: string;
875
878
  organizationId?: string | undefined;
876
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
877
- role: better_auth302.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth302.LiteralString[];
879
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
880
+ role: better_auth303.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth303.LiteralString[];
878
881
  memberId: string;
879
882
  organizationId?: string | undefined;
880
883
  } & {
@@ -898,9 +901,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
898
901
  };
899
902
  } & {
900
903
  organization: {
901
- leave: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
904
+ leave: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
902
905
  organizationId: string;
903
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
906
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
904
907
  organizationId: string;
905
908
  } & {
906
909
  fetchOptions?: FetchOptions | undefined;
@@ -917,7 +920,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
917
920
  image?: string | undefined;
918
921
  };
919
922
  } & {
920
- user: better_auth302.User;
923
+ user: better_auth303.User;
921
924
  }, "user"> & {
922
925
  user: {
923
926
  id: string;
@@ -932,9 +935,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
932
935
  };
933
936
  } & {
934
937
  organization: {
935
- listUserInvitations: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
938
+ listUserInvitations: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<{
936
939
  email?: string | undefined;
937
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
940
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
938
941
  query?: {
939
942
  email?: string | undefined;
940
943
  } | undefined;
@@ -966,7 +969,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
966
969
  };
967
970
  } & {
968
971
  organization: {
969
- listMembers: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
972
+ listMembers: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<{
970
973
  limit?: string | number | undefined;
971
974
  offset?: string | number | undefined;
972
975
  sortBy?: string | undefined;
@@ -976,7 +979,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
976
979
  filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
977
980
  organizationId?: string | undefined;
978
981
  organizationSlug?: string | undefined;
979
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
982
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
980
983
  query?: {
981
984
  limit?: string | number | undefined;
982
985
  offset?: string | number | undefined;
@@ -1018,11 +1021,11 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1018
1021
  };
1019
1022
  } & {
1020
1023
  organization: {
1021
- getActiveMemberRole: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
1024
+ getActiveMemberRole: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<{
1022
1025
  userId?: string | undefined;
1023
1026
  organizationId?: string | undefined;
1024
1027
  organizationSlug?: string | undefined;
1025
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1028
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
1026
1029
  query?: {
1027
1030
  userId?: string | undefined;
1028
1031
  organizationId?: string | undefined;
@@ -1038,7 +1041,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1038
1041
  };
1039
1042
  } & {
1040
1043
  organization: {
1041
- hasPermission: <FetchOptions extends better_auth302.ClientFetchOption<Partial<({
1044
+ hasPermission: <FetchOptions extends better_auth303.ClientFetchOption<Partial<({
1042
1045
  permission: {
1043
1046
  readonly organization?: ("delete" | "update")[] | undefined;
1044
1047
  readonly member?: ("delete" | "create" | "update")[] | undefined;
@@ -1058,7 +1061,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1058
1061
  permission?: never | undefined;
1059
1062
  }) & {
1060
1063
  organizationId?: string | undefined;
1061
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<(({
1064
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<(({
1062
1065
  permission: {
1063
1066
  readonly organization?: ("delete" | "update")[] | undefined;
1064
1067
  readonly member?: ("delete" | "create" | "update")[] | undefined;
@@ -1090,10 +1093,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1090
1093
  };
1091
1094
  } & {
1092
1095
  emailOtp: {
1093
- sendVerificationOtp: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1096
+ sendVerificationOtp: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1094
1097
  email: string;
1095
1098
  type: "sign-in" | "email-verification" | "forget-password";
1096
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1099
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1097
1100
  email: string;
1098
1101
  type: "sign-in" | "email-verification" | "forget-password";
1099
1102
  } & {
@@ -1107,11 +1110,11 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1107
1110
  };
1108
1111
  } & {
1109
1112
  emailOtp: {
1110
- checkVerificationOtp: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1113
+ checkVerificationOtp: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1111
1114
  email: string;
1112
1115
  type: "sign-in" | "email-verification" | "forget-password";
1113
1116
  otp: string;
1114
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1117
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1115
1118
  email: string;
1116
1119
  type: "sign-in" | "email-verification" | "forget-password";
1117
1120
  otp: string;
@@ -1126,10 +1129,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1126
1129
  };
1127
1130
  } & {
1128
1131
  emailOtp: {
1129
- verifyEmail: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1132
+ verifyEmail: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1130
1133
  email: string;
1131
1134
  otp: string;
1132
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1135
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1133
1136
  email: string;
1134
1137
  otp: string;
1135
1138
  } & {
@@ -1165,10 +1168,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1165
1168
  };
1166
1169
  } & {
1167
1170
  signIn: {
1168
- emailOtp: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1171
+ emailOtp: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1169
1172
  email: string;
1170
1173
  otp: string;
1171
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1174
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1172
1175
  email: string;
1173
1176
  otp: string;
1174
1177
  } & {
@@ -1191,9 +1194,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1191
1194
  };
1192
1195
  } & {
1193
1196
  forgetPassword: {
1194
- emailOtp: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1197
+ emailOtp: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1195
1198
  email: string;
1196
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1199
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1197
1200
  email: string;
1198
1201
  } & {
1199
1202
  fetchOptions?: FetchOptions | undefined;
@@ -1206,11 +1209,11 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1206
1209
  };
1207
1210
  } & {
1208
1211
  emailOtp: {
1209
- resetPassword: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1212
+ resetPassword: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1210
1213
  email: string;
1211
1214
  otp: string;
1212
1215
  password: string;
1213
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1216
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1214
1217
  email: string;
1215
1218
  otp: string;
1216
1219
  password: string;
@@ -1225,7 +1228,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1225
1228
  };
1226
1229
  } & {
1227
1230
  signIn: {
1228
- social: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1231
+ social: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1229
1232
  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";
1230
1233
  callbackURL?: string | undefined;
1231
1234
  newUserCallbackURL?: string | undefined;
@@ -1242,7 +1245,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1242
1245
  requestSignUp?: boolean | undefined;
1243
1246
  loginHint?: string | undefined;
1244
1247
  additionalData?: Record<string, any> | undefined;
1245
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1248
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1246
1249
  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";
1247
1250
  callbackURL?: string | undefined;
1248
1251
  newUserCallbackURL?: string | undefined;
@@ -1283,7 +1286,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1283
1286
  }, FetchOptions["throw"] extends true ? true : false>>;
1284
1287
  };
1285
1288
  } & {
1286
- signOut: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1289
+ signOut: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
1287
1290
  query?: Record<string, any> | undefined;
1288
1291
  fetchOptions?: FetchOptions | undefined;
1289
1292
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
@@ -1294,14 +1297,14 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1294
1297
  }, FetchOptions["throw"] extends true ? true : false>>;
1295
1298
  } & {
1296
1299
  signUp: {
1297
- email: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1300
+ email: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1298
1301
  name: string;
1299
1302
  email: string;
1300
1303
  password: string;
1301
1304
  image?: string | undefined;
1302
1305
  callbackURL?: string | undefined;
1303
1306
  rememberMe?: boolean | undefined;
1304
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1307
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1305
1308
  email: string;
1306
1309
  name: string;
1307
1310
  password: string;
@@ -1337,12 +1340,12 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1337
1340
  };
1338
1341
  } & {
1339
1342
  signIn: {
1340
- email: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1343
+ email: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1341
1344
  email: string;
1342
1345
  password: string;
1343
1346
  callbackURL?: string | undefined;
1344
1347
  rememberMe?: boolean | undefined;
1345
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1348
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1346
1349
  email: string;
1347
1350
  password: string;
1348
1351
  callbackURL?: string | undefined;
@@ -1368,12 +1371,12 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1368
1371
  }, FetchOptions["throw"] extends true ? true : false>>;
1369
1372
  };
1370
1373
  } & {
1371
- resetPassword: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1374
+ resetPassword: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1372
1375
  newPassword: string;
1373
1376
  token?: string | undefined;
1374
1377
  }> & Record<string, any>, Partial<{
1375
1378
  token?: string | undefined;
1376
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1379
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1377
1380
  newPassword: string;
1378
1381
  token?: string | undefined;
1379
1382
  } & {
@@ -1385,10 +1388,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1385
1388
  message?: string | undefined;
1386
1389
  }, FetchOptions["throw"] extends true ? true : false>>;
1387
1390
  } & {
1388
- verifyEmail: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
1391
+ verifyEmail: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<{
1389
1392
  token: string;
1390
1393
  callbackURL?: string | undefined;
1391
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1394
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1392
1395
  query: {
1393
1396
  token: string;
1394
1397
  callbackURL?: string | undefined;
@@ -1401,10 +1404,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1401
1404
  message?: string | undefined;
1402
1405
  }, FetchOptions["throw"] extends true ? true : false>>;
1403
1406
  } & {
1404
- sendVerificationEmail: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1407
+ sendVerificationEmail: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1405
1408
  email: string;
1406
1409
  callbackURL?: string | undefined;
1407
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1410
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1408
1411
  email: string;
1409
1412
  callbackURL?: string | undefined;
1410
1413
  } & {
@@ -1416,10 +1419,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1416
1419
  message?: string | undefined;
1417
1420
  }, FetchOptions["throw"] extends true ? true : false>>;
1418
1421
  } & {
1419
- changeEmail: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1422
+ changeEmail: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1420
1423
  newEmail: string;
1421
1424
  callbackURL?: string | undefined;
1422
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1425
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1423
1426
  newEmail: string;
1424
1427
  callbackURL?: string | undefined;
1425
1428
  } & {
@@ -1431,11 +1434,11 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1431
1434
  message?: string | undefined;
1432
1435
  }, FetchOptions["throw"] extends true ? true : false>>;
1433
1436
  } & {
1434
- changePassword: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1437
+ changePassword: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1435
1438
  newPassword: string;
1436
1439
  currentPassword: string;
1437
1440
  revokeOtherSessions?: boolean | undefined;
1438
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1441
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1439
1442
  newPassword: string;
1440
1443
  currentPassword: string;
1441
1444
  revokeOtherSessions?: boolean | undefined;
@@ -1457,10 +1460,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1457
1460
  message?: string | undefined;
1458
1461
  }, FetchOptions["throw"] extends true ? true : false>>;
1459
1462
  } & {
1460
- updateUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<Partial<{}> & {
1463
+ updateUser: <FetchOptions extends better_auth303.ClientFetchOption<Partial<Partial<{}> & {
1461
1464
  name?: string | undefined;
1462
1465
  image?: string | undefined | null;
1463
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1466
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
1464
1467
  image?: (string | null) | undefined;
1465
1468
  name?: string | undefined;
1466
1469
  fetchOptions?: FetchOptions | undefined;
@@ -1471,11 +1474,11 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1471
1474
  message?: string | undefined;
1472
1475
  }, FetchOptions["throw"] extends true ? true : false>>;
1473
1476
  } & {
1474
- deleteUser: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1477
+ deleteUser: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1475
1478
  callbackURL?: string | undefined;
1476
1479
  password?: string | undefined;
1477
1480
  token?: string | undefined;
1478
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1481
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
1479
1482
  callbackURL?: string | undefined;
1480
1483
  password?: string | undefined;
1481
1484
  token?: string | undefined;
@@ -1489,10 +1492,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1489
1492
  message?: string | undefined;
1490
1493
  }, FetchOptions["throw"] extends true ? true : false>>;
1491
1494
  } & {
1492
- requestPasswordReset: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1495
+ requestPasswordReset: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1493
1496
  email: string;
1494
1497
  redirectTo?: string | undefined;
1495
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1498
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1496
1499
  email: string;
1497
1500
  redirectTo?: string | undefined;
1498
1501
  } & {
@@ -1506,11 +1509,11 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1506
1509
  }, FetchOptions["throw"] extends true ? true : false>>;
1507
1510
  } & {
1508
1511
  resetPassword: {
1509
- ":token": <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
1512
+ ":token": <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<{
1510
1513
  callbackURL: string;
1511
1514
  }> & Record<string, any>, {
1512
1515
  token: string;
1513
- }>>(data_0: better_auth302.Prettify<{
1516
+ }>>(data_0: better_auth303.Prettify<{
1514
1517
  query: {
1515
1518
  callbackURL: string;
1516
1519
  };
@@ -1521,10 +1524,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1521
1524
  }, FetchOptions["throw"] extends true ? true : false>>;
1522
1525
  };
1523
1526
  } & {
1524
- listSessions: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1527
+ listSessions: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
1525
1528
  query?: Record<string, any> | undefined;
1526
1529
  fetchOptions?: FetchOptions | undefined;
1527
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<better_auth302.Prettify<{
1530
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<better_auth303.Prettify<{
1528
1531
  id: string;
1529
1532
  createdAt: Date;
1530
1533
  updatedAt: Date;
@@ -1538,9 +1541,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1538
1541
  message?: string | undefined;
1539
1542
  }, FetchOptions["throw"] extends true ? true : false>>;
1540
1543
  } & {
1541
- revokeSession: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1544
+ revokeSession: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1542
1545
  token: string;
1543
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1546
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1544
1547
  token: string;
1545
1548
  } & {
1546
1549
  fetchOptions?: FetchOptions | undefined;
@@ -1551,7 +1554,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1551
1554
  message?: string | undefined;
1552
1555
  }, FetchOptions["throw"] extends true ? true : false>>;
1553
1556
  } & {
1554
- revokeSessions: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1557
+ revokeSessions: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
1555
1558
  query?: Record<string, any> | undefined;
1556
1559
  fetchOptions?: FetchOptions | undefined;
1557
1560
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
@@ -1561,7 +1564,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1561
1564
  message?: string | undefined;
1562
1565
  }, FetchOptions["throw"] extends true ? true : false>>;
1563
1566
  } & {
1564
- revokeOtherSessions: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1567
+ revokeOtherSessions: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
1565
1568
  query?: Record<string, any> | undefined;
1566
1569
  fetchOptions?: FetchOptions | undefined;
1567
1570
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
@@ -1571,7 +1574,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1571
1574
  message?: string | undefined;
1572
1575
  }, FetchOptions["throw"] extends true ? true : false>>;
1573
1576
  } & {
1574
- linkSocial: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1577
+ linkSocial: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1575
1578
  provider: unknown;
1576
1579
  callbackURL?: string | undefined;
1577
1580
  idToken?: {
@@ -1586,7 +1589,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1586
1589
  errorCallbackURL?: string | undefined;
1587
1590
  disableRedirect?: boolean | undefined;
1588
1591
  additionalData?: Record<string, any> | undefined;
1589
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1592
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1590
1593
  provider: unknown;
1591
1594
  callbackURL?: string | undefined;
1592
1595
  idToken?: {
@@ -1611,7 +1614,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1611
1614
  message?: string | undefined;
1612
1615
  }, FetchOptions["throw"] extends true ? true : false>>;
1613
1616
  } & {
1614
- listAccounts: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1617
+ listAccounts: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
1615
1618
  query?: Record<string, any> | undefined;
1616
1619
  fetchOptions?: FetchOptions | undefined;
1617
1620
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
@@ -1628,10 +1631,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1628
1631
  }, FetchOptions["throw"] extends true ? true : false>>;
1629
1632
  } & {
1630
1633
  deleteUser: {
1631
- callback: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
1634
+ callback: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<{
1632
1635
  token: string;
1633
1636
  callbackURL?: string | undefined;
1634
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1637
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1635
1638
  query: {
1636
1639
  token: string;
1637
1640
  callbackURL?: string | undefined;
@@ -1646,10 +1649,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1646
1649
  }, FetchOptions["throw"] extends true ? true : false>>;
1647
1650
  };
1648
1651
  } & {
1649
- unlinkAccount: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1652
+ unlinkAccount: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1650
1653
  providerId: string;
1651
1654
  accountId?: string | undefined;
1652
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1655
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1653
1656
  providerId: string;
1654
1657
  accountId?: string | undefined;
1655
1658
  } & {
@@ -1661,11 +1664,11 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1661
1664
  message?: string | undefined;
1662
1665
  }, FetchOptions["throw"] extends true ? true : false>>;
1663
1666
  } & {
1664
- refreshToken: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1667
+ refreshToken: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1665
1668
  providerId: string;
1666
1669
  accountId?: string | undefined;
1667
1670
  userId?: string | undefined;
1668
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1671
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1669
1672
  providerId: string;
1670
1673
  accountId?: string | undefined;
1671
1674
  userId?: string | undefined;
@@ -1685,11 +1688,11 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1685
1688
  message?: string | undefined;
1686
1689
  }, FetchOptions["throw"] extends true ? true : false>>;
1687
1690
  } & {
1688
- getAccessToken: <FetchOptions extends better_auth302.ClientFetchOption<Partial<{
1691
+ getAccessToken: <FetchOptions extends better_auth303.ClientFetchOption<Partial<{
1689
1692
  providerId: string;
1690
1693
  accountId?: string | undefined;
1691
1694
  userId?: string | undefined;
1692
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth302.Prettify<{
1695
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth303.Prettify<{
1693
1696
  providerId: string;
1694
1697
  accountId?: string | undefined;
1695
1698
  userId?: string | undefined;
@@ -1705,25 +1708,25 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1705
1708
  message?: string | undefined;
1706
1709
  }, FetchOptions["throw"] extends true ? true : false>>;
1707
1710
  } & {
1708
- accountInfo: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
1711
+ accountInfo: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<{
1709
1712
  accountId?: string | undefined;
1710
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1713
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
1711
1714
  query?: {
1712
1715
  accountId?: string | undefined;
1713
1716
  } | undefined;
1714
1717
  fetchOptions?: FetchOptions | undefined;
1715
1718
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch177.BetterFetchResponse<{
1716
- user: better_auth302.OAuth2UserInfo;
1719
+ user: better_auth303.OAuth2UserInfo;
1717
1720
  data: Record<string, any>;
1718
1721
  }, {
1719
1722
  code?: string | undefined;
1720
1723
  message?: string | undefined;
1721
1724
  }, FetchOptions["throw"] extends true ? true : false>>;
1722
1725
  } & {
1723
- getSession: <FetchOptions extends better_auth302.ClientFetchOption<never, Partial<{
1726
+ getSession: <FetchOptions extends better_auth303.ClientFetchOption<never, Partial<{
1724
1727
  disableCookieCache?: unknown;
1725
1728
  disableRefresh?: unknown;
1726
- }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth302.Prettify<{
1729
+ }> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth303.Prettify<{
1727
1730
  query?: {
1728
1731
  disableCookieCache?: unknown;
1729
1732
  disableRefresh?: unknown;
@@ -1901,7 +1904,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1901
1904
  }) => boolean;
1902
1905
  };
1903
1906
  } & {
1904
- useSession: () => {
1907
+ useSession: nanostores1.Atom<{
1905
1908
  data: {
1906
1909
  user: {
1907
1910
  id: string;
@@ -1929,42 +1932,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
1929
1932
  activeOrganizationId?: string | null | undefined;
1930
1933
  };
1931
1934
  } | null;
1932
- isPending: boolean;
1933
- isRefetching: boolean;
1934
1935
  error: _better_fetch_fetch177.BetterFetchError | null;
1935
- refetch: (queryParams?: {
1936
- query?: better_auth302.SessionQueryParams;
1937
- } | undefined) => Promise<void>;
1938
- };
1939
- $Infer: {
1940
- Session: {
1941
- user: {
1942
- id: string;
1943
- createdAt: Date;
1944
- updatedAt: Date;
1945
- email: string;
1946
- emailVerified: boolean;
1947
- name: string;
1948
- image?: string | null | undefined;
1949
- banned: boolean | null | undefined;
1950
- role?: string | null | undefined;
1951
- banReason?: string | null | undefined;
1952
- banExpires?: Date | null | undefined;
1953
- };
1954
- session: {
1955
- id: string;
1956
- createdAt: Date;
1957
- updatedAt: Date;
1958
- userId: string;
1959
- expiresAt: Date;
1960
- token: string;
1961
- ipAddress?: string | null | undefined;
1962
- userAgent?: string | null | undefined;
1963
- impersonatedBy?: string | null | undefined;
1964
- activeOrganizationId?: string | null | undefined;
1965
- };
1966
- };
1967
- };
1936
+ isPending: boolean;
1937
+ }>;
1968
1938
  $fetch: _better_fetch_fetch177.BetterFetch<{
1969
1939
  plugins: (_better_fetch_fetch177.BetterFetchPlugin | {
1970
1940
  id: string;
@@ -2034,7 +2004,36 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
2034
2004
  $store: {
2035
2005
  notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
2036
2006
  listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
2037
- atoms: Record<string, nanostores6.WritableAtom<any>>;
2007
+ atoms: Record<string, nanostores1.WritableAtom<any>>;
2008
+ };
2009
+ $Infer: {
2010
+ Session: {
2011
+ user: {
2012
+ id: string;
2013
+ createdAt: Date;
2014
+ updatedAt: Date;
2015
+ email: string;
2016
+ emailVerified: boolean;
2017
+ name: string;
2018
+ image?: string | null | undefined;
2019
+ banned: boolean | null | undefined;
2020
+ role?: string | null | undefined;
2021
+ banReason?: string | null | undefined;
2022
+ banExpires?: Date | null | undefined;
2023
+ };
2024
+ session: {
2025
+ id: string;
2026
+ createdAt: Date;
2027
+ updatedAt: Date;
2028
+ userId: string;
2029
+ expiresAt: Date;
2030
+ token: string;
2031
+ ipAddress?: string | null | undefined;
2032
+ userAgent?: string | null | undefined;
2033
+ impersonatedBy?: string | null | undefined;
2034
+ activeOrganizationId?: string | null | undefined;
2035
+ };
2036
+ };
2038
2037
  };
2039
2038
  $ERROR_CODES: {
2040
2039
  readonly FAILED_TO_CREATE_USER: "Failed to create user";
@@ -2141,12 +2140,101 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
2141
2140
  };
2142
2141
  };
2143
2142
  }
2144
- /** Instance type for BetterAuthReactAdapter */
2145
- type BetterAuthReactAdapterInstance = BetterAuthReactAdapterImpl;
2143
+ /** Instance type for BetterAuthVanillaAdapter */
2144
+ type BetterAuthVanillaAdapterInstance = BetterAuthVanillaAdapterImpl;
2145
+ /** Builder type that creates adapter instances */
2146
+ type BetterAuthVanillaAdapterBuilder = (url: string, fetchOptions?: {
2147
+ headers?: Record<string, string>;
2148
+ }) => BetterAuthVanillaAdapterInstance;
2149
+ /**
2150
+ * Factory function that returns an adapter builder.
2151
+ * The builder is called by createClient/createAuthClient with the URL.
2152
+ *
2153
+ * @param options - Optional adapter configuration (baseURL is injected separately)
2154
+ * @returns A builder function that creates the adapter instance
2155
+ *
2156
+ * @example
2157
+ * ```typescript
2158
+ * const client = createClient({
2159
+ * auth: {
2160
+ * url: 'https://auth.example.com',
2161
+ * adapter: BetterAuthVanillaAdapter(),
2162
+ * },
2163
+ * dataApi: { url: 'https://data-api.example.com' },
2164
+ * });
2165
+ * ```
2166
+ */
2167
+ declare function BetterAuthVanillaAdapter(options?: BetterAuthVanillaAdapterOptions): BetterAuthVanillaAdapterBuilder;
2168
+ //#endregion
2169
+ //#region src/adapters/supabase/auth-interface.d.ts
2170
+ type _UpstreamAuthClientInstance = InstanceType<typeof AuthClient>;
2171
+ type _AuthClientBase = { [K in keyof _UpstreamAuthClientInstance as _UpstreamAuthClientInstance[K] extends never ? never : K]: _UpstreamAuthClientInstance[K] };
2172
+ type SupabaseAuthClientInterface = _AuthClientBase;
2173
+ //#endregion
2174
+ //#region src/adapters/supabase/supabase-adapter.d.ts
2175
+ type SupabaseAuthAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
2176
+ /**
2177
+ * Internal implementation class - use SupabaseAuthAdapter factory function instead
2178
+ */
2179
+ declare class SupabaseAuthAdapterImpl extends NeonAuthAdapterCore implements SupabaseAuthClientInterface {
2180
+ admin: SupabaseAuthClientInterface['admin'];
2181
+ mfa: SupabaseAuthClientInterface['mfa'];
2182
+ oauth: SupabaseAuthClientInterface['oauth'];
2183
+ private _betterAuth;
2184
+ private _stateChangeEmitters;
2185
+ constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
2186
+ getBetterAuthInstance(): ReturnType<typeof createAuthClient<{
2187
+ plugins: SupportedBetterAuthClientPlugins;
2188
+ }>>;
2189
+ initialize: SupabaseAuthClientInterface['initialize'];
2190
+ getSession(options?: {
2191
+ forceFetch?: boolean;
2192
+ }): ReturnType<SupabaseAuthClientInterface['getSession']>;
2193
+ refreshSession: SupabaseAuthClientInterface['refreshSession'];
2194
+ setSession: SupabaseAuthClientInterface['setSession'];
2195
+ signUp: SupabaseAuthClientInterface['signUp'];
2196
+ signInAnonymously: SupabaseAuthClientInterface['signInAnonymously'];
2197
+ signInWithPassword: SupabaseAuthClientInterface['signInWithPassword'];
2198
+ signInWithOAuth: SupabaseAuthClientInterface['signInWithOAuth'];
2199
+ signInWithOtp: SupabaseAuthClientInterface['signInWithOtp'];
2200
+ signInWithIdToken: SupabaseAuthClientInterface['signInWithIdToken'];
2201
+ signInWithSSO: SupabaseAuthClientInterface['signInWithSSO'];
2202
+ signInWithWeb3: SupabaseAuthClientInterface['signInWithWeb3'];
2203
+ signOut: SupabaseAuthClientInterface['signOut'];
2204
+ getUser: SupabaseAuthClientInterface['getUser'];
2205
+ getClaims: (jwtArg?: string) => Promise<{
2206
+ data: {
2207
+ header: JwtHeader;
2208
+ claims: JwtPayload;
2209
+ signature: Uint8Array<ArrayBufferLike>;
2210
+ };
2211
+ error: null;
2212
+ } | {
2213
+ data: null;
2214
+ error: _supabase_auth_js0.AuthError;
2215
+ }>;
2216
+ updateUser: SupabaseAuthClientInterface['updateUser'];
2217
+ getUserIdentities: SupabaseAuthClientInterface['getUserIdentities'];
2218
+ linkIdentity: SupabaseAuthClientInterface['linkIdentity'];
2219
+ unlinkIdentity: SupabaseAuthClientInterface['unlinkIdentity'];
2220
+ verifyOtp: SupabaseAuthClientInterface['verifyOtp'];
2221
+ resetPasswordForEmail: SupabaseAuthClientInterface['resetPasswordForEmail'];
2222
+ reauthenticate: SupabaseAuthClientInterface['reauthenticate'];
2223
+ resend: SupabaseAuthClientInterface['resend'];
2224
+ exchangeCodeForSession: SupabaseAuthClientInterface['exchangeCodeForSession'];
2225
+ onAuthStateChange: SupabaseAuthClientInterface['onAuthStateChange'];
2226
+ isThrowOnErrorEnabled: SupabaseAuthClientInterface['isThrowOnErrorEnabled'];
2227
+ startAutoRefresh: SupabaseAuthClientInterface['startAutoRefresh'];
2228
+ stopAutoRefresh: SupabaseAuthClientInterface['stopAutoRefresh'];
2229
+ private verifyEmailOtp;
2230
+ private emitInitialSession;
2231
+ }
2232
+ /** Instance type for SupabaseAuthAdapter */
2233
+ type SupabaseAuthAdapterInstance = SupabaseAuthAdapterImpl;
2146
2234
  /** Builder type that creates adapter instances */
2147
- type BetterAuthReactAdapterBuilder = (url: string, fetchOptions?: {
2235
+ type SupabaseAuthAdapterBuilder = (url: string, fetchOptions?: {
2148
2236
  headers?: Record<string, string>;
2149
- }) => BetterAuthReactAdapterInstance;
2237
+ }) => SupabaseAuthAdapterInstance;
2150
2238
  /**
2151
2239
  * Factory function that returns an adapter builder.
2152
2240
  * The builder is called by createClient/createAuthClient with the URL.
@@ -2159,12 +2247,12 @@ type BetterAuthReactAdapterBuilder = (url: string, fetchOptions?: {
2159
2247
  * const client = createClient({
2160
2248
  * auth: {
2161
2249
  * url: 'https://auth.example.com',
2162
- * adapter: BetterAuthReactAdapter(),
2250
+ * adapter: SupabaseAuthAdapter(),
2163
2251
  * },
2164
2252
  * dataApi: { url: 'https://data-api.example.com' },
2165
2253
  * });
2166
2254
  * ```
2167
2255
  */
2168
- declare function BetterAuthReactAdapter(options?: BetterAuthReactAdapterOptions): BetterAuthReactAdapterBuilder;
2256
+ declare function SupabaseAuthAdapter(options?: SupabaseAuthAdapterOptions): SupabaseAuthAdapterBuilder;
2169
2257
  //#endregion
2170
- export { BetterAuthReactAdapterInstance as n, BetterAuthReactAdapterOptions as r, BetterAuthReactAdapter as t };
2258
+ export { BetterAuthVanillaAdapter as a, BetterAuthVanillaAdapterOptions as c, SupabaseAuthAdapterOptions as i, SupabaseAuthAdapterBuilder as n, BetterAuthVanillaAdapterBuilder as o, SupabaseAuthAdapterInstance as r, BetterAuthVanillaAdapterInstance as s, SupabaseAuthAdapter as t };