src/ORM.php
public function validateAuth()
    {
        // Send a get request to the API
        $response = $this->uniRequest->get(implode([$this->authURL, 'validate/']), $this->headers);
        // Check that we get 20X back
        if (in_array($response->code, $this->validCodes)) {
            // Return the response
            return $response;
        } else {
            // If we did not get 20X throw an exception
            throw new Exception($response->body->message, $response->code);
        }
    }
public function validateAuth()
    {
        // Send a get request to the API
        $response = $this->uniRequest->get(implode([$this->authURL, 'validate/']), $this->headers);
        // Check that we get 20X back
        if (in_array($response->code, $this->validCodes)) {
            // Return the response
            return $response;
        } else {
            // If we did not get 20X throw an exception
            throw new Exception($response->body->message, $response->code);
        }
    }
public function validateAuth ( ) { // Send a get request to the API $ response = $ this -> uniRequest -> get ( implode ( [ $ this -> authURL , 'validate/' ] ) , $ this -> headers ) ; // Check that we get 20X back if ( in_array ( $ response -> code , $ this -> validCodes ) ) { // Return the response return $ response ; } else { // If we did not get 20X throw an exception throw new Exception ( $ response -> body -> message , $ response -> code ) ; } }
Validate Authenticated Session

Validates the current JWT with with the API to determine if the session is still valid.

@return \Unirest\Response
@throws Exception
Validate Authenticated Session