@luckystack/core 0.5.0 → 0.6.0
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/CHANGELOG.md +56 -48
- package/dist/{chunk-ECWDUWBG.js → chunk-3HQDGXMX.js} +10 -2
- package/dist/{chunk-ECWDUWBG.js.map → chunk-3HQDGXMX.js.map} +1 -1
- package/dist/{chunk-A3VMC576.js → chunk-K6X634AV.js} +3 -3
- package/dist/{chunk-ELHTLIEX.js → chunk-KPQX46TT.js} +7 -2
- package/dist/{chunk-ELHTLIEX.js.map → chunk-KPQX46TT.js.map} +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.js +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/{pageRouteValidation-BzsRvO6x.d.ts → pageRouteValidation-DfiiLorR.d.ts} +31 -0
- package/dist/{projectConfig-P2AHHQVW.js → projectConfig-USHD3PRE.js} +2 -2
- package/dist/{sentrySetup-552JVLHJ.js → sentrySetup-HGQN5FIP.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-A3VMC576.js.map → chunk-K6X634AV.js.map} +0 -0
- /package/dist/{projectConfig-P2AHHQVW.js.map → projectConfig-USHD3PRE.js.map} +0 -0
- /package/dist/{sentrySetup-552JVLHJ.js.map → sentrySetup-HGQN5FIP.js.map} +0 -0
|
@@ -459,6 +459,37 @@ interface AuthConfig {
|
|
|
459
459
|
* DEFAULT `/confirm-email-change`.
|
|
460
460
|
*/
|
|
461
461
|
emailChangeConfirmPath: string;
|
|
462
|
+
/**
|
|
463
|
+
* Passwordless email-code login (ADR 0024): the user enters their email,
|
|
464
|
+
* receives a short numeric code, and signs in by typing it. Requires a
|
|
465
|
+
* registered email sender (`@luckystack/email`). DEFAULT `false`.
|
|
466
|
+
* Anti-enumeration: the request endpoint always answers "sent".
|
|
467
|
+
*/
|
|
468
|
+
emailCodeLogin: boolean;
|
|
469
|
+
/** Email-code TTL in seconds (login + 2FA fallback codes). DEFAULT 600. */
|
|
470
|
+
emailCodeTtlSeconds: number;
|
|
471
|
+
/** Email-code length in digits. DEFAULT 6. */
|
|
472
|
+
emailCodeLength: number;
|
|
473
|
+
/** Wrong-code attempts before an email code is burned. DEFAULT 5. */
|
|
474
|
+
emailCodeMaxAttempts: number;
|
|
475
|
+
/**
|
|
476
|
+
* Second factor at login (ADR 0024). `'optional'` = per-user opt-in: a user
|
|
477
|
+
* who enrolled an authenticator app (TOTP — Google/Microsoft Authenticator,
|
|
478
|
+
* Authy, …) must answer a 2FA challenge after their password/email-code is
|
|
479
|
+
* verified. `'disabled'` (DEFAULT) = the challenge step never triggers, even
|
|
480
|
+
* for enrolled users (kill switch).
|
|
481
|
+
*/
|
|
482
|
+
twoFactor: 'disabled' | 'optional';
|
|
483
|
+
/**
|
|
484
|
+
* Allow "send the code to my email instead" as a 2FA fallback channel for
|
|
485
|
+
* enrolled users (lost phone). Requires a registered email sender.
|
|
486
|
+
* DEFAULT `true` (recovery codes always work regardless).
|
|
487
|
+
*/
|
|
488
|
+
twoFactorEmailFallback: boolean;
|
|
489
|
+
/** Pending 2FA login-challenge TTL in seconds. DEFAULT 300. */
|
|
490
|
+
twoFactorChallengeTtlSeconds: number;
|
|
491
|
+
/** Wrong-code attempts before a pending 2FA challenge is burned. DEFAULT 5. */
|
|
492
|
+
twoFactorMaxAttempts: number;
|
|
462
493
|
}
|
|
463
494
|
interface OfflineQueueConfig {
|
|
464
495
|
/** Hard cap on items per queue (api + sync are tracked separately). Default 200. */
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getProjectName,
|
|
5
5
|
isProjectConfigRegistered,
|
|
6
6
|
registerProjectConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3HQDGXMX.js";
|
|
8
8
|
import "./chunk-USQA6QTX.js";
|
|
9
9
|
export {
|
|
10
10
|
DEFAULT_PROJECT_CONFIG,
|
|
@@ -13,4 +13,4 @@ export {
|
|
|
13
13
|
isProjectConfigRegistered,
|
|
14
14
|
registerProjectConfig
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=projectConfig-
|
|
16
|
+
//# sourceMappingURL=projectConfig-USHD3PRE.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
initSharedSentry,
|
|
5
5
|
setSentryUser,
|
|
6
6
|
startSpan
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KPQX46TT.js";
|
|
8
8
|
import "./chunk-USQA6QTX.js";
|
|
9
9
|
export {
|
|
10
10
|
captureException,
|
|
@@ -13,4 +13,4 @@ export {
|
|
|
13
13
|
setSentryUser,
|
|
14
14
|
startSpan
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=sentrySetup-
|
|
16
|
+
//# sourceMappingURL=sentrySetup-HGQN5FIP.js.map
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|