Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,14 @@ public async Task<IActionResult> Login([FromBody] AuthenticateRequestDto dto)
await SignInUser(dto.AuthToken);
return Ok();
}
catch (Exception ex) when (ex is InvalidOperationException or ChallengeNonceNotFoundException or ChallengeNonceExpiredException)
catch (Exception ex) when (ex is ChallengeNonceNotFoundException or ChallengeNonceExpiredException)
{
return Unauthorized(new { error = "challenge_nonce_not_found_or_expired" });
}
catch (AuthTokenException)
{
return Unauthorized(new { error = "authentication_failed" });
}
}

[HttpPost("logout")]
Expand Down
Loading