mirror of
https://github.com/tale/headplane.git
synced 2026-08-27 15:37:04 +00:00
feat: add support for OIDC logouts
Closes HP-407.
This commit is contained in:
@@ -194,7 +194,7 @@ describe("session round-trip", () => {
|
||||
test("expired session throws", async () => {
|
||||
const userId = await auth.findOrCreateUser("sub-1", { name: "Alice" });
|
||||
|
||||
const cookieHeader = await auth.createOidcSession(userId, { name: "Alice" }, -1);
|
||||
const cookieHeader = await auth.createOidcSession(userId, { name: "Alice" }, { maxAge: -1 });
|
||||
|
||||
const cookieValue = cookieHeader.split(";")[0];
|
||||
const request = new Request("http://localhost/test", {
|
||||
|
||||
Reference in New Issue
Block a user