mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-15 08:25:16 +00:00
fix: correct deriveCookieSecret test to validate 16-byte hex secret as per oauth2-proxy requirements
This commit is contained in:
@@ -226,8 +226,8 @@ describe("deriveCookieSecret", () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("produces a 32-byte base64 secret (oauth2-proxy requirement)", () => {
|
test("produces a 16-byte hex secret (oauth2-proxy requirement)", () => {
|
||||||
const secret = deriveCookieSecret(".acme.com");
|
const secret = deriveCookieSecret(".acme.com");
|
||||||
expect(Buffer.from(secret, "base64")).toHaveLength(32);
|
expect(Buffer.from(secret, "hex")).toHaveLength(16);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user