public function check(array $auth, array $signature, $prefix)
{
if (!isset($auth[$prefix . 'timestamp'])) {
throw new SignatureTimestampException('The timestamp has not been set');
}
if (abs($auth[$prefix . 'timestamp'] - time()) >= $this->grace) {
throw new SignatureTimestampException('The timestamp is invalid');
}
return true;
}