mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 23:33:29 +00:00
style: apply prettier 3.9.1 formatting
Mechanical reflow from the prettier 3.9.1 bump; no behaviour change.
This commit is contained in:
1 parent
6329540ade
commit
0f2b548138
90 files changed
+123
-406
No files matched your search
@@ -88,9 +88,7 @@ vi.mock("@/lib/db", () => ({
|
||||
let count = 0;
|
||||
for (const row of dbState.apiTokens) {
|
||||
const tokenHashFilter = where.tokenHash as
|
||||
| string
|
||||
| { in: string[] }
|
||||
| undefined;
|
||||
string | { in: string[] } | undefined;
|
||||
const matches =
|
||||
!tokenHashFilter ||
|
||||
(typeof tokenHashFilter === "string"
|
||||
|
||||
@@ -79,13 +79,7 @@ const authenticationResponseSchema = z
|
||||
.loose();
|
||||
|
||||
type Transport =
|
||||
| "ble"
|
||||
| "cable"
|
||||
| "hybrid"
|
||||
| "internal"
|
||||
| "nfc"
|
||||
| "smart-card"
|
||||
| "usb";
|
||||
"ble" | "cable" | "hybrid" | "internal" | "nfc" | "smart-card" | "usb";
|
||||
|
||||
const CHALLENGE_TTL_MS = 5 * 60 * 1000;
|
||||
|
||||
|
||||
@@ -73,13 +73,7 @@ const registrationResponseSchema = z
|
||||
.loose();
|
||||
|
||||
type Transport =
|
||||
| "ble"
|
||||
| "cable"
|
||||
| "hybrid"
|
||||
| "internal"
|
||||
| "nfc"
|
||||
| "smart-card"
|
||||
| "usb";
|
||||
"ble" | "cable" | "hybrid" | "internal" | "nfc" | "smart-card" | "usb";
|
||||
|
||||
// The relying-party config (`rpName` / `getRpId` / `getExpectedOrigin`) is
|
||||
// shared with the second-factor security-key path via `@/lib/auth/webauthn-rp`
|
||||
|
||||
@@ -83,10 +83,7 @@ export async function issueAccessAndRefresh(
|
||||
}
|
||||
|
||||
export type RotationFailureReason =
|
||||
| "not_found"
|
||||
| "expired"
|
||||
| "already_used"
|
||||
| "revoked";
|
||||
"not_found" | "expired" | "already_used" | "revoked";
|
||||
|
||||
export type RotationResult =
|
||||
| { ok: true; bundle: IssuedRefreshBundle }
|
||||
|
||||
Reference in new issue
Block a user