From a71ac4036c7c2061373cd0021ebde1d0ae55dc77 Mon Sep 17 00:00:00 2001 From: pbereng <40918373+pbereng@users.noreply.github.com> Date: Fri, 6 Sep 2019 17:49:58 +0300 Subject: [PATCH] Increased exp period to 20sec --- src/api-token-provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api-token-provider.ts b/src/api-token-provider.ts index 7ce6889a..4800c1ab 100644 --- a/src/api-token-provider.ts +++ b/src/api-token-provider.ts @@ -12,7 +12,7 @@ export class ApiTokenProvider implements IAuthProvider { uri: path, nonce: Date.now(), iat: Math.floor(Date.now() / 1000), - exp: Math.floor(Date.now() / 1000) + 10, + exp: Math.floor(Date.now() / 1000) + 20, sub: this.apiKey, bodyHash: crypto.createHash("sha256").update(JSON.stringify(bodyJson || "")).digest().toString("hex") } as any, this.privateKey, { algorithm: "RS256"});