src/lib/Signer.php
public function decode($data)
    {
        $data["data"] = $this->decrypt($data["data"], $this->config["secret"]);

        if (hash_hmac(
            "sha256",
            $data["data"],
            $this->config["secret"]
        ) == $data["token"]) {
            return unserialize($data["data"]);
        } else {
            throw new \Exception('Failed to verify payload');
        }
    }
public function decode($data)
    {
        $data["data"] = $this->decrypt($data["data"], $this->config["secret"]);

        if (hash_hmac(
            "sha256",
            $data["data"],
            $this->config["secret"]
        ) == $data["token"]) {
            return unserialize($data["data"]);
        } else {
            throw new \Exception('Failed to verify payload');
        }
    }
public function decode ( $ data ) { $ data [ "data" ] = $ this -> decrypt ( $ data [ "data" ] , $ this -> config [ "secret" ] ) ; if ( hash_hmac ( "sha256" , $ data [ "data" ] , $ this -> config [ "secret" ] ) == $ data [ "token" ] ) { return unserialize ( $ data [ "data" ] ) ; } else { throw new \ Exception ( 'Failed to verify payload' ) ; } }
Decrypt, verify and unserialize payload.

@codeCoverageIgnore

@return mixed
Decrypt verify and unserialize payload .