![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/medad.corals.io/vendor/kreait/firebase-tokens/src/JWT/Error/ |
<?php declare(strict_types=1); namespace Kreait\Firebase\JWT\Error; use LogicException; use Throwable; /** * @codeCoverageIgnore */ final class DiscoveryFailed extends LogicException { public static function because(string $reason, int $code = null, Throwable $previous = null): self { $code = $code ?: 0; return new self($reason, $code, $previous); } public static function noJWTLibraryFound(): self { $message = <<<'MESSAGE' Unable to create token handlers. Please install one of the following JWT libraries: - firebase/php-jwt ^5.0 (https://github.com/firebase/php-jwt) - lcobucci/jwt ^3.2 (https://github.com/lcobucci/jwt) or implement handlers that implement Kreait\Firebase\JWT\Action\CreateCustomToken\Handler and Kreait\Firebase\JWT\Action\VerifyIdToken\Handler MESSAGE; return self::because($message); } public static function noHttpLibraryFound(): self { $message = <<<'MESSAGE' Unable to find a HTTP transport to fetch public keys from Google. Please set `allow_url_fopen = On` in your php.ini or use one of the following supported HTTP libraries: - guzzlehttp/guzzle ^6.2.1 (https://github.com/guzzle/guzzle) or implement your own handler that implements Kreait\Firebase\JWT\Action\FetchGooglePublicKeys\Handler MESSAGE; return self::because($message); } }