Skip to content

JWT::decode fails in embedq2.php due to missing statesecret #389

@MathTV

Description

@MathTV

$statesecret is not passed to the decode method at line 39:

`

    // verification using 'auth' is built-into the JWT method

    $QS = json_decode(json_encode(JWT::decode($_REQUEST['jwt'])), true);

`

Adding $statesecret elliminates decode error:

`

    // verification using 'auth' is built-into the JWT method

    $QS = json_decode(json_encode(JWT::decode($_REQUEST['jwt'], $statesecret)), true);

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions