code: public ValidationSessionInfo checkAuth(ValidationLoginInfo info, HttpServletRequest req, HttpServletResponse res) {
  
          if (info.getToken() == null || info.getToken().isEmpty()) {
              throw new ValidationLibException("UnAuthorization", HttpStatus.UNAUTHORIZED);
          }
          if (this.validationConfig.getAuthToken() == null) {
              throw new ValidationLibException("Sever authkey is not helper ", HttpStatus.INTERNAL_SERVER_ERROR);
          }
  
          if (validaitonSessionCheckAndRemake(info.getToken())) {
              return this.createSession(req, res);
          }
  
          if (!this.validationConfig.getAuthToken().equals(info.getToken())) {
              throw new ValidationLibException("UnAuthorization", HttpStatus.UNAUTHORIZED);
          }
          req.getSession();
  
          return this.createSession(req, res);
      }
docs: Check auth validation session info.
  
  @param info the info
  @param req  the req
  @param res  the res
  @return the validation session info