fix(auth): pin native auth storage operations
This commit is contained in:
+5
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user