User nonce validation and expiration. (#164)

This commit is contained in:
Ravin Perera
2020-11-25 07:10:07 +05:30
committed by GitHub
parent 9339e09026
commit 29425095e0
8 changed files with 116 additions and 28 deletions

View File

@@ -185,6 +185,8 @@ function HotPocketClient(server, keys, protocol = protocols.BSON) {
if (!nonce)
nonce = (new Date()).getTime().toString();
else
nonce = nonce.toString();
// Acquire the current lcl and add the specified offset.
const stat = await this.getStatus();