1
<?php
2

3
declare(strict_types=1);
4

5
namespace Kreait\Firebase\Auth;
6

7
use Firebase\Auth\Token\Domain\Verifier;
8
use Kreait\Firebase\Exception\RuntimeException;
9
use Lcobucci\JWT\Token;
10

11
final class DisabledLegacyIdTokenVerifier implements Verifier
12
{
13
    /** @var string */
14
    private $reason;
15

16 9
    public function __construct(string $reason)
17
    {
18 9
        $this->reason = $reason;
19
    }
20

21 9
    public function verifyIdToken($token): Token
22
    {
23 9
        throw new RuntimeException($this->reason);
24
    }
25
}

Read our documentation on viewing source code .

Loading