Skip to content

FirebaseJwt

Bridge file to use the firebase/php-jwt package for JWT encoding and decoding.

Methods

__construct

public __construct(): mixed

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

public decode(mixed $jwt, mixed $key = null, mixed $allowedAlgorithms = null): mixed

Parameters:

Parameter Type Description
$jwt mixed
$key mixed
$allowedAlgorithms mixed

urlSafeB64Encode

public urlSafeB64Encode(mixed $data): mixed

Parameters:

Parameter Type Description
$data mixed

urlSafeB64Decode

public urlSafeB64Decode(mixed $b64): mixed

Parameters:

Parameter Type Description
$b64 mixed


Automatically generated on 2025-03-18