@nextsparkjs/core 0.1.0-beta.114 → 0.1.0-beta.115
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/dist/lib/auth-client.d.ts +769 -7
- package/dist/lib/auth-client.d.ts.map +1 -1
- package/dist/lib/auth-client.js +6 -2
- package/dist/lib/auth.d.ts.map +1 -1
- package/dist/lib/auth.js +18 -0
- package/dist/lib/email/templates.d.ts +5 -1
- package/dist/lib/email/templates.d.ts.map +1 -1
- package/dist/lib/email/templates.js +61 -0
- package/dist/lib/email/types.d.ts +6 -0
- package/dist/lib/email/types.d.ts.map +1 -1
- package/dist/styles/classes.json +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,390 @@
|
|
|
1
1
|
export declare const authClient: {
|
|
2
|
+
emailOtp: {
|
|
3
|
+
verifyEmail: <FetchOptions extends {
|
|
4
|
+
method?: string;
|
|
5
|
+
mode?: RequestMode;
|
|
6
|
+
priority?: RequestPriority;
|
|
7
|
+
headers?: HeadersInit & (HeadersInit | {
|
|
8
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
9
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
10
|
+
authorization: "Bearer" | "Basic";
|
|
11
|
+
});
|
|
12
|
+
cache?: RequestCache;
|
|
13
|
+
credentials?: RequestCredentials;
|
|
14
|
+
integrity?: string;
|
|
15
|
+
keepalive?: boolean;
|
|
16
|
+
redirect?: RequestRedirect;
|
|
17
|
+
referrer?: string;
|
|
18
|
+
referrerPolicy?: ReferrerPolicy;
|
|
19
|
+
signal?: AbortSignal | null;
|
|
20
|
+
window?: null;
|
|
21
|
+
next?: NextFetchRequestConfig | undefined;
|
|
22
|
+
onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
|
|
23
|
+
onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
|
|
24
|
+
onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
|
|
25
|
+
onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
|
|
26
|
+
onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
|
|
27
|
+
hookOptions?: {
|
|
28
|
+
cloneResponse?: boolean;
|
|
29
|
+
};
|
|
30
|
+
timeout?: number;
|
|
31
|
+
customFetchImpl?: import("better-auth/react").FetchEsque;
|
|
32
|
+
plugins?: import("better-auth/react").BetterFetchPlugin[];
|
|
33
|
+
baseURL?: string;
|
|
34
|
+
throw?: boolean;
|
|
35
|
+
auth?: {
|
|
36
|
+
type: "Bearer";
|
|
37
|
+
token: string | Promise<string> | (() => string | Promise<string>);
|
|
38
|
+
} | {
|
|
39
|
+
type: "Basic";
|
|
40
|
+
username: string | (() => string);
|
|
41
|
+
password: string | (() => string);
|
|
42
|
+
} | {
|
|
43
|
+
type: "Custom";
|
|
44
|
+
prefix: string | (() => string);
|
|
45
|
+
value: string | (() => string);
|
|
46
|
+
};
|
|
47
|
+
body?: Partial<{
|
|
48
|
+
email: string;
|
|
49
|
+
otp: string;
|
|
50
|
+
}> & Record<string, any>;
|
|
51
|
+
query?: Partial<Record<string, any>> & Record<string, any>;
|
|
52
|
+
params?: Record<string, any>;
|
|
53
|
+
duplex?: "full" | "half";
|
|
54
|
+
jsonParser?: (text: string) => Promise<any> | any;
|
|
55
|
+
retry?: import("better-auth/react").RetryOptions;
|
|
56
|
+
retryAttempt?: number;
|
|
57
|
+
output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
|
|
58
|
+
errorSchema?: import("better-auth/react").StandardSchemaV1;
|
|
59
|
+
disableValidation?: boolean;
|
|
60
|
+
}>(data_0: import("better-auth").Prettify<{
|
|
61
|
+
email: string;
|
|
62
|
+
otp: string;
|
|
63
|
+
} & {
|
|
64
|
+
fetchOptions?: FetchOptions;
|
|
65
|
+
}>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<NonNullable<{
|
|
66
|
+
status: boolean;
|
|
67
|
+
token: string;
|
|
68
|
+
user: {
|
|
69
|
+
id: any;
|
|
70
|
+
email: any;
|
|
71
|
+
emailVerified: any;
|
|
72
|
+
name: any;
|
|
73
|
+
image: any;
|
|
74
|
+
createdAt: any;
|
|
75
|
+
updatedAt: any;
|
|
76
|
+
};
|
|
77
|
+
} | {
|
|
78
|
+
status: boolean;
|
|
79
|
+
token: null;
|
|
80
|
+
user: {
|
|
81
|
+
id: any;
|
|
82
|
+
email: any;
|
|
83
|
+
emailVerified: any;
|
|
84
|
+
name: any;
|
|
85
|
+
image: any;
|
|
86
|
+
createdAt: any;
|
|
87
|
+
updatedAt: any;
|
|
88
|
+
};
|
|
89
|
+
}>, {
|
|
90
|
+
code?: string;
|
|
91
|
+
message?: string;
|
|
92
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
93
|
+
};
|
|
94
|
+
} & {
|
|
95
|
+
signIn: {
|
|
96
|
+
emailOtp: <FetchOptions extends {
|
|
97
|
+
method?: string;
|
|
98
|
+
mode?: RequestMode;
|
|
99
|
+
priority?: RequestPriority;
|
|
100
|
+
headers?: HeadersInit & (HeadersInit | {
|
|
101
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
102
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
103
|
+
authorization: "Bearer" | "Basic";
|
|
104
|
+
});
|
|
105
|
+
cache?: RequestCache;
|
|
106
|
+
credentials?: RequestCredentials;
|
|
107
|
+
integrity?: string;
|
|
108
|
+
keepalive?: boolean;
|
|
109
|
+
redirect?: RequestRedirect;
|
|
110
|
+
referrer?: string;
|
|
111
|
+
referrerPolicy?: ReferrerPolicy;
|
|
112
|
+
signal?: AbortSignal | null;
|
|
113
|
+
window?: null;
|
|
114
|
+
next?: NextFetchRequestConfig | undefined;
|
|
115
|
+
onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
|
|
116
|
+
onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
|
|
117
|
+
onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
|
|
118
|
+
onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
|
|
119
|
+
onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
|
|
120
|
+
hookOptions?: {
|
|
121
|
+
cloneResponse?: boolean;
|
|
122
|
+
};
|
|
123
|
+
timeout?: number;
|
|
124
|
+
customFetchImpl?: import("better-auth/react").FetchEsque;
|
|
125
|
+
plugins?: import("better-auth/react").BetterFetchPlugin[];
|
|
126
|
+
baseURL?: string;
|
|
127
|
+
throw?: boolean;
|
|
128
|
+
auth?: {
|
|
129
|
+
type: "Bearer";
|
|
130
|
+
token: string | Promise<string> | (() => string | Promise<string>);
|
|
131
|
+
} | {
|
|
132
|
+
type: "Basic";
|
|
133
|
+
username: string | (() => string);
|
|
134
|
+
password: string | (() => string);
|
|
135
|
+
} | {
|
|
136
|
+
type: "Custom";
|
|
137
|
+
prefix: string | (() => string);
|
|
138
|
+
value: string | (() => string);
|
|
139
|
+
};
|
|
140
|
+
body?: Partial<{
|
|
141
|
+
email: string;
|
|
142
|
+
otp: string;
|
|
143
|
+
}> & Record<string, any>;
|
|
144
|
+
query?: Partial<Record<string, any>> & Record<string, any>;
|
|
145
|
+
params?: Record<string, any>;
|
|
146
|
+
duplex?: "full" | "half";
|
|
147
|
+
jsonParser?: (text: string) => Promise<any> | any;
|
|
148
|
+
retry?: import("better-auth/react").RetryOptions;
|
|
149
|
+
retryAttempt?: number;
|
|
150
|
+
output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
|
|
151
|
+
errorSchema?: import("better-auth/react").StandardSchemaV1;
|
|
152
|
+
disableValidation?: boolean;
|
|
153
|
+
}>(data_0: import("better-auth").Prettify<{
|
|
154
|
+
email: string;
|
|
155
|
+
otp: string;
|
|
156
|
+
} & {
|
|
157
|
+
fetchOptions?: FetchOptions;
|
|
158
|
+
}>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
159
|
+
token: string;
|
|
160
|
+
user: {
|
|
161
|
+
id: string;
|
|
162
|
+
email: string;
|
|
163
|
+
emailVerified: boolean;
|
|
164
|
+
name: string;
|
|
165
|
+
image: string | null | undefined;
|
|
166
|
+
createdAt: Date;
|
|
167
|
+
updatedAt: Date;
|
|
168
|
+
};
|
|
169
|
+
}, {
|
|
170
|
+
code?: string;
|
|
171
|
+
message?: string;
|
|
172
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
173
|
+
};
|
|
174
|
+
} & {
|
|
175
|
+
forgetPassword: {
|
|
176
|
+
emailOtp: <FetchOptions extends {
|
|
177
|
+
method?: string;
|
|
178
|
+
mode?: RequestMode;
|
|
179
|
+
priority?: RequestPriority;
|
|
180
|
+
headers?: HeadersInit & (HeadersInit | {
|
|
181
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
182
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
183
|
+
authorization: "Bearer" | "Basic";
|
|
184
|
+
});
|
|
185
|
+
cache?: RequestCache;
|
|
186
|
+
credentials?: RequestCredentials;
|
|
187
|
+
integrity?: string;
|
|
188
|
+
keepalive?: boolean;
|
|
189
|
+
redirect?: RequestRedirect;
|
|
190
|
+
referrer?: string;
|
|
191
|
+
referrerPolicy?: ReferrerPolicy;
|
|
192
|
+
signal?: AbortSignal | null;
|
|
193
|
+
window?: null;
|
|
194
|
+
next?: NextFetchRequestConfig | undefined;
|
|
195
|
+
onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
|
|
196
|
+
onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
|
|
197
|
+
onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
|
|
198
|
+
onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
|
|
199
|
+
onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
|
|
200
|
+
hookOptions?: {
|
|
201
|
+
cloneResponse?: boolean;
|
|
202
|
+
};
|
|
203
|
+
timeout?: number;
|
|
204
|
+
customFetchImpl?: import("better-auth/react").FetchEsque;
|
|
205
|
+
plugins?: import("better-auth/react").BetterFetchPlugin[];
|
|
206
|
+
baseURL?: string;
|
|
207
|
+
throw?: boolean;
|
|
208
|
+
auth?: {
|
|
209
|
+
type: "Bearer";
|
|
210
|
+
token: string | Promise<string> | (() => string | Promise<string>);
|
|
211
|
+
} | {
|
|
212
|
+
type: "Basic";
|
|
213
|
+
username: string | (() => string);
|
|
214
|
+
password: string | (() => string);
|
|
215
|
+
} | {
|
|
216
|
+
type: "Custom";
|
|
217
|
+
prefix: string | (() => string);
|
|
218
|
+
value: string | (() => string);
|
|
219
|
+
};
|
|
220
|
+
body?: Partial<{
|
|
221
|
+
email: string;
|
|
222
|
+
}> & Record<string, any>;
|
|
223
|
+
query?: Partial<Record<string, any>> & Record<string, any>;
|
|
224
|
+
params?: Record<string, any>;
|
|
225
|
+
duplex?: "full" | "half";
|
|
226
|
+
jsonParser?: (text: string) => Promise<any> | any;
|
|
227
|
+
retry?: import("better-auth/react").RetryOptions;
|
|
228
|
+
retryAttempt?: number;
|
|
229
|
+
output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
|
|
230
|
+
errorSchema?: import("better-auth/react").StandardSchemaV1;
|
|
231
|
+
disableValidation?: boolean;
|
|
232
|
+
}>(data_0: import("better-auth").Prettify<{
|
|
233
|
+
email: string;
|
|
234
|
+
} & {
|
|
235
|
+
fetchOptions?: FetchOptions;
|
|
236
|
+
}>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
237
|
+
success: boolean;
|
|
238
|
+
}, {
|
|
239
|
+
code?: string;
|
|
240
|
+
message?: string;
|
|
241
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
242
|
+
};
|
|
243
|
+
} & {
|
|
244
|
+
emailOtp: {
|
|
245
|
+
resetPassword: <FetchOptions extends {
|
|
246
|
+
method?: string;
|
|
247
|
+
mode?: RequestMode;
|
|
248
|
+
priority?: RequestPriority;
|
|
249
|
+
headers?: HeadersInit & (HeadersInit | {
|
|
250
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
251
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
252
|
+
authorization: "Bearer" | "Basic";
|
|
253
|
+
});
|
|
254
|
+
cache?: RequestCache;
|
|
255
|
+
credentials?: RequestCredentials;
|
|
256
|
+
integrity?: string;
|
|
257
|
+
keepalive?: boolean;
|
|
258
|
+
redirect?: RequestRedirect;
|
|
259
|
+
referrer?: string;
|
|
260
|
+
referrerPolicy?: ReferrerPolicy;
|
|
261
|
+
signal?: AbortSignal | null;
|
|
262
|
+
window?: null;
|
|
263
|
+
next?: NextFetchRequestConfig | undefined;
|
|
264
|
+
onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
|
|
265
|
+
onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
|
|
266
|
+
onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
|
|
267
|
+
onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
|
|
268
|
+
onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
|
|
269
|
+
hookOptions?: {
|
|
270
|
+
cloneResponse?: boolean;
|
|
271
|
+
};
|
|
272
|
+
timeout?: number;
|
|
273
|
+
customFetchImpl?: import("better-auth/react").FetchEsque;
|
|
274
|
+
plugins?: import("better-auth/react").BetterFetchPlugin[];
|
|
275
|
+
baseURL?: string;
|
|
276
|
+
throw?: boolean;
|
|
277
|
+
auth?: {
|
|
278
|
+
type: "Bearer";
|
|
279
|
+
token: string | Promise<string> | (() => string | Promise<string>);
|
|
280
|
+
} | {
|
|
281
|
+
type: "Basic";
|
|
282
|
+
username: string | (() => string);
|
|
283
|
+
password: string | (() => string);
|
|
284
|
+
} | {
|
|
285
|
+
type: "Custom";
|
|
286
|
+
prefix: string | (() => string);
|
|
287
|
+
value: string | (() => string);
|
|
288
|
+
};
|
|
289
|
+
body?: Partial<{
|
|
290
|
+
email: string;
|
|
291
|
+
otp: string;
|
|
292
|
+
password: string;
|
|
293
|
+
}> & Record<string, any>;
|
|
294
|
+
query?: Partial<Record<string, any>> & Record<string, any>;
|
|
295
|
+
params?: Record<string, any>;
|
|
296
|
+
duplex?: "full" | "half";
|
|
297
|
+
jsonParser?: (text: string) => Promise<any> | any;
|
|
298
|
+
retry?: import("better-auth/react").RetryOptions;
|
|
299
|
+
retryAttempt?: number;
|
|
300
|
+
output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
|
|
301
|
+
errorSchema?: import("better-auth/react").StandardSchemaV1;
|
|
302
|
+
disableValidation?: boolean;
|
|
303
|
+
}>(data_0: import("better-auth").Prettify<{
|
|
304
|
+
email: string;
|
|
305
|
+
otp: string;
|
|
306
|
+
password: string;
|
|
307
|
+
} & {
|
|
308
|
+
fetchOptions?: FetchOptions;
|
|
309
|
+
}>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
310
|
+
success: boolean;
|
|
311
|
+
}, {
|
|
312
|
+
code?: string;
|
|
313
|
+
message?: string;
|
|
314
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
315
|
+
};
|
|
316
|
+
} & {
|
|
317
|
+
emailOtp: {
|
|
318
|
+
sendVerificationOtp: <FetchOptions extends {
|
|
319
|
+
method?: string;
|
|
320
|
+
mode?: RequestMode;
|
|
321
|
+
priority?: RequestPriority;
|
|
322
|
+
headers?: HeadersInit & (HeadersInit | {
|
|
323
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
324
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
325
|
+
authorization: "Bearer" | "Basic";
|
|
326
|
+
});
|
|
327
|
+
cache?: RequestCache;
|
|
328
|
+
credentials?: RequestCredentials;
|
|
329
|
+
integrity?: string;
|
|
330
|
+
keepalive?: boolean;
|
|
331
|
+
redirect?: RequestRedirect;
|
|
332
|
+
referrer?: string;
|
|
333
|
+
referrerPolicy?: ReferrerPolicy;
|
|
334
|
+
signal?: AbortSignal | null;
|
|
335
|
+
window?: null;
|
|
336
|
+
next?: NextFetchRequestConfig | undefined;
|
|
337
|
+
onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
|
|
338
|
+
onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
|
|
339
|
+
onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
|
|
340
|
+
onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
|
|
341
|
+
onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
|
|
342
|
+
hookOptions?: {
|
|
343
|
+
cloneResponse?: boolean;
|
|
344
|
+
};
|
|
345
|
+
timeout?: number;
|
|
346
|
+
customFetchImpl?: import("better-auth/react").FetchEsque;
|
|
347
|
+
plugins?: import("better-auth/react").BetterFetchPlugin[];
|
|
348
|
+
baseURL?: string;
|
|
349
|
+
throw?: boolean;
|
|
350
|
+
auth?: {
|
|
351
|
+
type: "Bearer";
|
|
352
|
+
token: string | Promise<string> | (() => string | Promise<string>);
|
|
353
|
+
} | {
|
|
354
|
+
type: "Basic";
|
|
355
|
+
username: string | (() => string);
|
|
356
|
+
password: string | (() => string);
|
|
357
|
+
} | {
|
|
358
|
+
type: "Custom";
|
|
359
|
+
prefix: string | (() => string);
|
|
360
|
+
value: string | (() => string);
|
|
361
|
+
};
|
|
362
|
+
body?: Partial<{
|
|
363
|
+
email: string;
|
|
364
|
+
type: "sign-in" | "forget-password" | "email-verification";
|
|
365
|
+
}> & Record<string, any>;
|
|
366
|
+
query?: Partial<Record<string, any>> & Record<string, any>;
|
|
367
|
+
params?: Record<string, any>;
|
|
368
|
+
duplex?: "full" | "half";
|
|
369
|
+
jsonParser?: (text: string) => Promise<any> | any;
|
|
370
|
+
retry?: import("better-auth/react").RetryOptions;
|
|
371
|
+
retryAttempt?: number;
|
|
372
|
+
output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
|
|
373
|
+
errorSchema?: import("better-auth/react").StandardSchemaV1;
|
|
374
|
+
disableValidation?: boolean;
|
|
375
|
+
}>(data_0: import("better-auth").Prettify<{
|
|
376
|
+
email: string;
|
|
377
|
+
type: "sign-in" | "forget-password" | "email-verification";
|
|
378
|
+
} & {
|
|
379
|
+
fetchOptions?: FetchOptions;
|
|
380
|
+
}>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
381
|
+
success: boolean;
|
|
382
|
+
}, {
|
|
383
|
+
code?: string;
|
|
384
|
+
message?: string;
|
|
385
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
386
|
+
};
|
|
387
|
+
} & {
|
|
2
388
|
signIn: {
|
|
3
389
|
social: <FetchOptions extends {
|
|
4
390
|
method?: string;
|
|
@@ -2122,6 +2508,84 @@ export declare const authClient: {
|
|
|
2122
2508
|
};
|
|
2123
2509
|
};
|
|
2124
2510
|
export declare const signIn: {
|
|
2511
|
+
emailOtp: <FetchOptions extends {
|
|
2512
|
+
method?: string;
|
|
2513
|
+
mode?: RequestMode;
|
|
2514
|
+
priority?: RequestPriority;
|
|
2515
|
+
headers?: HeadersInit & (HeadersInit | {
|
|
2516
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2517
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2518
|
+
authorization: "Bearer" | "Basic";
|
|
2519
|
+
});
|
|
2520
|
+
cache?: RequestCache;
|
|
2521
|
+
credentials?: RequestCredentials;
|
|
2522
|
+
integrity?: string;
|
|
2523
|
+
keepalive?: boolean;
|
|
2524
|
+
redirect?: RequestRedirect;
|
|
2525
|
+
referrer?: string;
|
|
2526
|
+
referrerPolicy?: ReferrerPolicy;
|
|
2527
|
+
signal?: AbortSignal | null;
|
|
2528
|
+
window?: null;
|
|
2529
|
+
next?: NextFetchRequestConfig | undefined;
|
|
2530
|
+
onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
|
|
2531
|
+
onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
|
|
2532
|
+
onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
|
|
2533
|
+
onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
|
|
2534
|
+
onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
|
|
2535
|
+
hookOptions?: {
|
|
2536
|
+
cloneResponse?: boolean;
|
|
2537
|
+
};
|
|
2538
|
+
timeout?: number;
|
|
2539
|
+
customFetchImpl?: import("better-auth/react").FetchEsque;
|
|
2540
|
+
plugins?: import("better-auth/react").BetterFetchPlugin[];
|
|
2541
|
+
baseURL?: string;
|
|
2542
|
+
throw?: boolean;
|
|
2543
|
+
auth?: {
|
|
2544
|
+
type: "Bearer";
|
|
2545
|
+
token: string | Promise<string> | (() => string | Promise<string>);
|
|
2546
|
+
} | {
|
|
2547
|
+
type: "Basic";
|
|
2548
|
+
username: string | (() => string);
|
|
2549
|
+
password: string | (() => string);
|
|
2550
|
+
} | {
|
|
2551
|
+
type: "Custom";
|
|
2552
|
+
prefix: string | (() => string);
|
|
2553
|
+
value: string | (() => string);
|
|
2554
|
+
};
|
|
2555
|
+
body?: Partial<{
|
|
2556
|
+
email: string;
|
|
2557
|
+
otp: string;
|
|
2558
|
+
}> & Record<string, any>;
|
|
2559
|
+
query?: Partial<Record<string, any>> & Record<string, any>;
|
|
2560
|
+
params?: Record<string, any>;
|
|
2561
|
+
duplex?: "full" | "half";
|
|
2562
|
+
jsonParser?: (text: string) => Promise<any> | any;
|
|
2563
|
+
retry?: import("better-auth/react").RetryOptions;
|
|
2564
|
+
retryAttempt?: number;
|
|
2565
|
+
output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
|
|
2566
|
+
errorSchema?: import("better-auth/react").StandardSchemaV1;
|
|
2567
|
+
disableValidation?: boolean;
|
|
2568
|
+
}>(data_0: import("better-auth").Prettify<{
|
|
2569
|
+
email: string;
|
|
2570
|
+
otp: string;
|
|
2571
|
+
} & {
|
|
2572
|
+
fetchOptions?: FetchOptions;
|
|
2573
|
+
}>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
2574
|
+
token: string;
|
|
2575
|
+
user: {
|
|
2576
|
+
id: string;
|
|
2577
|
+
email: string;
|
|
2578
|
+
emailVerified: boolean;
|
|
2579
|
+
name: string;
|
|
2580
|
+
image: string | null | undefined;
|
|
2581
|
+
createdAt: Date;
|
|
2582
|
+
updatedAt: Date;
|
|
2583
|
+
};
|
|
2584
|
+
}, {
|
|
2585
|
+
code?: string;
|
|
2586
|
+
message?: string;
|
|
2587
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2588
|
+
} & {
|
|
2125
2589
|
social: <FetchOptions extends {
|
|
2126
2590
|
method?: string;
|
|
2127
2591
|
mode?: RequestMode;
|
|
@@ -2489,11 +2953,78 @@ export declare const signIn: {
|
|
|
2489
2953
|
ipAddress?: string;
|
|
2490
2954
|
userAgent?: string;
|
|
2491
2955
|
};
|
|
2492
|
-
};
|
|
2493
|
-
isPending: boolean;
|
|
2494
|
-
error: import("better-auth/react").BetterFetchError | null;
|
|
2495
|
-
refetch: () => void;
|
|
2496
|
-
}, forgetPassword:
|
|
2956
|
+
};
|
|
2957
|
+
isPending: boolean;
|
|
2958
|
+
error: import("better-auth/react").BetterFetchError | null;
|
|
2959
|
+
refetch: () => void;
|
|
2960
|
+
}, forgetPassword: {
|
|
2961
|
+
emailOtp: <FetchOptions extends {
|
|
2962
|
+
method?: string;
|
|
2963
|
+
mode?: RequestMode;
|
|
2964
|
+
priority?: RequestPriority;
|
|
2965
|
+
headers?: HeadersInit & (HeadersInit | {
|
|
2966
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2967
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2968
|
+
authorization: "Bearer" | "Basic";
|
|
2969
|
+
});
|
|
2970
|
+
cache?: RequestCache;
|
|
2971
|
+
credentials?: RequestCredentials;
|
|
2972
|
+
integrity?: string;
|
|
2973
|
+
keepalive?: boolean;
|
|
2974
|
+
redirect?: RequestRedirect;
|
|
2975
|
+
referrer?: string;
|
|
2976
|
+
referrerPolicy?: ReferrerPolicy;
|
|
2977
|
+
signal?: AbortSignal | null;
|
|
2978
|
+
window?: null;
|
|
2979
|
+
next?: NextFetchRequestConfig | undefined;
|
|
2980
|
+
onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
|
|
2981
|
+
onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
|
|
2982
|
+
onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
|
|
2983
|
+
onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
|
|
2984
|
+
onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
|
|
2985
|
+
hookOptions?: {
|
|
2986
|
+
cloneResponse?: boolean;
|
|
2987
|
+
};
|
|
2988
|
+
timeout?: number;
|
|
2989
|
+
customFetchImpl?: import("better-auth/react").FetchEsque;
|
|
2990
|
+
plugins?: import("better-auth/react").BetterFetchPlugin[];
|
|
2991
|
+
baseURL?: string;
|
|
2992
|
+
throw?: boolean;
|
|
2993
|
+
auth?: {
|
|
2994
|
+
type: "Bearer";
|
|
2995
|
+
token: string | Promise<string> | (() => string | Promise<string>);
|
|
2996
|
+
} | {
|
|
2997
|
+
type: "Basic";
|
|
2998
|
+
username: string | (() => string);
|
|
2999
|
+
password: string | (() => string);
|
|
3000
|
+
} | {
|
|
3001
|
+
type: "Custom";
|
|
3002
|
+
prefix: string | (() => string);
|
|
3003
|
+
value: string | (() => string);
|
|
3004
|
+
};
|
|
3005
|
+
body?: Partial<{
|
|
3006
|
+
email: string;
|
|
3007
|
+
}> & Record<string, any>;
|
|
3008
|
+
query?: Partial<Record<string, any>> & Record<string, any>;
|
|
3009
|
+
params?: Record<string, any>;
|
|
3010
|
+
duplex?: "full" | "half";
|
|
3011
|
+
jsonParser?: (text: string) => Promise<any> | any;
|
|
3012
|
+
retry?: import("better-auth/react").RetryOptions;
|
|
3013
|
+
retryAttempt?: number;
|
|
3014
|
+
output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
|
|
3015
|
+
errorSchema?: import("better-auth/react").StandardSchemaV1;
|
|
3016
|
+
disableValidation?: boolean;
|
|
3017
|
+
}>(data_0: import("better-auth").Prettify<{
|
|
3018
|
+
email: string;
|
|
3019
|
+
} & {
|
|
3020
|
+
fetchOptions?: FetchOptions;
|
|
3021
|
+
}>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
3022
|
+
success: boolean;
|
|
3023
|
+
}, {
|
|
3024
|
+
code?: string;
|
|
3025
|
+
message?: string;
|
|
3026
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3027
|
+
} & (<FetchOptions extends {
|
|
2497
3028
|
method?: string;
|
|
2498
3029
|
mode?: RequestMode;
|
|
2499
3030
|
priority?: RequestPriority;
|
|
@@ -2560,7 +3091,7 @@ export declare const signIn: {
|
|
|
2560
3091
|
}, {
|
|
2561
3092
|
code?: string;
|
|
2562
3093
|
message?: string;
|
|
2563
|
-
}, FetchOptions["throw"] extends true ? true : false
|
|
3094
|
+
}, FetchOptions["throw"] extends true ? true : false>>), resetPassword: (<FetchOptions extends {
|
|
2564
3095
|
method?: string;
|
|
2565
3096
|
mode?: RequestMode;
|
|
2566
3097
|
priority?: RequestPriority;
|
|
@@ -2896,5 +3427,236 @@ export declare const signIn: {
|
|
|
2896
3427
|
}, {
|
|
2897
3428
|
code?: string;
|
|
2898
3429
|
message?: string;
|
|
2899
|
-
}, FetchOptions["throw"] extends true ? true : false
|
|
3430
|
+
}, FetchOptions["throw"] extends true ? true : false>>, emailOtp: {
|
|
3431
|
+
verifyEmail: <FetchOptions extends {
|
|
3432
|
+
method?: string;
|
|
3433
|
+
mode?: RequestMode;
|
|
3434
|
+
priority?: RequestPriority;
|
|
3435
|
+
headers?: HeadersInit & (HeadersInit | {
|
|
3436
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
3437
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
3438
|
+
authorization: "Bearer" | "Basic";
|
|
3439
|
+
});
|
|
3440
|
+
cache?: RequestCache;
|
|
3441
|
+
credentials?: RequestCredentials;
|
|
3442
|
+
integrity?: string;
|
|
3443
|
+
keepalive?: boolean;
|
|
3444
|
+
redirect?: RequestRedirect;
|
|
3445
|
+
referrer?: string;
|
|
3446
|
+
referrerPolicy?: ReferrerPolicy;
|
|
3447
|
+
signal?: AbortSignal | null;
|
|
3448
|
+
window?: null;
|
|
3449
|
+
next?: NextFetchRequestConfig | undefined;
|
|
3450
|
+
onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
|
|
3451
|
+
onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
|
|
3452
|
+
onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
|
|
3453
|
+
onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
|
|
3454
|
+
onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
|
|
3455
|
+
hookOptions?: {
|
|
3456
|
+
cloneResponse?: boolean;
|
|
3457
|
+
};
|
|
3458
|
+
timeout?: number;
|
|
3459
|
+
customFetchImpl?: import("better-auth/react").FetchEsque;
|
|
3460
|
+
plugins?: import("better-auth/react").BetterFetchPlugin[];
|
|
3461
|
+
baseURL?: string;
|
|
3462
|
+
throw?: boolean;
|
|
3463
|
+
auth?: {
|
|
3464
|
+
type: "Bearer";
|
|
3465
|
+
token: string | Promise<string> | (() => string | Promise<string>);
|
|
3466
|
+
} | {
|
|
3467
|
+
type: "Basic";
|
|
3468
|
+
username: string | (() => string);
|
|
3469
|
+
password: string | (() => string);
|
|
3470
|
+
} | {
|
|
3471
|
+
type: "Custom";
|
|
3472
|
+
prefix: string | (() => string);
|
|
3473
|
+
value: string | (() => string);
|
|
3474
|
+
};
|
|
3475
|
+
body?: Partial<{
|
|
3476
|
+
email: string;
|
|
3477
|
+
otp: string;
|
|
3478
|
+
}> & Record<string, any>;
|
|
3479
|
+
query?: Partial<Record<string, any>> & Record<string, any>;
|
|
3480
|
+
params?: Record<string, any>;
|
|
3481
|
+
duplex?: "full" | "half";
|
|
3482
|
+
jsonParser?: (text: string) => Promise<any> | any;
|
|
3483
|
+
retry?: import("better-auth/react").RetryOptions;
|
|
3484
|
+
retryAttempt?: number;
|
|
3485
|
+
output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
|
|
3486
|
+
errorSchema?: import("better-auth/react").StandardSchemaV1;
|
|
3487
|
+
disableValidation?: boolean;
|
|
3488
|
+
}>(data_0: import("better-auth").Prettify<{
|
|
3489
|
+
email: string;
|
|
3490
|
+
otp: string;
|
|
3491
|
+
} & {
|
|
3492
|
+
fetchOptions?: FetchOptions;
|
|
3493
|
+
}>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<NonNullable<{
|
|
3494
|
+
status: boolean;
|
|
3495
|
+
token: string;
|
|
3496
|
+
user: {
|
|
3497
|
+
id: any;
|
|
3498
|
+
email: any;
|
|
3499
|
+
emailVerified: any;
|
|
3500
|
+
name: any;
|
|
3501
|
+
image: any;
|
|
3502
|
+
createdAt: any;
|
|
3503
|
+
updatedAt: any;
|
|
3504
|
+
};
|
|
3505
|
+
} | {
|
|
3506
|
+
status: boolean;
|
|
3507
|
+
token: null;
|
|
3508
|
+
user: {
|
|
3509
|
+
id: any;
|
|
3510
|
+
email: any;
|
|
3511
|
+
emailVerified: any;
|
|
3512
|
+
name: any;
|
|
3513
|
+
image: any;
|
|
3514
|
+
createdAt: any;
|
|
3515
|
+
updatedAt: any;
|
|
3516
|
+
};
|
|
3517
|
+
}>, {
|
|
3518
|
+
code?: string;
|
|
3519
|
+
message?: string;
|
|
3520
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3521
|
+
} & {
|
|
3522
|
+
resetPassword: <FetchOptions extends {
|
|
3523
|
+
method?: string;
|
|
3524
|
+
mode?: RequestMode;
|
|
3525
|
+
priority?: RequestPriority;
|
|
3526
|
+
headers?: HeadersInit & (HeadersInit | {
|
|
3527
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
3528
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
3529
|
+
authorization: "Bearer" | "Basic";
|
|
3530
|
+
});
|
|
3531
|
+
cache?: RequestCache;
|
|
3532
|
+
credentials?: RequestCredentials;
|
|
3533
|
+
integrity?: string;
|
|
3534
|
+
keepalive?: boolean;
|
|
3535
|
+
redirect?: RequestRedirect;
|
|
3536
|
+
referrer?: string;
|
|
3537
|
+
referrerPolicy?: ReferrerPolicy;
|
|
3538
|
+
signal?: AbortSignal | null;
|
|
3539
|
+
window?: null;
|
|
3540
|
+
next?: NextFetchRequestConfig | undefined;
|
|
3541
|
+
onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
|
|
3542
|
+
onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
|
|
3543
|
+
onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
|
|
3544
|
+
onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
|
|
3545
|
+
onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
|
|
3546
|
+
hookOptions?: {
|
|
3547
|
+
cloneResponse?: boolean;
|
|
3548
|
+
};
|
|
3549
|
+
timeout?: number;
|
|
3550
|
+
customFetchImpl?: import("better-auth/react").FetchEsque;
|
|
3551
|
+
plugins?: import("better-auth/react").BetterFetchPlugin[];
|
|
3552
|
+
baseURL?: string;
|
|
3553
|
+
throw?: boolean;
|
|
3554
|
+
auth?: {
|
|
3555
|
+
type: "Bearer";
|
|
3556
|
+
token: string | Promise<string> | (() => string | Promise<string>);
|
|
3557
|
+
} | {
|
|
3558
|
+
type: "Basic";
|
|
3559
|
+
username: string | (() => string);
|
|
3560
|
+
password: string | (() => string);
|
|
3561
|
+
} | {
|
|
3562
|
+
type: "Custom";
|
|
3563
|
+
prefix: string | (() => string);
|
|
3564
|
+
value: string | (() => string);
|
|
3565
|
+
};
|
|
3566
|
+
body?: Partial<{
|
|
3567
|
+
email: string;
|
|
3568
|
+
otp: string;
|
|
3569
|
+
password: string;
|
|
3570
|
+
}> & Record<string, any>;
|
|
3571
|
+
query?: Partial<Record<string, any>> & Record<string, any>;
|
|
3572
|
+
params?: Record<string, any>;
|
|
3573
|
+
duplex?: "full" | "half";
|
|
3574
|
+
jsonParser?: (text: string) => Promise<any> | any;
|
|
3575
|
+
retry?: import("better-auth/react").RetryOptions;
|
|
3576
|
+
retryAttempt?: number;
|
|
3577
|
+
output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
|
|
3578
|
+
errorSchema?: import("better-auth/react").StandardSchemaV1;
|
|
3579
|
+
disableValidation?: boolean;
|
|
3580
|
+
}>(data_0: import("better-auth").Prettify<{
|
|
3581
|
+
email: string;
|
|
3582
|
+
otp: string;
|
|
3583
|
+
password: string;
|
|
3584
|
+
} & {
|
|
3585
|
+
fetchOptions?: FetchOptions;
|
|
3586
|
+
}>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
3587
|
+
success: boolean;
|
|
3588
|
+
}, {
|
|
3589
|
+
code?: string;
|
|
3590
|
+
message?: string;
|
|
3591
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3592
|
+
} & {
|
|
3593
|
+
sendVerificationOtp: <FetchOptions extends {
|
|
3594
|
+
method?: string;
|
|
3595
|
+
mode?: RequestMode;
|
|
3596
|
+
priority?: RequestPriority;
|
|
3597
|
+
headers?: HeadersInit & (HeadersInit | {
|
|
3598
|
+
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
3599
|
+
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
3600
|
+
authorization: "Bearer" | "Basic";
|
|
3601
|
+
});
|
|
3602
|
+
cache?: RequestCache;
|
|
3603
|
+
credentials?: RequestCredentials;
|
|
3604
|
+
integrity?: string;
|
|
3605
|
+
keepalive?: boolean;
|
|
3606
|
+
redirect?: RequestRedirect;
|
|
3607
|
+
referrer?: string;
|
|
3608
|
+
referrerPolicy?: ReferrerPolicy;
|
|
3609
|
+
signal?: AbortSignal | null;
|
|
3610
|
+
window?: null;
|
|
3611
|
+
next?: NextFetchRequestConfig | undefined;
|
|
3612
|
+
onRequest?: <T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void;
|
|
3613
|
+
onResponse?: (context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void;
|
|
3614
|
+
onSuccess?: (context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void;
|
|
3615
|
+
onError?: (context: import("better-auth/react").ErrorContext) => Promise<void> | void;
|
|
3616
|
+
onRetry?: (response: import("better-auth/react").ResponseContext) => Promise<void> | void;
|
|
3617
|
+
hookOptions?: {
|
|
3618
|
+
cloneResponse?: boolean;
|
|
3619
|
+
};
|
|
3620
|
+
timeout?: number;
|
|
3621
|
+
customFetchImpl?: import("better-auth/react").FetchEsque;
|
|
3622
|
+
plugins?: import("better-auth/react").BetterFetchPlugin[];
|
|
3623
|
+
baseURL?: string;
|
|
3624
|
+
throw?: boolean;
|
|
3625
|
+
auth?: {
|
|
3626
|
+
type: "Bearer";
|
|
3627
|
+
token: string | Promise<string> | (() => string | Promise<string>);
|
|
3628
|
+
} | {
|
|
3629
|
+
type: "Basic";
|
|
3630
|
+
username: string | (() => string);
|
|
3631
|
+
password: string | (() => string);
|
|
3632
|
+
} | {
|
|
3633
|
+
type: "Custom";
|
|
3634
|
+
prefix: string | (() => string);
|
|
3635
|
+
value: string | (() => string);
|
|
3636
|
+
};
|
|
3637
|
+
body?: Partial<{
|
|
3638
|
+
email: string;
|
|
3639
|
+
type: "sign-in" | "forget-password" | "email-verification";
|
|
3640
|
+
}> & Record<string, any>;
|
|
3641
|
+
query?: Partial<Record<string, any>> & Record<string, any>;
|
|
3642
|
+
params?: Record<string, any>;
|
|
3643
|
+
duplex?: "full" | "half";
|
|
3644
|
+
jsonParser?: (text: string) => Promise<any> | any;
|
|
3645
|
+
retry?: import("better-auth/react").RetryOptions;
|
|
3646
|
+
retryAttempt?: number;
|
|
3647
|
+
output?: import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File;
|
|
3648
|
+
errorSchema?: import("better-auth/react").StandardSchemaV1;
|
|
3649
|
+
disableValidation?: boolean;
|
|
3650
|
+
}>(data_0: import("better-auth").Prettify<{
|
|
3651
|
+
email: string;
|
|
3652
|
+
type: "sign-in" | "forget-password" | "email-verification";
|
|
3653
|
+
} & {
|
|
3654
|
+
fetchOptions?: FetchOptions;
|
|
3655
|
+
}>, data_1?: FetchOptions) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
3656
|
+
success: boolean;
|
|
3657
|
+
}, {
|
|
3658
|
+
code?: string;
|
|
3659
|
+
message?: string;
|
|
3660
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3661
|
+
};
|
|
2900
3662
|
//# sourceMappingURL=auth-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-client.d.ts","sourceRoot":"","sources":["../../src/lib/auth-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth-client.d.ts","sourceRoot":"","sources":["../../src/lib/auth-client.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAkBkskB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAHxtkB,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;qBAG4skB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wDAFxtkB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;qBAEkskB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wDADxtkB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;yBAC+skB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA5skB,CAAC"}
|
package/dist/lib/auth-client.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { createAuthClient } from "better-auth/react";
|
|
2
2
|
import { inferAdditionalFields } from "better-auth/client/plugins";
|
|
3
|
+
import { emailOTPClient } from "better-auth/client/plugins";
|
|
3
4
|
const authClient = createAuthClient({
|
|
4
5
|
baseURL: process.env.NEXT_PUBLIC_APP_URL || "http://localhost:5173",
|
|
5
6
|
plugins: [
|
|
6
|
-
inferAdditionalFields()
|
|
7
|
+
inferAdditionalFields(),
|
|
8
|
+
emailOTPClient()
|
|
7
9
|
]
|
|
8
10
|
});
|
|
9
11
|
const {
|
|
@@ -14,10 +16,12 @@ const {
|
|
|
14
16
|
forgetPassword,
|
|
15
17
|
resetPassword,
|
|
16
18
|
verifyEmail,
|
|
17
|
-
sendVerificationEmail
|
|
19
|
+
sendVerificationEmail,
|
|
20
|
+
emailOtp
|
|
18
21
|
} = authClient;
|
|
19
22
|
export {
|
|
20
23
|
authClient,
|
|
24
|
+
emailOtp,
|
|
21
25
|
forgetPassword,
|
|
22
26
|
resetPassword,
|
|
23
27
|
sendVerificationEmail,
|
package/dist/lib/auth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/lib/auth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/lib/auth.ts"],"names":[],"mappings":"AAMA,OAAO,EAAgF,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAiDvH,eAAO,MAAM,IAAI;;;;kGA4Wg3sgB,CAAC;oBAAyB,CAAC;;sBAAqD,CAAC;;qBAA4D,CAAC;;sBAA2E,CAAC;;uBAAgE,CAAC;;uBAAoD,CAAC;;0BAA2D,CAAC;6BAAwC,CAAC;mBAA8B,CAAC;oBAAgD,CAAC;;0BAAsD,CAAC;6BAAuD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kGAA8pD,CAAC;oBAAyB,CAAC;;sBAAqD,CAAC;;qBAA4D,CAAC;;sBAA2E,CAAC;;uBAAgE,CAAC;;uBAAoD,CAAC;;0BAA2D,CAAC;6BAAwC,CAAC;mBAA8B,CAAC;oBAAgD,CAAC;;0BAAsD,CAAC;6BAAuD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAAu1C,CAAC;sCAA4D,CAAC;oCAA0D,CAAC;mCAAyD,CAAC;2BAAkD,CAAC;;6BAAwE,CAAC;mCAAyD,CAAC;oCAA0D,CAAC;iCAAuD,CAAC;;0BAAmF,CAAC;iCAAyD,CAAC;6BAAoD,CAAC;;;sBAAiF,CAAC;;qBAA6D,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ACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,kBAAkB,EAAE,QAAQ,EAAE,CAAC;CAC/C,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC5B,IAAI,EAAE,WAAW,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAO9B"}
|
package/dist/lib/auth.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { betterAuth } from "better-auth";
|
|
2
2
|
import { Pool } from "pg";
|
|
3
3
|
import { nextCookies } from "better-auth/next-js";
|
|
4
|
+
import { emailOTP } from "better-auth/plugins";
|
|
4
5
|
import { parseSSLConfig, stripSSLParams } from "./db.js";
|
|
5
6
|
import { EmailFactory, emailTemplates } from "./email/index.js";
|
|
6
7
|
import { I18N_CONFIG, USER_ROLES_CONFIG, TEAMS_CONFIG, AUTH_CONFIG, APP_CONFIG_MERGED } from "./config/index.js";
|
|
@@ -150,6 +151,23 @@ const auth = betterAuth({
|
|
|
150
151
|
plugins: [
|
|
151
152
|
registrationGuardPlugin(),
|
|
152
153
|
// Intercept OAuth signup attempts
|
|
154
|
+
emailOTP({
|
|
155
|
+
async sendVerificationOTP({ email, otp, type }) {
|
|
156
|
+
const template = emailTemplates.otpVerification({
|
|
157
|
+
email,
|
|
158
|
+
otp,
|
|
159
|
+
type,
|
|
160
|
+
appName: process.env.NEXT_PUBLIC_APP_NAME || "Your App"
|
|
161
|
+
});
|
|
162
|
+
await emailService.send({ to: email, ...template });
|
|
163
|
+
},
|
|
164
|
+
otpLength: 6,
|
|
165
|
+
expiresIn: 300,
|
|
166
|
+
// 5 minutes
|
|
167
|
+
sendVerificationOnSignUp: false,
|
|
168
|
+
disableSignUp: false
|
|
169
|
+
// auto-create user on first OTP sign-in
|
|
170
|
+
}),
|
|
153
171
|
nextCookies()
|
|
154
172
|
// MUST be the last plugin for Next.js cookie handling
|
|
155
173
|
],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VerificationEmailData, PasswordResetEmailData, TeamInvitationEmailData } from './types';
|
|
1
|
+
import type { VerificationEmailData, PasswordResetEmailData, TeamInvitationEmailData, OtpVerificationEmailData } from './types';
|
|
2
2
|
export declare const emailTemplates: {
|
|
3
3
|
verifyEmail: (data: VerificationEmailData) => {
|
|
4
4
|
subject: string;
|
|
@@ -8,6 +8,10 @@ export declare const emailTemplates: {
|
|
|
8
8
|
subject: string;
|
|
9
9
|
html: string;
|
|
10
10
|
};
|
|
11
|
+
otpVerification: (data: OtpVerificationEmailData) => {
|
|
12
|
+
subject: string;
|
|
13
|
+
html: string;
|
|
14
|
+
};
|
|
11
15
|
teamInvitation: (data: TeamInvitationEmailData) => {
|
|
12
16
|
subject: string;
|
|
13
17
|
html: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/lib/email/templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/lib/email/templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAIhI,eAAO,MAAM,cAAc;wBACL,qBAAqB;;;;0BA0EnB,sBAAsB;;;;4BAoFpB,wBAAwB;;;;2BA8DzB,uBAAuB;;;;CAmF/C,CAAC;AAGF,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,GAAG,SAAS,EAAE,WAAW,MAAM;;;CAK/E,CAAC;AAEL,eAAO,MAAM,wBAAwB,GAAI,MAAM,MAAM,GAAG,SAAS,EAAE,UAAU,MAAM;;;CAK/E,CAAC;AAEL,eAAO,MAAM,yBAAyB,GACpC,cAAc,MAAM,EACpB,aAAa,MAAM,EACnB,UAAU,MAAM,EAChB,MAAM,MAAM,EACZ,WAAW,MAAM,EACjB,YAAW,MAAiB;;;CAU1B,CAAC"}
|
|
@@ -156,6 +156,67 @@ const emailTemplates = {
|
|
|
156
156
|
</html>
|
|
157
157
|
`
|
|
158
158
|
}),
|
|
159
|
+
otpVerification: (data) => ({
|
|
160
|
+
subject: `${data.otp} is your verification code - ${data.appName || APP_NAME}`,
|
|
161
|
+
html: `
|
|
162
|
+
<!DOCTYPE html>
|
|
163
|
+
<html>
|
|
164
|
+
<head>
|
|
165
|
+
<meta charset="utf-8">
|
|
166
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
167
|
+
</head>
|
|
168
|
+
<body style="margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f4f4;">
|
|
169
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0">
|
|
170
|
+
<tr>
|
|
171
|
+
<td align="center" style="padding: 40px 0;">
|
|
172
|
+
<table role="presentation" width="600" cellspacing="0" cellpadding="0" border="0" style="background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
|
|
173
|
+
<!-- Header -->
|
|
174
|
+
<tr>
|
|
175
|
+
<td style="padding: 40px 40px 20px 40px; text-align: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 8px 8px 0 0;">
|
|
176
|
+
<h1 style="color: #ffffff; font-size: 28px; margin: 0; font-weight: 600;">${data.appName || APP_NAME}</h1>
|
|
177
|
+
<p style="color: #ffffff; font-size: 16px; margin: 10px 0 0 0; opacity: 0.95;">Verification Code</p>
|
|
178
|
+
</td>
|
|
179
|
+
</tr>
|
|
180
|
+
|
|
181
|
+
<!-- Content -->
|
|
182
|
+
<tr>
|
|
183
|
+
<td style="padding: 40px; text-align: center;">
|
|
184
|
+
<h2 style="color: #333333; font-size: 24px; margin: 0 0 20px 0; font-weight: 600;">Your verification code</h2>
|
|
185
|
+
|
|
186
|
+
<p style="color: #666666; font-size: 16px; line-height: 1.6; margin: 0 0 30px 0;">
|
|
187
|
+
Enter this code to verify your identity:
|
|
188
|
+
</p>
|
|
189
|
+
|
|
190
|
+
<div style="margin: 0 auto 30px; padding: 20px 40px; background-color: #f8f8f8; border-radius: 8px; display: inline-block;">
|
|
191
|
+
<span style="font-size: 36px; font-weight: 700; letter-spacing: 8px; color: #333333; font-family: monospace;">${data.otp}</span>
|
|
192
|
+
</div>
|
|
193
|
+
|
|
194
|
+
<p style="color: #999999; font-size: 14px; line-height: 1.6; margin: 0;">
|
|
195
|
+
This code expires in <strong>5 minutes</strong>.<br>
|
|
196
|
+
If you didn't request this code, you can safely ignore this email.
|
|
197
|
+
</p>
|
|
198
|
+
</td>
|
|
199
|
+
</tr>
|
|
200
|
+
|
|
201
|
+
<!-- Footer -->
|
|
202
|
+
<tr>
|
|
203
|
+
<td style="padding: 30px 40px; background-color: #f8f8f8; border-radius: 0 0 8px 8px; text-align: center;">
|
|
204
|
+
<p style="color: #999999; font-size: 14px; margin: 0 0 10px 0;">
|
|
205
|
+
© ${(/* @__PURE__ */ new Date()).getFullYear()} ${data.appName || APP_NAME}. All rights reserved.
|
|
206
|
+
</p>
|
|
207
|
+
<p style="color: #999999; font-size: 12px; margin: 0;">
|
|
208
|
+
This is an automated email from ${data.appName || APP_NAME}.
|
|
209
|
+
</p>
|
|
210
|
+
</td>
|
|
211
|
+
</tr>
|
|
212
|
+
</table>
|
|
213
|
+
</td>
|
|
214
|
+
</tr>
|
|
215
|
+
</table>
|
|
216
|
+
</body>
|
|
217
|
+
</html>
|
|
218
|
+
`
|
|
219
|
+
}),
|
|
159
220
|
teamInvitation: (data) => ({
|
|
160
221
|
subject: `You've been invited to join ${data.teamName} on ${data.appName || APP_NAME}`,
|
|
161
222
|
html: `
|
|
@@ -52,4 +52,10 @@ export interface TeamInvitationEmailData extends EmailTemplateData {
|
|
|
52
52
|
expiresIn: string;
|
|
53
53
|
appName: string;
|
|
54
54
|
}
|
|
55
|
+
export interface OtpVerificationEmailData extends EmailTemplateData {
|
|
56
|
+
email: string;
|
|
57
|
+
otp: string;
|
|
58
|
+
type: string;
|
|
59
|
+
appName: string;
|
|
60
|
+
}
|
|
55
61
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/email/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aA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AM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB;IACjE,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
package/dist/styles/classes.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextsparkjs/core",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.115",
|
|
4
4
|
"description": "NextSpark - The complete SaaS framework for Next.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "NextSpark <hello@nextspark.dev>",
|
|
@@ -454,7 +454,7 @@
|
|
|
454
454
|
"tailwind-merge": "^3.3.1",
|
|
455
455
|
"uuid": "^13.0.0",
|
|
456
456
|
"zod": "^4.1.5",
|
|
457
|
-
"@nextsparkjs/testing": "0.1.0-beta.
|
|
457
|
+
"@nextsparkjs/testing": "0.1.0-beta.115"
|
|
458
458
|
},
|
|
459
459
|
"scripts": {
|
|
460
460
|
"postinstall": "node scripts/postinstall.mjs || true",
|