Add error page for when a session has been taken

Describe to the user what it means when a session has been detected as
taken and provide a means to abandoned the session and log in again.
This commit is contained in:
Hornwitser 2025-07-08 15:51:50 +02:00
parent 011687b391
commit ebeedff5d0
2 changed files with 49 additions and 9 deletions

View file

@ -106,6 +106,7 @@ export async function getServerSession(event: H3Event, ignoreExpired: boolean) {
statusCode: 403,
statusMessage: "Forbidden",
message: "Session has been taken by another agent.",
data: { code: "SESSION_TAKEN" },
});
}
const now = Date.now();