Skip to content

Fatal error: Algorithm not allowed #354

@Hsiao-Feng

Description

@Hsiao-Feng

When I use an algorithm other than HS256 (e.g. HS512), PHP reports the following error:

Fatal error: Uncaught UnexpectedValueException: Algorithm not allowed in ...

I used the first example: https://github.com/firebase/php-jwt#example .

I'm using PHP 7.4, Ubuntu (WSL2).

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