Skip to content

Nonce no longer working (+ how to fix it) #14

@sandrb

Description

@sandrb

Your current implementation doesn't work anymore, it now uses timestamp instead of a nonce.
Here's a fix for you (line 699):

  private function generateNonce() {

    $nonce = (string) time() + 15;

    return $nonce;

  }

and at line 588
$headers[] = "api-expires: $nonce";

The api-nonce header is no longer needed

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