public function check($getPayload = false)
    {
        try {
            $payload = $this->checkOrFail();
        } catch (JwTException $e) {
            return false;
        }

        return $getPayload ? $payload : true;
    }
public function check($getPayload = false)
    {
        try {
            $payload = $this->checkOrFail();
        } catch (JwTException $e) {
            return false;
        }

        return $getPayload ? $payload : true;
    }
public function check ( $ getPayload = false ) { try { $ payload = $ this -> checkOrFail ( ) ; } catch ( JwTException $ e ) { return false ; } return $ getPayload ? $ payload : true ; }
Check that the token is valid.

@param  bool  $getPayload

@return \Afroware\JwTauth\Payload|bool
Check that the token is valid .