change something

This commit is contained in:
john 2025-06-01 23:38:09 +02:00
parent 120adf806d
commit 8798c8999d

View file

@ -45,11 +45,9 @@ internal class SessionAuthenticationHandler(
var user = await authService.GetUserWithId(session.UserId);
if (user is null)
if (user is null)
{
await authService.DeleteSession(sessionId);
this.Context.DeleteSession();
return AuthenticateResult.Fail("invalid session");
return await FailAndDeleteSession(sessionId);
}
if (session.ExpiresSoon)