Skip to content

Commit

Permalink
fix exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
glena committed Mar 16, 2017
1 parent 415bf49 commit c19038f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/JWTVerifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct($config) {
}

if (isset($config['suported_algs'])) {
throw new Exception("`suported_algs` was properly renamed to `supported_algs`.");
throw new CoreException("`suported_algs` was properly renamed to `supported_algs`.");
}

if (!isset($config['supported_algs'])) {
Expand Down Expand Up @@ -90,7 +90,6 @@ public function __construct($config) {
*/
public function verifyAndDecode($jwt)
{

$tks = explode('.', $jwt);
if (count($tks) != 3) {
throw new InvalidTokenException('Wrong number of segments');
Expand Down

0 comments on commit c19038f

Please sign in to comment.