diff --git a/src/SDK/Token/Extractor.php b/src/SDK/Token/Extractor.php index 903ec8d..9b8e355 100644 --- a/src/SDK/Token/Extractor.php +++ b/src/SDK/Token/Extractor.php @@ -101,10 +101,10 @@ public function parseToken($sessionToken) if ($isVerified) { return $jws; } else { - throw TokenException::MSG_SIGNATURE_INVALID; + throw new TokenException(TokenException::MSG_SIGNATURE_INVALID); } } catch (Exception $e) { - throw TokenException::MSG_COULD_NOT_PARSE; + throw new TokenException(TokenException::MSG_COULD_NOT_PARSE); } } }