first commit
This commit is contained in:
18
libraries/vendor/web-token/jwt-signature/Serializer/Serializer.php
vendored
Normal file
18
libraries/vendor/web-token/jwt-signature/Serializer/Serializer.php
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Jose\Component\Signature\Serializer;
|
||||
|
||||
use function array_key_exists;
|
||||
|
||||
abstract class Serializer implements JWSSerializer
|
||||
{
|
||||
/**
|
||||
* @param array<string, mixed> $protectedHeader
|
||||
*/
|
||||
protected function isPayloadEncoded(array $protectedHeader): bool
|
||||
{
|
||||
return ! array_key_exists('b64', $protectedHeader) || $protectedHeader['b64'] === true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user