Skip to content

SignatureInvalidException not available on line 150 in JWT.php #588

Open
@tbobker123

Description

When passing an invalid token, I am getting a PHP error. The current line is:

        if (!self::verify("{$headb64}.{$bodyb64}", $sig, $key->getKeyMaterial(), $header->alg)) {
            throw new SignatureInvalidException('Signature verification failed');
        }

But as far as I can see, SignatureInvalidException is not available in this file I updated to use the included UnexpectedValueException.

Please let me know if I have this wrong or if there really is some code error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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