OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
kreait
/
firebase-tokens
/
src
/
JWT
/
Action
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:35:47 AM
rwxr-xr-x
📁
CreateCustomToken
-
08/12/2024 10:36:29 AM
rwxr-xr-x
📄
CreateCustomToken.php
2.9 KB
08/12/2024 10:35:46 AM
rw-r--r--
📁
FetchGooglePublicKeys
-
08/12/2024 10:36:29 AM
rwxr-xr-x
📄
FetchGooglePublicKeys.php
2.28 KB
08/12/2024 10:35:46 AM
rw-r--r--
📁
VerifyIdToken
-
08/12/2024 10:36:29 AM
rwxr-xr-x
📄
VerifyIdToken.php
1.29 KB
08/12/2024 10:35:46 AM
rw-r--r--
Editing: VerifyIdToken.php
Close
<?php declare(strict_types=1); namespace Kreait\Firebase\JWT\Action; use InvalidArgumentException; final class VerifyIdToken { private string $token = ''; /** @var int */ private $leewayInSeconds = 0; private ?string $expectedTenantId = null; private function __construct() { } public static function withToken(string $token): self { $action = new self(); $action->token = $token; return $action; } public function withExpectedTenantId(string $tenantId): self { $action = clone $this; $action->expectedTenantId = $tenantId; return $action; } public function withLeewayInSeconds(int $seconds): self { if ($seconds < 0) { throw new InvalidArgumentException('Leeway must not be negative'); } $action = clone $this; $action->leewayInSeconds = $seconds; return $action; } public function token(): string { return $this->token; } /** * @return string|null */ public function expectedTenantId() { return $this->expectedTenantId; } public function leewayInSeconds(): int { return $this->leewayInSeconds; } }