private async Task <bool> IsReplayRequest(string key, string nonce)
 {
     return(!await _distributedCache.AddIfNotExistsAsync(key + nonce, string.Empty, TimeSpan.FromMinutes(_requestMaxAge)));
 }