SUPPORT-9164: Fix

This commit is contained in:
Eduard Tihomirov 2025-05-13 12:40:07 +03:00
parent 5d6709e97d
commit 488174e1d6

View file

@ -517,7 +517,7 @@ public class EsiaAuthService {
private void verifyStateFromCookie(HttpServletRequest request, String state, HttpServletResponse response) {
Cookie cookie = WebUtils.getCookie(request, PRNS_UUID);
if (cookie == null) {
throw new RuntimeException("State invalid. Cookie not found");
throw new EsiaException("State invalid. Cookie not found");
}
String prnsUUID = cookie.getValue();
try {