composer update
This commit is contained in:
19
vendor/tymon/jwt-auth/src/Claims/NotBefore.php
vendored
19
vendor/tymon/jwt-auth/src/Claims/NotBefore.php
vendored
@@ -11,34 +11,17 @@
|
||||
|
||||
namespace Tymon\JWTAuth\Claims;
|
||||
|
||||
use Tymon\JWTAuth\Exceptions\InvalidClaimException;
|
||||
use Tymon\JWTAuth\Exceptions\TokenInvalidException;
|
||||
|
||||
class NotBefore extends Claim
|
||||
{
|
||||
use DatetimeTrait {
|
||||
validateCreate as commonValidateCreate;
|
||||
}
|
||||
use DatetimeTrait;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $name = 'nbf';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function validateCreate($value)
|
||||
{
|
||||
$this->commonValidateCreate($value);
|
||||
|
||||
if ($this->isFuture($value)) {
|
||||
throw new InvalidClaimException($this);
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
4
vendor/tymon/jwt-auth/src/Factory.php
vendored
4
vendor/tymon/jwt-auth/src/Factory.php
vendored
@@ -84,9 +84,7 @@ class Factory
|
||||
$this->emptyClaims();
|
||||
}
|
||||
|
||||
$payload = $this->withClaims($this->buildClaimsCollection());
|
||||
|
||||
return $payload;
|
||||
return $this->withClaims($this->buildClaimsCollection());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user