Skip to content

JWT token authentication doesn't work with the firebase/php-jwt ^6.0 #2

@BOB41K1987

Description

@BOB41K1987

Starting version 6.0 the package firebase/php-jwt changed the signature of \Firebase\JWT\JWT::decode method introducing a BC.

This is the old way that is used in this package
JWT::decode($token, $publicKey, $this->allowedAlgos);

This is the new way used in the firebase/php-jwt
JWT::decode($jwt, new Key($key, 'HS256'));

Here is a full list of changes including this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions