/**
  * Check if a given token is considered blacklisted
  *
  * TODO: Use export() method
  *
  * @param $token
  * @return bool
  * @throws BlacklistedTokenException
  */
 public function check($token)
 {
     $blacklistedToken = $this->model->where('user_id', $this->Token->getSubject($token))->where('expiry', '>', Carbon::now())->whereToken($token)->first();
     if ($blacklistedToken === null) {
         return true;
     }
     throw new BlacklistedTokenException();
 }
 /**
  * @param array $credentials
  * @return string
  */
 public function issue(array $credentials)
 {
     return $this->Token->authOnce($credentials);
 }