fix: correct deriveCookieSecret test to validate 16-byte hex secret as per oauth2-proxy requirements

This commit is contained in:
Mauricio Siu
2026-06-07 01:25:05 -06:00
parent c1c887d03c
commit dfbae18557
@@ -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");
expect(Buffer.from(secret, "base64")).toHaveLength(32);
expect(Buffer.from(secret, "hex")).toHaveLength(16);
});
});