SUPPORT-9164: Fix

This commit is contained in:
Eduard Tihomirov 2025-05-13 12:40:00 +03:00
parent c3752803df
commit 75893a43f4

View file

@ -602,7 +602,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 {