X

Create New Item

File Folder

X

Search Results

File "None.php"

Full path: /home/orbitecv/orbite-school.orbit.et/vendor/kreait/firebase-tokens/src/JWT/Signer/None.php
File size: 533 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Edit   Back

<?php

declare(strict_types=1);

namespace Kreait\Firebase\JWT\Signer;

use Lcobucci\JWT\Signer;
use Lcobucci\JWT\Signer\Key;

final class None implements Signer
{
    public function algorithmId(): string
    {
        return 'none';
    }

    public function sign(string $payload, Key $key): string
    {
        // @phpstan-ignore-next-line
        return '';
    }

    public function verify(string $expected, string $payload, Key $key): bool
    {
        // @phpstan-ignore-next-line
        return $expected === '';
    }
}