Skip to content

Commit

Permalink
Increased exp period to 20sec
Browse files Browse the repository at this point in the history
  • Loading branch information
pbereng authored Sep 6, 2019
1 parent 5591dc4 commit a71ac40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api-token-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"});
Expand Down

0 comments on commit a71ac40

Please sign in to comment.