Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Merge aae4264 into 2e2e599
Browse files Browse the repository at this point in the history
  • Loading branch information
PBXg33k committed Apr 10, 2018
2 parents 2e2e599 + aae4264 commit 14900de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Authentication/JwtAuthenticationProvider.php
Expand Up @@ -82,7 +82,7 @@ public function authenticate(TokenInterface $token)
$key = $this->getKeyById($jwtToken->getKeyId());
$key->validateToken($jwtToken);
} catch (\Exception $e) {
throw new BadCredentialsException('Invalid JWT token', 0, $e);
throw new BadCredentialsException('Invalid JWT token: '.$e->getMessage(), 0);
}

$username = $jwtToken->getSubject();
Expand Down

0 comments on commit 14900de

Please sign in to comment.