mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
allow logout to fail
This commit is contained in:
@@ -31,7 +31,12 @@ export async function logout(
|
||||
}
|
||||
|
||||
try {
|
||||
await invalidateSession(session.sessionId);
|
||||
try {
|
||||
await invalidateSession(session.sessionId);
|
||||
} catch (error) {
|
||||
logger.error("Failed to invalidate session", error)
|
||||
}
|
||||
|
||||
const isSecure = req.protocol === "https";
|
||||
res.setHeader("Set-Cookie", createBlankSessionTokenCookie(isSecure));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user