@better-auth/infra 0.2.6 → 0.2.8
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/client.d.mts +6 -1
- package/dist/client.mjs +34 -20
- package/dist/{constants-DdWGfvz1.mjs → constants-CvriWQVc.mjs} +6 -2
- package/dist/email.d.mts +5 -0
- package/dist/email.mjs +33 -31
- package/dist/fetch-DiAhoiKA.mjs +26 -0
- package/dist/index.d.mts +43 -10
- package/dist/index.mjs +305 -295
- package/dist/native.d.mts +6 -1
- package/dist/native.mjs +28 -15
- package/dist/{pow-CT9ehp8e.mjs → pow-retry-BTL4g3RP.mjs} +23 -21
- package/package.json +2 -2
- /package/dist/{dash-client-CVCHbtoB.d.mts → dash-client-B6U89e1S.d.mts} +0 -0
package/dist/client.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DashGetAuditLogsInput, i as DashGetAllAuditLogsInput, n as DashAuditLogsResponse, o as dashClient, r as DashClientOptions, t as DashAuditLog } from "./dash-client-
|
|
1
|
+
import { a as DashGetAuditLogsInput, i as DashGetAllAuditLogsInput, n as DashAuditLogsResponse, o as dashClient, r as DashClientOptions, t as DashAuditLog } from "./dash-client-B6U89e1S.mjs";
|
|
2
2
|
import * as _$_better_fetch_fetch0 from "@better-fetch/fetch";
|
|
3
3
|
|
|
4
4
|
//#region src/sentinel/client.d.ts
|
|
@@ -8,6 +8,11 @@ interface SentinelClientOptions {
|
|
|
8
8
|
* @default "https://kv.better-auth.com"
|
|
9
9
|
*/
|
|
10
10
|
identifyUrl?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Timeout for KV identify and related HTTP requests (milliseconds).
|
|
13
|
+
* @default 1000
|
|
14
|
+
*/
|
|
15
|
+
kvTimeout?: number;
|
|
11
16
|
/**
|
|
12
17
|
* Whether to automatically solve PoW challenges (default: true)
|
|
13
18
|
*/
|
package/dist/client.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "./constants-CvriWQVc.mjs";
|
|
2
|
+
import { n as createKV } from "./fetch-DiAhoiKA.mjs";
|
|
3
|
+
import { a as generateRequestId, c as hash, i as solvePoWChallenge, l as dashClient, n as decodePoWChallenge, o as identify, r as encodePoWSolution, t as createPowRetryTimeout } from "./pow-retry-BTL4g3RP.mjs";
|
|
3
4
|
import { env } from "@better-auth/core/env";
|
|
4
5
|
//#region src/sentinel/fingerprint.ts
|
|
5
6
|
function murmurhash3(str, seed = 0) {
|
|
@@ -384,7 +385,7 @@ async function getFingerprint() {
|
|
|
384
385
|
return null;
|
|
385
386
|
}
|
|
386
387
|
}
|
|
387
|
-
async function sendIdentify(
|
|
388
|
+
async function sendIdentify($kv) {
|
|
388
389
|
if (identifySent || typeof window === "undefined") return;
|
|
389
390
|
const fingerprint = await getFingerprint();
|
|
390
391
|
if (!fingerprint) return;
|
|
@@ -401,7 +402,7 @@ async function sendIdentify(identifyUrl) {
|
|
|
401
402
|
incognito: detectIncognito()
|
|
402
403
|
};
|
|
403
404
|
try {
|
|
404
|
-
await identify(
|
|
405
|
+
await identify($kv, payload);
|
|
405
406
|
} catch (error) {
|
|
406
407
|
console.warn("[Dash] Identify request failed:", error);
|
|
407
408
|
} finally {
|
|
@@ -411,24 +412,30 @@ async function sendIdentify(identifyUrl) {
|
|
|
411
412
|
/**
|
|
412
413
|
* Wait for identify to complete, with a timeout
|
|
413
414
|
* Returns immediately if identify hasn't started or has completed
|
|
415
|
+
*
|
|
416
|
+
* When `timeoutMs` is omitted or nullish, {@link KV_TIMEOUT_MS} is used.
|
|
414
417
|
*/
|
|
415
|
-
async function waitForIdentify(timeoutMs
|
|
418
|
+
async function waitForIdentify(timeoutMs) {
|
|
416
419
|
if (!identifyCompletePromise) return;
|
|
417
|
-
|
|
420
|
+
const ms = timeoutMs ?? 1e3;
|
|
421
|
+
await Promise.race([identifyCompletePromise, new Promise((resolve) => setTimeout(resolve, ms))]);
|
|
418
422
|
}
|
|
419
423
|
//#endregion
|
|
420
424
|
//#region src/sentinel/client.ts
|
|
421
425
|
const DEFAULT_IDENTIFY_URL = "https://kv.better-auth.com";
|
|
422
426
|
const sentinelClient = (options) => {
|
|
423
427
|
const autoSolve = options?.autoSolveChallenge !== false;
|
|
424
|
-
const
|
|
428
|
+
const $kv = createKV({
|
|
429
|
+
kvUrl: options?.identifyUrl ?? env.BETTER_AUTH_KV_URL ?? DEFAULT_IDENTIFY_URL,
|
|
430
|
+
kvTimeout: options?.kvTimeout
|
|
431
|
+
});
|
|
425
432
|
if (typeof window !== "undefined") {
|
|
426
433
|
const scheduleIdentify = () => {
|
|
427
434
|
if ("requestIdleCallback" in window) window.requestIdleCallback(() => {
|
|
428
|
-
sendIdentify(
|
|
435
|
+
sendIdentify($kv);
|
|
429
436
|
});
|
|
430
437
|
else setTimeout(() => {
|
|
431
|
-
sendIdentify(
|
|
438
|
+
sendIdentify($kv);
|
|
432
439
|
}, 100);
|
|
433
440
|
};
|
|
434
441
|
if (document.readyState === "complete") scheduleIdentify();
|
|
@@ -441,7 +448,7 @@ const sentinelClient = (options) => {
|
|
|
441
448
|
name: "sentinel-fingerprint",
|
|
442
449
|
hooks: { async onRequest(context) {
|
|
443
450
|
if (typeof window === "undefined") return context;
|
|
444
|
-
await waitForIdentify(
|
|
451
|
+
await waitForIdentify(options?.kvTimeout);
|
|
445
452
|
const fingerprint = await getFingerprint();
|
|
446
453
|
if (!fingerprint) return context;
|
|
447
454
|
const headers = context.headers || new Headers();
|
|
@@ -483,16 +490,23 @@ const sentinelClient = (options) => {
|
|
|
483
490
|
retryHeaders.set("Content-Type", "application/json");
|
|
484
491
|
let body;
|
|
485
492
|
if (context.request && context.request.body) body = context.request._originalBody;
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
493
|
+
const req = context.request;
|
|
494
|
+
const powRetry = createPowRetryTimeout(req.timeout);
|
|
495
|
+
try {
|
|
496
|
+
const retryResponse = await fetch(originalUrl, {
|
|
497
|
+
method: req.method || "POST",
|
|
498
|
+
headers: retryHeaders,
|
|
499
|
+
body,
|
|
500
|
+
credentials: "include",
|
|
501
|
+
...powRetry.signal ? { signal: powRetry.signal } : {}
|
|
502
|
+
});
|
|
503
|
+
return {
|
|
504
|
+
...context,
|
|
505
|
+
response: retryResponse
|
|
506
|
+
};
|
|
507
|
+
} finally {
|
|
508
|
+
powRetry.cleanup?.();
|
|
509
|
+
}
|
|
496
510
|
} catch (error) {
|
|
497
511
|
console.error("[Sentinel] Failed to solve PoW challenge:", error);
|
|
498
512
|
options?.onChallengeFailed?.(error instanceof Error ? error : new Error(String(error)));
|
|
@@ -11,6 +11,10 @@ const INFRA_API_URL = env.BETTER_AUTH_API_URL || "https://dash.better-auth.com";
|
|
|
11
11
|
*/
|
|
12
12
|
const INFRA_KV_URL = env.BETTER_AUTH_KV_URL || "https://kv.better-auth.com";
|
|
13
13
|
/** Timeout for KV HTTP operations (ms) */
|
|
14
|
-
const KV_TIMEOUT_MS =
|
|
14
|
+
const KV_TIMEOUT_MS = 1e3;
|
|
15
|
+
/**
|
|
16
|
+
* Timeout for API calls HTTP calls (ms)
|
|
17
|
+
*/
|
|
18
|
+
const INFRA_API_TIMEOUT_MS = 3e3;
|
|
15
19
|
//#endregion
|
|
16
|
-
export {
|
|
20
|
+
export { KV_TIMEOUT_MS as i, INFRA_API_URL as n, INFRA_KV_URL as r, INFRA_API_TIMEOUT_MS as t };
|
package/dist/email.d.mts
CHANGED
|
@@ -146,6 +146,11 @@ interface SendEmailResult {
|
|
|
146
146
|
interface EmailConfig {
|
|
147
147
|
apiKey?: string;
|
|
148
148
|
apiUrl?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Timeout for Dash email API HTTP requests (milliseconds).
|
|
151
|
+
* @default 3000
|
|
152
|
+
*/
|
|
153
|
+
apiTimeout?: number;
|
|
149
154
|
}
|
|
150
155
|
/**
|
|
151
156
|
* Type-safe send email options
|
package/dist/email.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as INFRA_API_URL } from "./constants-CvriWQVc.mjs";
|
|
2
2
|
import { logger } from "better-auth";
|
|
3
3
|
import { env } from "@better-auth/core/env";
|
|
4
|
+
import { createFetch } from "@better-fetch/fetch";
|
|
4
5
|
//#region src/email.ts
|
|
5
6
|
/**
|
|
6
7
|
* Email sending module for @better-auth/infra
|
|
@@ -34,6 +35,11 @@ function createEmailSender(config) {
|
|
|
34
35
|
const apiUrl = baseUrl.endsWith("/api") ? baseUrl : `${baseUrl}/api`;
|
|
35
36
|
const apiKey = config?.apiKey || env.BETTER_AUTH_API_KEY || "";
|
|
36
37
|
if (!apiKey) logger.warn("[Dash] No API key provided for email sending. Set BETTER_AUTH_API_KEY environment variable or pass apiKey in config.");
|
|
38
|
+
const $api = createFetch({
|
|
39
|
+
baseURL: apiUrl,
|
|
40
|
+
headers: { Authorization: `Bearer ${apiKey}` },
|
|
41
|
+
timeout: config?.apiTimeout ?? 3e3
|
|
42
|
+
});
|
|
37
43
|
/**
|
|
38
44
|
* Send an email using a template from Better Auth Infra
|
|
39
45
|
*/
|
|
@@ -43,26 +49,26 @@ function createEmailSender(config) {
|
|
|
43
49
|
error: "API key not configured"
|
|
44
50
|
};
|
|
45
51
|
try {
|
|
46
|
-
const
|
|
52
|
+
const { data, error } = await $api("/v1/email/send", {
|
|
47
53
|
method: "POST",
|
|
48
|
-
|
|
49
|
-
"Content-Type": "application/json",
|
|
50
|
-
Authorization: `Bearer ${apiKey}`
|
|
51
|
-
},
|
|
52
|
-
body: JSON.stringify({
|
|
54
|
+
body: {
|
|
53
55
|
template: options.template,
|
|
54
56
|
to: options.to,
|
|
55
57
|
variables: options.variables || {},
|
|
56
58
|
subject: options.subject
|
|
57
|
-
}
|
|
59
|
+
}
|
|
58
60
|
});
|
|
59
|
-
if (
|
|
61
|
+
if (error) return {
|
|
60
62
|
success: false,
|
|
61
|
-
error:
|
|
63
|
+
error: error.message || `HTTP ${error.status}`
|
|
64
|
+
};
|
|
65
|
+
if (typeof data !== "object" || Array.isArray(data)) return {
|
|
66
|
+
success: false,
|
|
67
|
+
error: "Failed to parse JSON"
|
|
62
68
|
};
|
|
63
69
|
return {
|
|
64
70
|
success: true,
|
|
65
|
-
messageId:
|
|
71
|
+
messageId: data.messageId
|
|
66
72
|
};
|
|
67
73
|
} catch (error) {
|
|
68
74
|
logger.warn("[Dash] Email send failed:", error);
|
|
@@ -81,13 +87,9 @@ function createEmailSender(config) {
|
|
|
81
87
|
failures: Object.fromEntries(options.emails.map((e) => [e.to, [{ error: "API key not configured" }]]))
|
|
82
88
|
};
|
|
83
89
|
try {
|
|
84
|
-
const
|
|
90
|
+
const { data, error } = await $api("/v1/email/send-bulk", {
|
|
85
91
|
method: "POST",
|
|
86
|
-
|
|
87
|
-
"Content-Type": "application/json",
|
|
88
|
-
Authorization: `Bearer ${apiKey}`
|
|
89
|
-
},
|
|
90
|
-
body: JSON.stringify({
|
|
92
|
+
body: {
|
|
91
93
|
template: options.template,
|
|
92
94
|
emails: options.emails.map((e) => ({
|
|
93
95
|
to: e.to,
|
|
@@ -95,19 +97,19 @@ function createEmailSender(config) {
|
|
|
95
97
|
})),
|
|
96
98
|
subject: options.subject,
|
|
97
99
|
variables: options.variables || {}
|
|
98
|
-
}
|
|
100
|
+
}
|
|
99
101
|
});
|
|
100
|
-
if (
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
102
|
+
if (error) return {
|
|
103
|
+
success: false,
|
|
104
|
+
failures: Object.fromEntries(options.emails.map((e) => [e.to, [{ error: error.message || `HTTP ${error.status}` }]]))
|
|
105
|
+
};
|
|
106
|
+
if (typeof data !== "object" || Array.isArray(data) || typeof data.success !== "boolean") return {
|
|
107
|
+
success: false,
|
|
108
|
+
failures: Object.fromEntries(options.emails.map((e) => [e.to, [{ error: "Failed to parse JSON" }]]))
|
|
109
|
+
};
|
|
108
110
|
return {
|
|
109
|
-
success:
|
|
110
|
-
failures:
|
|
111
|
+
success: data.success,
|
|
112
|
+
failures: data.failures
|
|
111
113
|
};
|
|
112
114
|
} catch (error) {
|
|
113
115
|
logger.warn("[Dash] Bulk email send failed:", error);
|
|
@@ -123,9 +125,9 @@ function createEmailSender(config) {
|
|
|
123
125
|
async function getTemplates() {
|
|
124
126
|
if (!apiKey) return [];
|
|
125
127
|
try {
|
|
126
|
-
const
|
|
127
|
-
if (!
|
|
128
|
-
return
|
|
128
|
+
const { data, error } = await $api("/v1/email/templates", { method: "GET" });
|
|
129
|
+
if (error || !data || !Array.isArray(data)) return [];
|
|
130
|
+
return data;
|
|
129
131
|
} catch (error) {
|
|
130
132
|
logger.warn("[Dash] Failed to fetch email templates:", error);
|
|
131
133
|
return [];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import "./constants-CvriWQVc.mjs";
|
|
2
|
+
import { createFetch } from "@better-fetch/fetch";
|
|
3
|
+
//#region src/fetch.ts
|
|
4
|
+
function createAPI(options, fetchOptions) {
|
|
5
|
+
return createFetch({
|
|
6
|
+
baseURL: options.apiUrl,
|
|
7
|
+
headers: {
|
|
8
|
+
"user-agent": "better-auth",
|
|
9
|
+
"x-api-key": options.apiKey
|
|
10
|
+
},
|
|
11
|
+
timeout: options.apiTimeout,
|
|
12
|
+
...fetchOptions
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function createKV(options, fetchOptions) {
|
|
16
|
+
const headers = { "user-agent": "better-auth" };
|
|
17
|
+
if (options.apiKey) headers["x-api-key"] = options.apiKey;
|
|
18
|
+
return createFetch({
|
|
19
|
+
baseURL: options.kvUrl,
|
|
20
|
+
headers,
|
|
21
|
+
timeout: options.kvTimeout ?? 1e3,
|
|
22
|
+
...fetchOptions
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { createKV as n, createAPI as t };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { EMAIL_TEMPLATES, EmailConfig, EmailTemplateId, EmailTemplateVariables, SendBulkEmailsOptions, SendBulkEmailsResult, SendEmailOptions, SendEmailResult, createEmailSender, sendBulkEmails, sendEmail } from "./email.mjs";
|
|
2
2
|
import * as _$better_auth0 from "better-auth";
|
|
3
3
|
import { Account, AuthContext, BetterAuthPlugin, GenericEndpointContext, Session, User } from "better-auth";
|
|
4
|
+
import * as _$_better_fetch_fetch0 from "@better-fetch/fetch";
|
|
5
|
+
import { createFetch } from "@better-fetch/fetch";
|
|
4
6
|
import * as _$jose from "jose";
|
|
5
7
|
import * as zod from "zod";
|
|
6
8
|
import z$1 from "zod";
|
|
@@ -448,6 +450,16 @@ interface InfraPluginConnectionOptions {
|
|
|
448
450
|
* @default process.env.BETTER_AUTH_API_KEY
|
|
449
451
|
*/
|
|
450
452
|
apiKey?: string;
|
|
453
|
+
/**
|
|
454
|
+
* Timeout for Dash API HTTP requests (milliseconds).
|
|
455
|
+
* @default 3000
|
|
456
|
+
*/
|
|
457
|
+
apiTimeout?: number;
|
|
458
|
+
/**
|
|
459
|
+
* Timeout for KV HTTP requests (milliseconds).
|
|
460
|
+
* @default 1000
|
|
461
|
+
*/
|
|
462
|
+
kvTimeout?: number;
|
|
451
463
|
}
|
|
452
464
|
/**
|
|
453
465
|
* Configuration options for the dash plugin.
|
|
@@ -483,21 +495,31 @@ interface SentinelOptions extends InfraPluginConnectionOptions {
|
|
|
483
495
|
}
|
|
484
496
|
/**
|
|
485
497
|
* Internal connection options with required fields resolved.
|
|
486
|
-
* @internal
|
|
487
498
|
*/
|
|
488
499
|
interface InfraPluginConnectionOptionsInternal extends InfraPluginConnectionOptions {
|
|
489
500
|
apiUrl: string;
|
|
490
501
|
kvUrl: string;
|
|
491
502
|
apiKey: string;
|
|
503
|
+
apiTimeout: number;
|
|
504
|
+
kvTimeout: number;
|
|
492
505
|
}
|
|
493
506
|
/**
|
|
494
507
|
* Internal options with required fields resolved
|
|
495
|
-
* @internal
|
|
496
508
|
*/
|
|
497
|
-
interface DashOptionsInternal extends Omit<DashOptions, keyof InfraPluginConnectionOptions>, InfraPluginConnectionOptionsInternal {
|
|
509
|
+
interface DashOptionsInternal extends Omit<DashOptions, keyof InfraPluginConnectionOptions>, InfraPluginConnectionOptionsInternal {
|
|
510
|
+
/**
|
|
511
|
+
* Shared Dash HTTP client from {@link createAPI}; injected by {@link dash} when wiring endpoints.
|
|
512
|
+
*
|
|
513
|
+
* @internal
|
|
514
|
+
*/
|
|
515
|
+
$api: ReturnType<typeof _$_better_fetch_fetch0.createFetch>;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Resolved dash options from {@link resolveDashOptions} / plugin-stored config; excludes injected `$api`.
|
|
519
|
+
*/
|
|
520
|
+
type DashOptionsResolved = Omit<DashOptionsInternal, "$api">;
|
|
498
521
|
/**
|
|
499
522
|
* Internal sentinel options with required fields resolved.
|
|
500
|
-
* @internal
|
|
501
523
|
*/
|
|
502
524
|
interface SentinelOptionsInternal extends Omit<SentinelOptions, keyof InfraPluginConnectionOptions>, InfraPluginConnectionOptionsInternal {}
|
|
503
525
|
/**
|
|
@@ -513,7 +535,7 @@ interface LocationData {
|
|
|
513
535
|
type LocationDataContext = LocationData;
|
|
514
536
|
type InfraEndpointContext = (GenericEndpointContext & {
|
|
515
537
|
context: {
|
|
516
|
-
identification
|
|
538
|
+
identification?: Identification | null | undefined;
|
|
517
539
|
visitorId: string | null;
|
|
518
540
|
requestId: string | null;
|
|
519
541
|
location: LocationData | undefined;
|
|
@@ -608,6 +630,11 @@ interface SendSMSResult {
|
|
|
608
630
|
interface SMSConfig {
|
|
609
631
|
apiKey?: string;
|
|
610
632
|
apiUrl?: string;
|
|
633
|
+
/**
|
|
634
|
+
* Timeout for Dash SMS API HTTP requests (milliseconds).
|
|
635
|
+
* @default 3000
|
|
636
|
+
*/
|
|
637
|
+
apiTimeout?: number;
|
|
611
638
|
}
|
|
612
639
|
/**
|
|
613
640
|
* Options for sending SMS
|
|
@@ -726,7 +753,7 @@ interface DashIdRow {
|
|
|
726
753
|
id: string;
|
|
727
754
|
}
|
|
728
755
|
//#endregion
|
|
729
|
-
//#region ../../node_modules/.bun/@better-auth+scim@1.6.9+
|
|
756
|
+
//#region ../../node_modules/.bun/@better-auth+scim@1.6.9+5243a6431671e89e/node_modules/@better-auth/scim/dist/index.d.mts
|
|
730
757
|
//#region src/types.d.ts
|
|
731
758
|
interface SCIMProvider {
|
|
732
759
|
id: string;
|
|
@@ -4342,7 +4369,13 @@ interface DashCompleteInvitationResponse {
|
|
|
4342
4369
|
//#endregion
|
|
4343
4370
|
//#region src/routes/organizations/types.d.ts
|
|
4344
4371
|
type DashOrganizationUpdateResponse = Organization;
|
|
4345
|
-
|
|
4372
|
+
/** Mirrors joined `user` row fields exposed on dash org APIs. Omitted when the user has no email (e.g. phone-only). */
|
|
4373
|
+
type DashOrganizationMemberUser = {
|
|
4374
|
+
id: string;
|
|
4375
|
+
name: string;
|
|
4376
|
+
email?: string;
|
|
4377
|
+
image: string | null;
|
|
4378
|
+
};
|
|
4346
4379
|
type DashOrganizationDetailResponse = Organization & {
|
|
4347
4380
|
memberCount: number;
|
|
4348
4381
|
members?: DashOrganizationMemberUser[];
|
|
@@ -4596,7 +4629,7 @@ declare function normalizeEmail(email: string, context: AuthContext): string;
|
|
|
4596
4629
|
//#region src/index.d.ts
|
|
4597
4630
|
declare const dash: <O extends DashOptions>(options?: O) => {
|
|
4598
4631
|
id: "dash";
|
|
4599
|
-
options:
|
|
4632
|
+
options: DashOptionsResolved;
|
|
4600
4633
|
version: string;
|
|
4601
4634
|
init(ctx: _$better_auth0.AuthContext): {
|
|
4602
4635
|
options: {
|
|
@@ -4649,7 +4682,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
4649
4682
|
userAgent?: string | null | undefined;
|
|
4650
4683
|
} & Record<string, unknown>, _ctx: _$better_auth0.GenericEndpointContext | null): Promise<{
|
|
4651
4684
|
data: {
|
|
4652
|
-
loginMethod: string | null
|
|
4685
|
+
loginMethod: string | null;
|
|
4653
4686
|
};
|
|
4654
4687
|
} | undefined>;
|
|
4655
4688
|
after(session: {
|
|
@@ -5906,4 +5939,4 @@ declare const dash: <O extends DashOptions>(options?: O) => {
|
|
|
5906
5939
|
} : {};
|
|
5907
5940
|
};
|
|
5908
5941
|
//#endregion
|
|
5909
|
-
export { type APIError, CHALLENGE_TTL, type CompromisedPasswordResult, type CredentialStuffingResult, DBField, DEFAULT_DIFFICULTY, DashAddTeamMemberResponse, DashBanManyResponse, DashCheckUserByEmailResponse, DashCheckUserExistsResponse, DashCompleteInvitationResponse, DashConfigResponse, DashCreateOrganizationBody, DashCreateOrganizationResponse, DashCreateTeamResponse, DashCreateUserResponse, DashDeleteManyUsersResponse, DashDirectoryCreateResponse, DashDirectoryDeleteResponse, DashDirectoryItem, DashDirectoryRegenerateTokenResponse, DashExecuteAdapterCountResponse, DashExecuteAdapterFindManyResponse, DashExecuteAdapterFindOneResponse, DashExecuteAdapterMutationResponse, DashExecuteAdapterResponse, DashExportOrganizationsResponse, DashIdRow, DashInviteMemberResponse, DashMaybeSuccessResponse, type DashOptions, DashOptionsInternal, DashOrganizationAddMemberResponse, DashOrganizationDeleteManyResponse, DashOrganizationDetailResponse, DashOrganizationInvitationItem, DashOrganizationInvitationListResponse, DashOrganizationInvitationStatusItem, DashOrganizationListResponse, DashOrganizationMember, DashOrganizationMemberListItem, DashOrganizationMemberListResponse, DashOrganizationMemberUser, DashOrganizationOptionsResponse, DashOrganizationTeamItem, DashOrganizationTeamListResponse, DashOrganizationUpdateMemberRoleResponse, DashOrganizationUpdateResponse, DashSendManyVerificationEmailsResponse, DashSessionRevokeManyResponse, DashSsoCreateProviderResponse, DashSsoDeleteResponse, DashSsoMarkDomainVerifiedResponse, DashSsoProviderItem, DashSsoProviderSummary, DashSsoUpdateProviderResponse, DashSsoVerificationTokenResponse, DashSsoVerifyDomainResponse, DashSuccessResponse, DashTeam, DashTeamMember, DashTeamMemberListResponse, DashTwoFactorBackupCodesResponse, DashTwoFactorEnableResponse, DashTwoFactorTotpViewResponse, DashUpdateTeamResponse, DashUpdateUserResponse, DashUserDetailsResponse, DashUserGraphDataResponse, DashUserListResponse, DashUserOrganizationsResponse, DashUserRetentionDataResponse, DashUserStatsActivePeriod, DashUserStatsResponse, DashUserStatsSignUpPeriod, DashValidateResponse, DirectorySyncConnection, EMAIL_TEMPLATES, type EmailConfig, type EmailTemplateId, type EmailTemplateVariables, type Endpoint, type EndpointOptions, type EventLocation, type EventTypesResponse, type ImpossibleTravelResult, InfraEndpointContext, InfraPluginConnectionOptions, InfraPluginConnectionOptionsInternal, LocationData, LocationDataContext, type PoWChallenge, type PoWSolution, SCIMPlugin, type SMSConfig, type SMSTemplateId, type SMSTemplateVariables, SMS_TEMPLATES, type SecurityEvent, type SecurityEventType, type SecurityOptions, type SecurityVerdict, type SendBulkEmailsOptions, type SendBulkEmailsResult, type SendEmailOptions, type SendEmailResult, type SendSMSOptions, type SendSMSResult, type SentinelOptions, SentinelOptionsInternal, type StaleUserResult, type ThresholdConfig, USER_EVENT_TYPES, type UserEvent, type UserEventType, type UserEventsResponse, createEmailSender, createSMSSender, dash, decodePoWChallenge, encodePoWSolution, normalizeEmail, sendBulkEmails, sendEmail, sendSMS, sentinel, solvePoWChallenge, verifyPoWSolution };
|
|
5942
|
+
export { type APIError, CHALLENGE_TTL, type CompromisedPasswordResult, type CredentialStuffingResult, DBField, DEFAULT_DIFFICULTY, DashAddTeamMemberResponse, DashBanManyResponse, DashCheckUserByEmailResponse, DashCheckUserExistsResponse, DashCompleteInvitationResponse, DashConfigResponse, DashCreateOrganizationBody, DashCreateOrganizationResponse, DashCreateTeamResponse, DashCreateUserResponse, DashDeleteManyUsersResponse, DashDirectoryCreateResponse, DashDirectoryDeleteResponse, DashDirectoryItem, DashDirectoryRegenerateTokenResponse, DashExecuteAdapterCountResponse, DashExecuteAdapterFindManyResponse, DashExecuteAdapterFindOneResponse, DashExecuteAdapterMutationResponse, DashExecuteAdapterResponse, DashExportOrganizationsResponse, DashIdRow, DashInviteMemberResponse, DashMaybeSuccessResponse, type DashOptions, DashOptionsInternal, DashOptionsResolved, DashOrganizationAddMemberResponse, DashOrganizationDeleteManyResponse, DashOrganizationDetailResponse, DashOrganizationInvitationItem, DashOrganizationInvitationListResponse, DashOrganizationInvitationStatusItem, DashOrganizationListResponse, DashOrganizationMember, DashOrganizationMemberListItem, DashOrganizationMemberListResponse, DashOrganizationMemberUser, DashOrganizationOptionsResponse, DashOrganizationTeamItem, DashOrganizationTeamListResponse, DashOrganizationUpdateMemberRoleResponse, DashOrganizationUpdateResponse, DashSendManyVerificationEmailsResponse, DashSessionRevokeManyResponse, DashSsoCreateProviderResponse, DashSsoDeleteResponse, DashSsoMarkDomainVerifiedResponse, DashSsoProviderItem, DashSsoProviderSummary, DashSsoUpdateProviderResponse, DashSsoVerificationTokenResponse, DashSsoVerifyDomainResponse, DashSuccessResponse, DashTeam, DashTeamMember, DashTeamMemberListResponse, DashTwoFactorBackupCodesResponse, DashTwoFactorEnableResponse, DashTwoFactorTotpViewResponse, DashUpdateTeamResponse, DashUpdateUserResponse, DashUserDetailsResponse, DashUserGraphDataResponse, DashUserListResponse, DashUserOrganizationsResponse, DashUserRetentionDataResponse, DashUserStatsActivePeriod, DashUserStatsResponse, DashUserStatsSignUpPeriod, DashValidateResponse, DirectorySyncConnection, EMAIL_TEMPLATES, type EmailConfig, type EmailTemplateId, type EmailTemplateVariables, type Endpoint, type EndpointOptions, type EventLocation, type EventTypesResponse, type ImpossibleTravelResult, InfraEndpointContext, InfraPluginConnectionOptions, InfraPluginConnectionOptionsInternal, LocationData, LocationDataContext, type PoWChallenge, type PoWSolution, SCIMPlugin, type SMSConfig, type SMSTemplateId, type SMSTemplateVariables, SMS_TEMPLATES, type SecurityEvent, type SecurityEventType, type SecurityOptions, type SecurityVerdict, type SendBulkEmailsOptions, type SendBulkEmailsResult, type SendEmailOptions, type SendEmailResult, type SendSMSOptions, type SendSMSResult, type SentinelOptions, SentinelOptionsInternal, type StaleUserResult, type ThresholdConfig, USER_EVENT_TYPES, type UserEvent, type UserEventType, type UserEventsResponse, createEmailSender, createSMSSender, dash, decodePoWChallenge, encodePoWSolution, normalizeEmail, sendBulkEmails, sendEmail, sendSMS, sentinel, solvePoWChallenge, verifyPoWSolution };
|