mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 18:14:53 +02:00
allow logout to fail
This commit is contained in:
parent
d070415515
commit
58a084426b
1 changed files with 6 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue