diff options
author | drtriumph <chris@firebase.com> | 2014-11-14 14:29:25 -0800 |
---|---|---|
committer | drtriumph <chris@firebase.com> | 2014-11-14 14:29:25 -0800 |
commit | 301e6bc0f183c71e16748310d1a96cfa94ddc3fb (patch) | |
tree | 7c2e8f613cd50c57740cc5a317df3254fcdf8bd4 /Authentication | |
parent | 2d5caeb14bd94368d6ada8b839868a634dcca967 (diff) | |
download | php-jwt-301e6bc0f183c71e16748310d1a96cfa94ddc3fb.zip php-jwt-301e6bc0f183c71e16748310d1a96cfa94ddc3fb.tar.gz php-jwt-301e6bc0f183c71e16748310d1a96cfa94ddc3fb.tar.bz2 |
Porting @brylie's change with a small modification
Diffstat (limited to 'Authentication')
-rw-r--r-- | Authentication/JWT.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Authentication/JWT.php b/Authentication/JWT.php index 76c33bb..7e64b4b 100644 --- a/Authentication/JWT.php +++ b/Authentication/JWT.php @@ -44,10 +44,10 @@ class JWT } list($headb64, $bodyb64, $cryptob64) = $tks; if (null === ($header = JWT::jsonDecode(JWT::urlsafeB64Decode($headb64)))) { - throw new UnexpectedValueException('Invalid segment encoding'); + throw new UnexpectedValueException('Invalid header encoding'); } if (null === $payload = JWT::jsonDecode(JWT::urlsafeB64Decode($bodyb64))) { - throw new UnexpectedValueException('Invalid segment encoding'); + throw new UnexpectedValueException('Invalid claims encoding'); } $sig = JWT::urlsafeB64Decode($cryptob64); if ($verify) { |