Skip to content

Commit

Permalink
Able to retrieve the hash from the validator
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuCh3n committed May 31, 2024
1 parent d13feab commit 92ca18a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Handlers/HMAC/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Validator extends Hmac
/**
* @var string
*/
protected string $hash;
protected string $hash = '';

/**
* @param Config $config
Expand Down Expand Up @@ -102,4 +102,12 @@ public function validateOrFail(string $header, string $uri, string $method, $dat

throw new BuckarooException($this->config->getLogger(), "HMAC validation failed.");
}

/**
* @return string
*/
public function getHash(): string
{
return $this->hash;
}
}

0 comments on commit 92ca18a

Please sign in to comment.