FirebaseJwt
Bridge file to use the firebase/php-jwt package for JWT encoding and decoding.
- Full name:
\OAuth2\Encryption\FirebaseJwt
- This class implements:
\OAuth2\Encryption\EncryptionInterface
Methods
__construct
encode
public encode(mixed $payload, mixed $key, mixed $alg = 'HS256', mixed $keyId = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$payload |
mixed | |
$key |
mixed | |
$alg |
mixed | |
$keyId |
mixed |
decode
Parameters:
Parameter | Type | Description |
---|---|---|
$jwt |
mixed | |
$key |
mixed | |
$allowedAlgorithms |
mixed |
urlSafeB64Encode
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
mixed |
urlSafeB64Decode
Parameters:
Parameter | Type | Description |
---|---|---|
$b64 |
mixed |
Automatically generated on 2025-03-18