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