@neondatabase/auth 0.1.0-beta.8 → 0.2.0-beta.1
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 +108 -18
- package/dist/{adapter-core-Bw9mn_AS.d.mts → adapter-core-CnrOXh1T.d.mts} +246 -280
- package/dist/{adapter-core-C_NEMs0b.mjs → adapter-core-CtmnMMJ7.mjs} +392 -67
- package/dist/better-auth-react-adapter-DNi5PC5D.d.mts +2170 -0
- package/dist/{better-auth-react-adapter-BbM3jLLv.mjs → better-auth-react-adapter-Dv-o6A6O.mjs} +10 -8
- package/dist/{chunk-5DLVHPZS-Bxj7snpZ-DoVNlsyk.mjs → chunk-VCZJYX65-CLnrj1o7-D6ZQkcc_.mjs} +13 -3
- package/dist/constants-Cupc_bln.mjs +28 -0
- package/dist/index.d.mts +4 -98
- package/dist/index.mjs +2 -1
- package/dist/neon-auth-BEGCfAe6.d.mts +107 -0
- package/dist/{neon-auth-DdlToh7_.mjs → neon-auth-Cs2cWh1B.mjs} +7 -4
- package/dist/next/index.d.mts +61 -170
- package/dist/next/index.mjs +4 -311
- package/dist/next/server/index.d.mts +538 -0
- package/dist/next/server/index.mjs +1373 -0
- package/dist/react/adapters/index.d.mts +4 -4
- package/dist/react/adapters/index.mjs +2 -1
- package/dist/react/index.d.mts +5 -5
- package/dist/react/index.mjs +4 -3
- package/dist/react/ui/index.d.mts +1 -1
- package/dist/react/ui/index.mjs +2 -2
- package/dist/react/ui/server.mjs +1 -1
- package/dist/{supabase-adapter-CAqbpOC7.mjs → supabase-adapter-BlcGPyOf.mjs} +28 -45
- package/dist/supabase-adapter-DUqw2fw8.d.mts +2258 -0
- package/dist/types/index.d.mts +2 -7
- package/dist/ui/.safelist.html +3 -0
- package/dist/ui/css.css +2 -2
- package/dist/ui/tailwind.css +4 -3
- package/dist/ui/theme-inline.css +44 -0
- package/dist/ui/theme.css +221 -118
- package/dist/{ui-aMoA-9nq.mjs → ui-COLWzDsu.mjs} +6024 -3004
- package/dist/vanilla/adapters/index.d.mts +3 -3
- package/dist/vanilla/adapters/index.mjs +2 -1
- package/dist/vanilla/index.d.mts +3 -3
- package/dist/vanilla/index.mjs +2 -1
- package/llms.txt +330 -0
- package/package.json +17 -10
- package/dist/better-auth-react-adapter-JoscqoDc.d.mts +0 -722
- package/dist/better-auth-types-CE4hLv9E.d.mts +0 -9
- package/dist/supabase-adapter-Clxlqg1x.d.mts +0 -127
- /package/dist/{adapters-D0mxG3F-.mjs → adapters-B7YKkjaL.mjs} +0 -0
- /package/dist/{adapters-Df6Dd3KK.mjs → adapters-CivF9wql.mjs} +0 -0
- /package/dist/{index-ClXLQ1fw.d.mts → index-CPnFzULh.d.mts} +0 -0
- /package/dist/{index-BXlAjlSt.d.mts → index-CzsGMS7C.d.mts} +0 -0
- /package/dist/{index-DCQ5Y2ED.d.mts → index-OEBbnNdr.d.mts} +0 -0
|
@@ -1,722 +0,0 @@
|
|
|
1
|
-
import { n as NeonAuthAdapterCoreAuthOptions, t as NeonAuthAdapterCore } from "./adapter-core-Bw9mn_AS.mjs";
|
|
2
|
-
import * as better_auth153 from "better-auth";
|
|
3
|
-
import * as _better_fetch_fetch89 from "@better-fetch/fetch";
|
|
4
|
-
import * as nanostores0 from "nanostores";
|
|
5
|
-
|
|
6
|
-
//#region src/adapters/better-auth-react/better-auth-react-adapter.d.ts
|
|
7
|
-
type BetterAuthReactAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
|
|
8
|
-
/**
|
|
9
|
-
* Internal implementation class - use BetterAuthReactAdapter factory function instead
|
|
10
|
-
*/
|
|
11
|
-
declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
12
|
-
private _betterAuth;
|
|
13
|
-
constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
|
|
14
|
-
getBetterAuthInstance(): {
|
|
15
|
-
signIn: {
|
|
16
|
-
social: <FetchOptions extends better_auth153.ClientFetchOption<Partial<{
|
|
17
|
-
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";
|
|
18
|
-
callbackURL?: string | undefined;
|
|
19
|
-
newUserCallbackURL?: string | undefined;
|
|
20
|
-
errorCallbackURL?: string | undefined;
|
|
21
|
-
disableRedirect?: boolean | undefined;
|
|
22
|
-
idToken?: {
|
|
23
|
-
token: string;
|
|
24
|
-
nonce?: string | undefined;
|
|
25
|
-
accessToken?: string | undefined;
|
|
26
|
-
refreshToken?: string | undefined;
|
|
27
|
-
expiresAt?: number | undefined;
|
|
28
|
-
} | undefined;
|
|
29
|
-
scopes?: string[] | undefined;
|
|
30
|
-
requestSignUp?: boolean | undefined;
|
|
31
|
-
loginHint?: string | undefined;
|
|
32
|
-
additionalData?: Record<string, any> | undefined;
|
|
33
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth153.Prettify<{
|
|
34
|
-
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";
|
|
35
|
-
callbackURL?: string | undefined;
|
|
36
|
-
newUserCallbackURL?: string | undefined;
|
|
37
|
-
errorCallbackURL?: string | undefined;
|
|
38
|
-
disableRedirect?: boolean | undefined;
|
|
39
|
-
idToken?: {
|
|
40
|
-
token: string;
|
|
41
|
-
nonce?: string | undefined;
|
|
42
|
-
accessToken?: string | undefined;
|
|
43
|
-
refreshToken?: string | undefined;
|
|
44
|
-
expiresAt?: number | undefined;
|
|
45
|
-
} | undefined;
|
|
46
|
-
scopes?: string[] | undefined;
|
|
47
|
-
requestSignUp?: boolean | undefined;
|
|
48
|
-
loginHint?: string | undefined;
|
|
49
|
-
additionalData?: Record<string, any> | undefined;
|
|
50
|
-
} & {
|
|
51
|
-
fetchOptions?: FetchOptions | undefined;
|
|
52
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<NonNullable<{
|
|
53
|
-
redirect: boolean;
|
|
54
|
-
url: string;
|
|
55
|
-
} | {
|
|
56
|
-
redirect: boolean;
|
|
57
|
-
token: string;
|
|
58
|
-
url: undefined;
|
|
59
|
-
user: {
|
|
60
|
-
id: string;
|
|
61
|
-
createdAt: Date;
|
|
62
|
-
updatedAt: Date;
|
|
63
|
-
email: string;
|
|
64
|
-
emailVerified: boolean;
|
|
65
|
-
name: string;
|
|
66
|
-
image?: string | null | undefined | undefined;
|
|
67
|
-
};
|
|
68
|
-
}>, {
|
|
69
|
-
code?: string | undefined;
|
|
70
|
-
message?: string | undefined;
|
|
71
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
72
|
-
};
|
|
73
|
-
} & {
|
|
74
|
-
signOut: <FetchOptions extends better_auth153.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth153.Prettify<{
|
|
75
|
-
query?: Record<string, any> | undefined;
|
|
76
|
-
fetchOptions?: FetchOptions | undefined;
|
|
77
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
78
|
-
success: boolean;
|
|
79
|
-
}, {
|
|
80
|
-
code?: string | undefined;
|
|
81
|
-
message?: string | undefined;
|
|
82
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
83
|
-
} & {
|
|
84
|
-
signUp: {
|
|
85
|
-
email: <FetchOptions extends better_auth153.ClientFetchOption<Partial<{
|
|
86
|
-
name: string;
|
|
87
|
-
email: string;
|
|
88
|
-
password: string;
|
|
89
|
-
image?: string | undefined;
|
|
90
|
-
callbackURL?: string | undefined;
|
|
91
|
-
rememberMe?: boolean | undefined;
|
|
92
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth153.Prettify<{
|
|
93
|
-
email: string;
|
|
94
|
-
name: string;
|
|
95
|
-
password: string;
|
|
96
|
-
image?: string | undefined;
|
|
97
|
-
callbackURL?: string | undefined;
|
|
98
|
-
fetchOptions?: FetchOptions | undefined;
|
|
99
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<NonNullable<{
|
|
100
|
-
token: null;
|
|
101
|
-
user: {
|
|
102
|
-
id: string;
|
|
103
|
-
createdAt: Date;
|
|
104
|
-
updatedAt: Date;
|
|
105
|
-
email: string;
|
|
106
|
-
emailVerified: boolean;
|
|
107
|
-
name: string;
|
|
108
|
-
image?: string | null | undefined | undefined;
|
|
109
|
-
};
|
|
110
|
-
} | {
|
|
111
|
-
token: string;
|
|
112
|
-
user: {
|
|
113
|
-
id: string;
|
|
114
|
-
createdAt: Date;
|
|
115
|
-
updatedAt: Date;
|
|
116
|
-
email: string;
|
|
117
|
-
emailVerified: boolean;
|
|
118
|
-
name: string;
|
|
119
|
-
image?: string | null | undefined | undefined;
|
|
120
|
-
};
|
|
121
|
-
}>, {
|
|
122
|
-
code?: string | undefined;
|
|
123
|
-
message?: string | undefined;
|
|
124
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
125
|
-
};
|
|
126
|
-
} & {
|
|
127
|
-
signIn: {
|
|
128
|
-
email: <FetchOptions extends better_auth153.ClientFetchOption<Partial<{
|
|
129
|
-
email: string;
|
|
130
|
-
password: string;
|
|
131
|
-
callbackURL?: string | undefined;
|
|
132
|
-
rememberMe?: boolean | undefined;
|
|
133
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth153.Prettify<{
|
|
134
|
-
email: string;
|
|
135
|
-
password: string;
|
|
136
|
-
callbackURL?: string | undefined;
|
|
137
|
-
rememberMe?: boolean | undefined;
|
|
138
|
-
} & {
|
|
139
|
-
fetchOptions?: FetchOptions | undefined;
|
|
140
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
141
|
-
redirect: boolean;
|
|
142
|
-
token: string;
|
|
143
|
-
url?: string | undefined;
|
|
144
|
-
user: {
|
|
145
|
-
id: string;
|
|
146
|
-
createdAt: Date;
|
|
147
|
-
updatedAt: Date;
|
|
148
|
-
email: string;
|
|
149
|
-
emailVerified: boolean;
|
|
150
|
-
name: string;
|
|
151
|
-
image?: string | null | undefined | undefined;
|
|
152
|
-
};
|
|
153
|
-
}, {
|
|
154
|
-
code?: string | undefined;
|
|
155
|
-
message?: string | undefined;
|
|
156
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
157
|
-
};
|
|
158
|
-
} & {
|
|
159
|
-
resetPassword: <FetchOptions extends better_auth153.ClientFetchOption<Partial<{
|
|
160
|
-
newPassword: string;
|
|
161
|
-
token?: string | undefined;
|
|
162
|
-
}> & Record<string, any>, Partial<{
|
|
163
|
-
token?: string | undefined;
|
|
164
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth153.Prettify<{
|
|
165
|
-
newPassword: string;
|
|
166
|
-
token?: string | undefined;
|
|
167
|
-
} & {
|
|
168
|
-
fetchOptions?: FetchOptions | undefined;
|
|
169
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
170
|
-
status: boolean;
|
|
171
|
-
}, {
|
|
172
|
-
code?: string | undefined;
|
|
173
|
-
message?: string | undefined;
|
|
174
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
175
|
-
} & {
|
|
176
|
-
verifyEmail: <FetchOptions extends better_auth153.ClientFetchOption<never, Partial<{
|
|
177
|
-
token: string;
|
|
178
|
-
callbackURL?: string | undefined;
|
|
179
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth153.Prettify<{
|
|
180
|
-
query: {
|
|
181
|
-
token: string;
|
|
182
|
-
callbackURL?: string | undefined;
|
|
183
|
-
};
|
|
184
|
-
fetchOptions?: FetchOptions | undefined;
|
|
185
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<NonNullable<void | {
|
|
186
|
-
status: boolean;
|
|
187
|
-
}>, {
|
|
188
|
-
code?: string | undefined;
|
|
189
|
-
message?: string | undefined;
|
|
190
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
191
|
-
} & {
|
|
192
|
-
sendVerificationEmail: <FetchOptions extends better_auth153.ClientFetchOption<Partial<{
|
|
193
|
-
email: string;
|
|
194
|
-
callbackURL?: string | undefined;
|
|
195
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth153.Prettify<{
|
|
196
|
-
email: string;
|
|
197
|
-
callbackURL?: string | undefined;
|
|
198
|
-
} & {
|
|
199
|
-
fetchOptions?: FetchOptions | undefined;
|
|
200
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
201
|
-
status: boolean;
|
|
202
|
-
}, {
|
|
203
|
-
code?: string | undefined;
|
|
204
|
-
message?: string | undefined;
|
|
205
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
206
|
-
} & {
|
|
207
|
-
changeEmail: <FetchOptions extends better_auth153.ClientFetchOption<Partial<{
|
|
208
|
-
newEmail: string;
|
|
209
|
-
callbackURL?: string | undefined;
|
|
210
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth153.Prettify<{
|
|
211
|
-
newEmail: string;
|
|
212
|
-
callbackURL?: string | undefined;
|
|
213
|
-
} & {
|
|
214
|
-
fetchOptions?: FetchOptions | undefined;
|
|
215
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
216
|
-
status: boolean;
|
|
217
|
-
}, {
|
|
218
|
-
code?: string | undefined;
|
|
219
|
-
message?: string | undefined;
|
|
220
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
221
|
-
} & {
|
|
222
|
-
changePassword: <FetchOptions extends better_auth153.ClientFetchOption<Partial<{
|
|
223
|
-
newPassword: string;
|
|
224
|
-
currentPassword: string;
|
|
225
|
-
revokeOtherSessions?: boolean | undefined;
|
|
226
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth153.Prettify<{
|
|
227
|
-
newPassword: string;
|
|
228
|
-
currentPassword: string;
|
|
229
|
-
revokeOtherSessions?: boolean | undefined;
|
|
230
|
-
} & {
|
|
231
|
-
fetchOptions?: FetchOptions | undefined;
|
|
232
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
233
|
-
token: string | null;
|
|
234
|
-
user: {
|
|
235
|
-
id: string;
|
|
236
|
-
email: string;
|
|
237
|
-
name: string;
|
|
238
|
-
image: string | null | undefined;
|
|
239
|
-
emailVerified: boolean;
|
|
240
|
-
createdAt: Date;
|
|
241
|
-
updatedAt: Date;
|
|
242
|
-
};
|
|
243
|
-
}, {
|
|
244
|
-
code?: string | undefined;
|
|
245
|
-
message?: string | undefined;
|
|
246
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
247
|
-
} & {
|
|
248
|
-
updateUser: <FetchOptions extends better_auth153.ClientFetchOption<Partial<Partial<{}> & {
|
|
249
|
-
name?: string | undefined;
|
|
250
|
-
image?: string | undefined | null;
|
|
251
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth153.Prettify<{
|
|
252
|
-
image?: (string | null) | undefined;
|
|
253
|
-
name?: string | undefined;
|
|
254
|
-
fetchOptions?: FetchOptions | undefined;
|
|
255
|
-
} & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
256
|
-
status: boolean;
|
|
257
|
-
}, {
|
|
258
|
-
code?: string | undefined;
|
|
259
|
-
message?: string | undefined;
|
|
260
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
261
|
-
} & {
|
|
262
|
-
deleteUser: <FetchOptions extends better_auth153.ClientFetchOption<Partial<{
|
|
263
|
-
callbackURL?: string | undefined;
|
|
264
|
-
password?: string | undefined;
|
|
265
|
-
token?: string | undefined;
|
|
266
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth153.Prettify<{
|
|
267
|
-
callbackURL?: string | undefined;
|
|
268
|
-
password?: string | undefined;
|
|
269
|
-
token?: string | undefined;
|
|
270
|
-
} & {
|
|
271
|
-
fetchOptions?: FetchOptions | undefined;
|
|
272
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
273
|
-
success: boolean;
|
|
274
|
-
message: string;
|
|
275
|
-
}, {
|
|
276
|
-
code?: string | undefined;
|
|
277
|
-
message?: string | undefined;
|
|
278
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
279
|
-
} & {
|
|
280
|
-
requestPasswordReset: <FetchOptions extends better_auth153.ClientFetchOption<Partial<{
|
|
281
|
-
email: string;
|
|
282
|
-
redirectTo?: string | undefined;
|
|
283
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth153.Prettify<{
|
|
284
|
-
email: string;
|
|
285
|
-
redirectTo?: string | undefined;
|
|
286
|
-
} & {
|
|
287
|
-
fetchOptions?: FetchOptions | undefined;
|
|
288
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
289
|
-
status: boolean;
|
|
290
|
-
message: string;
|
|
291
|
-
}, {
|
|
292
|
-
code?: string | undefined;
|
|
293
|
-
message?: string | undefined;
|
|
294
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
295
|
-
} & {
|
|
296
|
-
resetPassword: {
|
|
297
|
-
":token": <FetchOptions extends better_auth153.ClientFetchOption<never, Partial<{
|
|
298
|
-
callbackURL: string;
|
|
299
|
-
}> & Record<string, any>, {
|
|
300
|
-
token: string;
|
|
301
|
-
}>>(data_0: better_auth153.Prettify<{
|
|
302
|
-
query: {
|
|
303
|
-
callbackURL: string;
|
|
304
|
-
};
|
|
305
|
-
fetchOptions?: FetchOptions | undefined;
|
|
306
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<never, {
|
|
307
|
-
code?: string | undefined;
|
|
308
|
-
message?: string | undefined;
|
|
309
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
310
|
-
};
|
|
311
|
-
} & {
|
|
312
|
-
listSessions: <FetchOptions extends better_auth153.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth153.Prettify<{
|
|
313
|
-
query?: Record<string, any> | undefined;
|
|
314
|
-
fetchOptions?: FetchOptions | undefined;
|
|
315
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<better_auth153.Prettify<{
|
|
316
|
-
id: string;
|
|
317
|
-
createdAt: Date;
|
|
318
|
-
updatedAt: Date;
|
|
319
|
-
userId: string;
|
|
320
|
-
expiresAt: Date;
|
|
321
|
-
token: string;
|
|
322
|
-
ipAddress?: string | null | undefined | undefined;
|
|
323
|
-
userAgent?: string | null | undefined | undefined;
|
|
324
|
-
}>[], {
|
|
325
|
-
code?: string | undefined;
|
|
326
|
-
message?: string | undefined;
|
|
327
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
328
|
-
} & {
|
|
329
|
-
revokeSession: <FetchOptions extends better_auth153.ClientFetchOption<Partial<{
|
|
330
|
-
token: string;
|
|
331
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth153.Prettify<{
|
|
332
|
-
token: string;
|
|
333
|
-
} & {
|
|
334
|
-
fetchOptions?: FetchOptions | undefined;
|
|
335
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
336
|
-
status: boolean;
|
|
337
|
-
}, {
|
|
338
|
-
code?: string | undefined;
|
|
339
|
-
message?: string | undefined;
|
|
340
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
341
|
-
} & {
|
|
342
|
-
revokeSessions: <FetchOptions extends better_auth153.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth153.Prettify<{
|
|
343
|
-
query?: Record<string, any> | undefined;
|
|
344
|
-
fetchOptions?: FetchOptions | undefined;
|
|
345
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
346
|
-
status: boolean;
|
|
347
|
-
}, {
|
|
348
|
-
code?: string | undefined;
|
|
349
|
-
message?: string | undefined;
|
|
350
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
351
|
-
} & {
|
|
352
|
-
revokeOtherSessions: <FetchOptions extends better_auth153.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth153.Prettify<{
|
|
353
|
-
query?: Record<string, any> | undefined;
|
|
354
|
-
fetchOptions?: FetchOptions | undefined;
|
|
355
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
356
|
-
status: boolean;
|
|
357
|
-
}, {
|
|
358
|
-
code?: string | undefined;
|
|
359
|
-
message?: string | undefined;
|
|
360
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
361
|
-
} & {
|
|
362
|
-
linkSocial: <FetchOptions extends better_auth153.ClientFetchOption<Partial<{
|
|
363
|
-
provider: unknown;
|
|
364
|
-
callbackURL?: string | undefined;
|
|
365
|
-
idToken?: {
|
|
366
|
-
token: string;
|
|
367
|
-
nonce?: string | undefined;
|
|
368
|
-
accessToken?: string | undefined;
|
|
369
|
-
refreshToken?: string | undefined;
|
|
370
|
-
scopes?: string[] | undefined;
|
|
371
|
-
} | undefined;
|
|
372
|
-
requestSignUp?: boolean | undefined;
|
|
373
|
-
scopes?: string[] | undefined;
|
|
374
|
-
errorCallbackURL?: string | undefined;
|
|
375
|
-
disableRedirect?: boolean | undefined;
|
|
376
|
-
additionalData?: Record<string, any> | undefined;
|
|
377
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth153.Prettify<{
|
|
378
|
-
provider: unknown;
|
|
379
|
-
callbackURL?: string | undefined;
|
|
380
|
-
idToken?: {
|
|
381
|
-
token: string;
|
|
382
|
-
nonce?: string | undefined;
|
|
383
|
-
accessToken?: string | undefined;
|
|
384
|
-
refreshToken?: string | undefined;
|
|
385
|
-
scopes?: string[] | undefined;
|
|
386
|
-
} | undefined;
|
|
387
|
-
requestSignUp?: boolean | undefined;
|
|
388
|
-
scopes?: string[] | undefined;
|
|
389
|
-
errorCallbackURL?: string | undefined;
|
|
390
|
-
disableRedirect?: boolean | undefined;
|
|
391
|
-
additionalData?: Record<string, any> | undefined;
|
|
392
|
-
} & {
|
|
393
|
-
fetchOptions?: FetchOptions | undefined;
|
|
394
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
395
|
-
url: string;
|
|
396
|
-
redirect: boolean;
|
|
397
|
-
}, {
|
|
398
|
-
code?: string | undefined;
|
|
399
|
-
message?: string | undefined;
|
|
400
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
401
|
-
} & {
|
|
402
|
-
listAccounts: <FetchOptions extends better_auth153.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth153.Prettify<{
|
|
403
|
-
query?: Record<string, any> | undefined;
|
|
404
|
-
fetchOptions?: FetchOptions | undefined;
|
|
405
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
406
|
-
id: string;
|
|
407
|
-
providerId: string;
|
|
408
|
-
createdAt: Date;
|
|
409
|
-
updatedAt: Date;
|
|
410
|
-
accountId: string;
|
|
411
|
-
userId: string;
|
|
412
|
-
scopes: string[];
|
|
413
|
-
}[], {
|
|
414
|
-
code?: string | undefined;
|
|
415
|
-
message?: string | undefined;
|
|
416
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
417
|
-
} & {
|
|
418
|
-
deleteUser: {
|
|
419
|
-
callback: <FetchOptions extends better_auth153.ClientFetchOption<never, Partial<{
|
|
420
|
-
token: string;
|
|
421
|
-
callbackURL?: string | undefined;
|
|
422
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth153.Prettify<{
|
|
423
|
-
query: {
|
|
424
|
-
token: string;
|
|
425
|
-
callbackURL?: string | undefined;
|
|
426
|
-
};
|
|
427
|
-
fetchOptions?: FetchOptions | undefined;
|
|
428
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
429
|
-
success: boolean;
|
|
430
|
-
message: string;
|
|
431
|
-
}, {
|
|
432
|
-
code?: string | undefined;
|
|
433
|
-
message?: string | undefined;
|
|
434
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
435
|
-
};
|
|
436
|
-
} & {
|
|
437
|
-
unlinkAccount: <FetchOptions extends better_auth153.ClientFetchOption<Partial<{
|
|
438
|
-
providerId: string;
|
|
439
|
-
accountId?: string | undefined;
|
|
440
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth153.Prettify<{
|
|
441
|
-
providerId: string;
|
|
442
|
-
accountId?: string | undefined;
|
|
443
|
-
} & {
|
|
444
|
-
fetchOptions?: FetchOptions | undefined;
|
|
445
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
446
|
-
status: boolean;
|
|
447
|
-
}, {
|
|
448
|
-
code?: string | undefined;
|
|
449
|
-
message?: string | undefined;
|
|
450
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
451
|
-
} & {
|
|
452
|
-
refreshToken: <FetchOptions extends better_auth153.ClientFetchOption<Partial<{
|
|
453
|
-
providerId: string;
|
|
454
|
-
accountId?: string | undefined;
|
|
455
|
-
userId?: string | undefined;
|
|
456
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth153.Prettify<{
|
|
457
|
-
providerId: string;
|
|
458
|
-
accountId?: string | undefined;
|
|
459
|
-
userId?: string | undefined;
|
|
460
|
-
} & {
|
|
461
|
-
fetchOptions?: FetchOptions | undefined;
|
|
462
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
463
|
-
accessToken: string | undefined;
|
|
464
|
-
refreshToken: string | undefined;
|
|
465
|
-
accessTokenExpiresAt: Date | undefined;
|
|
466
|
-
refreshTokenExpiresAt: Date | undefined;
|
|
467
|
-
scope: string | null | undefined;
|
|
468
|
-
idToken: string | null | undefined;
|
|
469
|
-
providerId: string;
|
|
470
|
-
accountId: string;
|
|
471
|
-
}, {
|
|
472
|
-
code?: string | undefined;
|
|
473
|
-
message?: string | undefined;
|
|
474
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
475
|
-
} & {
|
|
476
|
-
getAccessToken: <FetchOptions extends better_auth153.ClientFetchOption<Partial<{
|
|
477
|
-
providerId: string;
|
|
478
|
-
accountId?: string | undefined;
|
|
479
|
-
userId?: string | undefined;
|
|
480
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth153.Prettify<{
|
|
481
|
-
providerId: string;
|
|
482
|
-
accountId?: string | undefined;
|
|
483
|
-
userId?: string | undefined;
|
|
484
|
-
} & {
|
|
485
|
-
fetchOptions?: FetchOptions | undefined;
|
|
486
|
-
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
487
|
-
accessToken: string;
|
|
488
|
-
accessTokenExpiresAt: Date | undefined;
|
|
489
|
-
scopes: string[];
|
|
490
|
-
idToken: string | undefined;
|
|
491
|
-
}, {
|
|
492
|
-
code?: string | undefined;
|
|
493
|
-
message?: string | undefined;
|
|
494
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
495
|
-
} & {
|
|
496
|
-
accountInfo: <FetchOptions extends better_auth153.ClientFetchOption<never, Partial<{
|
|
497
|
-
accountId?: string | undefined;
|
|
498
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth153.Prettify<{
|
|
499
|
-
query?: {
|
|
500
|
-
accountId?: string | undefined;
|
|
501
|
-
} | undefined;
|
|
502
|
-
fetchOptions?: FetchOptions | undefined;
|
|
503
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
504
|
-
user: better_auth153.OAuth2UserInfo;
|
|
505
|
-
data: Record<string, any>;
|
|
506
|
-
}, {
|
|
507
|
-
code?: string | undefined;
|
|
508
|
-
message?: string | undefined;
|
|
509
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
510
|
-
} & {
|
|
511
|
-
getSession: <FetchOptions extends better_auth153.ClientFetchOption<never, Partial<{
|
|
512
|
-
disableCookieCache?: unknown;
|
|
513
|
-
disableRefresh?: unknown;
|
|
514
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth153.Prettify<{
|
|
515
|
-
query?: {
|
|
516
|
-
disableCookieCache?: unknown;
|
|
517
|
-
disableRefresh?: unknown;
|
|
518
|
-
} | undefined;
|
|
519
|
-
fetchOptions?: FetchOptions | undefined;
|
|
520
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch89.BetterFetchResponse<{
|
|
521
|
-
user: {
|
|
522
|
-
id: string;
|
|
523
|
-
createdAt: Date;
|
|
524
|
-
updatedAt: Date;
|
|
525
|
-
email: string;
|
|
526
|
-
emailVerified: boolean;
|
|
527
|
-
name: string;
|
|
528
|
-
image?: string | null | undefined;
|
|
529
|
-
};
|
|
530
|
-
session: {
|
|
531
|
-
id: string;
|
|
532
|
-
createdAt: Date;
|
|
533
|
-
updatedAt: Date;
|
|
534
|
-
userId: string;
|
|
535
|
-
expiresAt: Date;
|
|
536
|
-
token: string;
|
|
537
|
-
ipAddress?: string | null | undefined;
|
|
538
|
-
userAgent?: string | null | undefined;
|
|
539
|
-
};
|
|
540
|
-
} | null, {
|
|
541
|
-
code?: string | undefined;
|
|
542
|
-
message?: string | undefined;
|
|
543
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
544
|
-
} & {
|
|
545
|
-
useSession: () => {
|
|
546
|
-
data: {
|
|
547
|
-
user: {
|
|
548
|
-
id: string;
|
|
549
|
-
createdAt: Date;
|
|
550
|
-
updatedAt: Date;
|
|
551
|
-
email: string;
|
|
552
|
-
emailVerified: boolean;
|
|
553
|
-
name: string;
|
|
554
|
-
image?: string | null | undefined;
|
|
555
|
-
};
|
|
556
|
-
session: {
|
|
557
|
-
id: string;
|
|
558
|
-
createdAt: Date;
|
|
559
|
-
updatedAt: Date;
|
|
560
|
-
userId: string;
|
|
561
|
-
expiresAt: Date;
|
|
562
|
-
token: string;
|
|
563
|
-
ipAddress?: string | null | undefined;
|
|
564
|
-
userAgent?: string | null | undefined;
|
|
565
|
-
};
|
|
566
|
-
} | null;
|
|
567
|
-
isPending: boolean;
|
|
568
|
-
isRefetching: boolean;
|
|
569
|
-
error: _better_fetch_fetch89.BetterFetchError | null;
|
|
570
|
-
refetch: (queryParams?: {
|
|
571
|
-
query?: better_auth153.SessionQueryParams;
|
|
572
|
-
} | undefined) => Promise<void>;
|
|
573
|
-
};
|
|
574
|
-
$Infer: {
|
|
575
|
-
Session: {
|
|
576
|
-
user: {
|
|
577
|
-
id: string;
|
|
578
|
-
createdAt: Date;
|
|
579
|
-
updatedAt: Date;
|
|
580
|
-
email: string;
|
|
581
|
-
emailVerified: boolean;
|
|
582
|
-
name: string;
|
|
583
|
-
image?: string | null | undefined;
|
|
584
|
-
};
|
|
585
|
-
session: {
|
|
586
|
-
id: string;
|
|
587
|
-
createdAt: Date;
|
|
588
|
-
updatedAt: Date;
|
|
589
|
-
userId: string;
|
|
590
|
-
expiresAt: Date;
|
|
591
|
-
token: string;
|
|
592
|
-
ipAddress?: string | null | undefined;
|
|
593
|
-
userAgent?: string | null | undefined;
|
|
594
|
-
};
|
|
595
|
-
};
|
|
596
|
-
};
|
|
597
|
-
$fetch: _better_fetch_fetch89.BetterFetch<{
|
|
598
|
-
plugins: (_better_fetch_fetch89.BetterFetchPlugin | {
|
|
599
|
-
id: string;
|
|
600
|
-
name: string;
|
|
601
|
-
hooks: {
|
|
602
|
-
onSuccess(context: _better_fetch_fetch89.SuccessContext<any>): void;
|
|
603
|
-
};
|
|
604
|
-
} | {
|
|
605
|
-
id: string;
|
|
606
|
-
name: string;
|
|
607
|
-
hooks: {
|
|
608
|
-
onSuccess: ((context: _better_fetch_fetch89.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
609
|
-
onError: ((context: _better_fetch_fetch89.ErrorContext) => Promise<void> | void) | undefined;
|
|
610
|
-
onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch89.RequestContext<T>) => Promise<_better_fetch_fetch89.RequestContext | void> | _better_fetch_fetch89.RequestContext | void) | undefined;
|
|
611
|
-
onResponse: ((context: _better_fetch_fetch89.ResponseContext) => Promise<Response | void | _better_fetch_fetch89.ResponseContext> | Response | _better_fetch_fetch89.ResponseContext | void) | undefined;
|
|
612
|
-
};
|
|
613
|
-
})[];
|
|
614
|
-
cache?: RequestCache | undefined;
|
|
615
|
-
method: string;
|
|
616
|
-
headers?: (HeadersInit & (HeadersInit | {
|
|
617
|
-
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
618
|
-
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
619
|
-
authorization: "Bearer" | "Basic";
|
|
620
|
-
})) | undefined;
|
|
621
|
-
redirect?: RequestRedirect | undefined;
|
|
622
|
-
credentials?: RequestCredentials;
|
|
623
|
-
integrity?: string | undefined;
|
|
624
|
-
keepalive?: boolean | undefined;
|
|
625
|
-
mode?: RequestMode | undefined;
|
|
626
|
-
priority?: RequestPriority | undefined;
|
|
627
|
-
referrer?: string | undefined;
|
|
628
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
629
|
-
signal?: (AbortSignal | null) | undefined;
|
|
630
|
-
window?: null | undefined;
|
|
631
|
-
onRetry?: ((response: _better_fetch_fetch89.ResponseContext) => Promise<void> | void) | undefined;
|
|
632
|
-
hookOptions?: {
|
|
633
|
-
cloneResponse?: boolean;
|
|
634
|
-
} | undefined;
|
|
635
|
-
timeout?: number | undefined;
|
|
636
|
-
customFetchImpl: _better_fetch_fetch89.FetchEsque;
|
|
637
|
-
baseURL: string;
|
|
638
|
-
throw?: boolean | undefined;
|
|
639
|
-
auth?: ({
|
|
640
|
-
type: "Bearer";
|
|
641
|
-
token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
|
|
642
|
-
} | {
|
|
643
|
-
type: "Basic";
|
|
644
|
-
username: string | (() => string | undefined) | undefined;
|
|
645
|
-
password: string | (() => string | undefined) | undefined;
|
|
646
|
-
} | {
|
|
647
|
-
type: "Custom";
|
|
648
|
-
prefix: string | (() => string | undefined) | undefined;
|
|
649
|
-
value: string | (() => string | undefined) | undefined;
|
|
650
|
-
}) | undefined;
|
|
651
|
-
body?: any;
|
|
652
|
-
query?: any;
|
|
653
|
-
params?: any;
|
|
654
|
-
duplex?: "full" | "half" | undefined;
|
|
655
|
-
jsonParser: (text: string) => Promise<any> | any;
|
|
656
|
-
retry?: _better_fetch_fetch89.RetryOptions | undefined;
|
|
657
|
-
retryAttempt?: number | undefined;
|
|
658
|
-
output?: (_better_fetch_fetch89.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
659
|
-
errorSchema?: _better_fetch_fetch89.StandardSchemaV1 | undefined;
|
|
660
|
-
disableValidation?: boolean | undefined;
|
|
661
|
-
disableSignal?: boolean | undefined;
|
|
662
|
-
}, unknown, unknown, {}>;
|
|
663
|
-
$store: {
|
|
664
|
-
notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
|
|
665
|
-
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
666
|
-
atoms: Record<string, nanostores0.WritableAtom<any>>;
|
|
667
|
-
};
|
|
668
|
-
$ERROR_CODES: {
|
|
669
|
-
readonly USER_NOT_FOUND: "User not found";
|
|
670
|
-
readonly FAILED_TO_CREATE_USER: "Failed to create user";
|
|
671
|
-
readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
|
|
672
|
-
readonly FAILED_TO_UPDATE_USER: "Failed to update user";
|
|
673
|
-
readonly FAILED_TO_GET_SESSION: "Failed to get session";
|
|
674
|
-
readonly INVALID_PASSWORD: "Invalid password";
|
|
675
|
-
readonly INVALID_EMAIL: "Invalid email";
|
|
676
|
-
readonly INVALID_EMAIL_OR_PASSWORD: "Invalid email or password";
|
|
677
|
-
readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked";
|
|
678
|
-
readonly PROVIDER_NOT_FOUND: "Provider not found";
|
|
679
|
-
readonly INVALID_TOKEN: "Invalid token";
|
|
680
|
-
readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported";
|
|
681
|
-
readonly FAILED_TO_GET_USER_INFO: "Failed to get user info";
|
|
682
|
-
readonly USER_EMAIL_NOT_FOUND: "User email not found";
|
|
683
|
-
readonly EMAIL_NOT_VERIFIED: "Email not verified";
|
|
684
|
-
readonly PASSWORD_TOO_SHORT: "Password too short";
|
|
685
|
-
readonly PASSWORD_TOO_LONG: "Password too long";
|
|
686
|
-
readonly USER_ALREADY_EXISTS: "User already exists.";
|
|
687
|
-
readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
|
|
688
|
-
readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
|
|
689
|
-
readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
|
|
690
|
-
readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
|
|
691
|
-
readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
|
|
692
|
-
readonly ACCOUNT_NOT_FOUND: "Account not found";
|
|
693
|
-
readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
|
|
694
|
-
};
|
|
695
|
-
};
|
|
696
|
-
getJWTToken(): Promise<string | null>;
|
|
697
|
-
}
|
|
698
|
-
/** Instance type for BetterAuthReactAdapter */
|
|
699
|
-
type BetterAuthReactAdapterInstance = BetterAuthReactAdapterImpl;
|
|
700
|
-
/** Builder type that creates adapter instances */
|
|
701
|
-
type BetterAuthReactAdapterBuilder = (url: string) => BetterAuthReactAdapterInstance;
|
|
702
|
-
/**
|
|
703
|
-
* Factory function that returns an adapter builder.
|
|
704
|
-
* The builder is called by createClient/createAuthClient with the URL.
|
|
705
|
-
*
|
|
706
|
-
* @param options - Optional adapter configuration (baseURL is injected separately)
|
|
707
|
-
* @returns A builder function that creates the adapter instance
|
|
708
|
-
*
|
|
709
|
-
* @example
|
|
710
|
-
* ```typescript
|
|
711
|
-
* const client = createClient({
|
|
712
|
-
* auth: {
|
|
713
|
-
* url: 'https://auth.example.com',
|
|
714
|
-
* adapter: BetterAuthReactAdapter(),
|
|
715
|
-
* },
|
|
716
|
-
* dataApi: { url: 'https://data-api.example.com' },
|
|
717
|
-
* });
|
|
718
|
-
* ```
|
|
719
|
-
*/
|
|
720
|
-
declare function BetterAuthReactAdapter(options?: BetterAuthReactAdapterOptions): BetterAuthReactAdapterBuilder;
|
|
721
|
-
//#endregion
|
|
722
|
-
export { BetterAuthReactAdapterOptions as i, BetterAuthReactAdapterBuilder as n, BetterAuthReactAdapterInstance as r, BetterAuthReactAdapter as t };
|