code: private boolean isAuthenticated() {
          Authentication existingAuth = SecurityContextHolder.getContext().getAuthentication();
          return !(!(existingAuth != null && existingAuth.isAuthenticated()) || existingAuth instanceof SSOAuthentication);
      }
docs: Do not try to validate JWT if user already authenticated via other
  provider
  
  @return true, if JWT validation required