fix(auth): pin native auth storage operations

This commit is contained in:
2026-08-17 14:52:21 +02:00
parent 6d438f4c7e
commit cb0e873ed7
23 changed files with 3016 additions and 1385 deletions
+5 -1
View File
@@ -1,4 +1,5 @@
import { createFileAuthSessionStore } from "../../src/auth/session-store.js";
import { createFixturePosixAuthStorageBridge } from "./posix-auth-storage-bridge.mjs";
const root = process.env.THT_TEST_SESSION_ROOT;
const attempts = Number(process.env.THT_TEST_OIDC_ATTEMPTS);
@@ -7,7 +8,10 @@ const capacity = Number(process.env.THT_TEST_OIDC_CAPACITY);
if (!root || !Number.isSafeInteger(attempts) || attempts < 1 || Number.isNaN(now.getTime())
|| !Number.isSafeInteger(capacity) || capacity < 1) process.exit(2);
const store = createFileAuthSessionStore(root, undefined, { oidcStateCapacity: capacity });
const store = createFileAuthSessionStore(root, undefined, {
oidcStateCapacity: capacity,
posixStorageBridge: createFixturePosixAuthStorageBridge(),
});
process.send?.("ready");
process.once("message", async (message) => {
if (message !== "create") process.exit(3);