diff --git a/composer.json b/composer.json index 4e8744fcc..abd6dd5c5 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "php": ">=5.4.0", "illuminate/support": "~4.0", "illuminate/http": "~4.0", - "namshi/jose": "2.0.*", + "namshi/jose": "2.2.*", "nesbot/carbon": "~1.0" }, "require-dev": { diff --git a/src/Providers/JWT/NamshiAdapter.php b/src/Providers/JWT/NamshiAdapter.php index dd34f6a85..2974b1f2a 100644 --- a/src/Providers/JWT/NamshiAdapter.php +++ b/src/Providers/JWT/NamshiAdapter.php @@ -53,7 +53,7 @@ public function decode($token) throw new TokenInvalidException('Could not decode token: ' . $e->getMessage()); } - if (! $jws->verify($this->secret)) { + if (! $jws->verify($this->secret, $this->algo)) { throw new TokenInvalidException('Token Signature could not be verified.'); }