mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-22 00:03:46 +02:00
Interfaces already allow the standard carbon immutable, no need for exessive casting
This commit is contained in:
@@ -80,16 +80,15 @@ class NodeJWTService
|
||||
->permittedFor($node->getConnectionAddress())
|
||||
->identifiedBy($identifier)
|
||||
->withHeader('jti', $identifier)
|
||||
->issuedAt(CarbonImmutable::now()->toDateTimeImmutable())
|
||||
->canOnlyBeUsedAfter(CarbonImmutable::now()->subMinutes(5)->toDateTimeImmutable());
|
||||
->issuedAt(CarbonImmutable::now())
|
||||
->canOnlyBeUsedAfter(CarbonImmutable::now()->subMinutes(5));
|
||||
|
||||
if ($this->expiresAt) {
|
||||
$builder = $builder->expiresAt($this->expiresAt);
|
||||
}
|
||||
|
||||
if (! empty($this->subject)) {
|
||||
$builder = $builder->relatedTo($this->subject)
|
||||
->withHeader('sub', $this->subject);
|
||||
$builder = $builder->relatedTo($this->subject)->withHeader('sub', $this->subject);
|
||||
}
|
||||
|
||||
foreach ($this->claims as $key => $value) {
|
||||
|
||||
Reference in New Issue
Block a user