The start of something beautiful
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Lexik\Bundle\JWTAuthenticationBundle\Exception;
|
||||
|
||||
use Throwable;
|
||||
|
||||
class MissingClaimException extends JWTFailureException
|
||||
{
|
||||
public function __construct(
|
||||
string $claim,
|
||||
Throwable $previous = null
|
||||
) {
|
||||
parent::__construct('missing_claim', sprintf('Missing required "%s" claim on JWT payload.', $claim), $previous);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user