OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
kreait
/
firebase-tokens
/
src
/
JWT
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:36:28 AM
rwxr-xr-x
📁
Action
-
08/12/2024 10:36:29 AM
rwxr-xr-x
📁
Cache
-
08/12/2024 10:35:46 AM
rwxr-xr-x
📁
Contract
-
08/12/2024 10:35:46 AM
rwxr-xr-x
📄
CustomTokenGenerator.php
1.88 KB
08/12/2024 10:34:14 AM
rw-r--r--
📁
Error
-
08/12/2024 10:35:46 AM
rwxr-xr-x
📄
GooglePublicKeys.php
1.32 KB
08/12/2024 10:34:14 AM
rw-r--r--
📄
IdTokenVerifier.php
2.65 KB
08/12/2024 10:34:14 AM
rw-r--r--
📁
Keys
-
08/12/2024 10:35:47 AM
rwxr-xr-x
📄
Token.php
1.35 KB
08/12/2024 10:34:14 AM
rw-r--r--
📁
Value
-
08/12/2024 10:35:47 AM
rwxr-xr-x
Editing: GooglePublicKeys.php
Close
<?php declare(strict_types=1); namespace Kreait\Firebase\JWT; use Kreait\Clock; use Kreait\Clock\SystemClock; use Kreait\Firebase\JWT\Action\FetchGooglePublicKeys; use Kreait\Firebase\JWT\Action\FetchGooglePublicKeys\Handler; use Kreait\Firebase\JWT\Action\FetchGooglePublicKeys\WithHandlerDiscovery; use Kreait\Firebase\JWT\Contract\Expirable; use Kreait\Firebase\JWT\Contract\Keys; final class GooglePublicKeys implements Keys { private Clock $clock; private Handler $handler; private ?Keys $keys = null; public function __construct(Handler $handler = null, Clock $clock = null) { $this->clock = $clock ?: new SystemClock(); $this->handler = $handler ?: new WithHandlerDiscovery($this->clock); } public function all(): array { $keysAreThereButExpired = $this->keys instanceof Expirable && $this->keys->isExpiredAt($this->clock->now()); if (!$this->keys || $keysAreThereButExpired) { $this->keys = $this->handler->handle(FetchGooglePublicKeys::fromGoogle()); // There is a small chance that we get keys that are already expired, but at this point we're happy // that we got keys at all. The next time this method gets called, we will re-fetch. } return $this->keys->all(); } }