Skip to content

Commit

Permalink
Fix Token Exception Class (#25)
Browse files Browse the repository at this point in the history
* RELEASE

* fixed tokenexception
  • Loading branch information
gaokevin1 authored Jul 23, 2024
1 parent 250710a commit 4c2ec31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SDK/Token/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit 4c2ec31

Please sign in to comment.