diff --git a/package.json b/package.json index 7e12fe7..d666f0e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "skyflow-node", - "version": "1.9.2", + "version": "1.9.2-dev.84bb347", "description": "Skyflow SDK for Node.js", "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/src/vault-api/utils/jwt-utils/index.ts b/src/vault-api/utils/jwt-utils/index.ts index 20bcda4..c5b9851 100644 --- a/src/vault-api/utils/jwt-utils/index.ts +++ b/src/vault-api/utils/jwt-utils/index.ts @@ -31,7 +31,7 @@ function isTokenValid(token: string) { if(token === "") return false let isJwtExpired = false; const decoded: JwtPayload = jwt_decode(token); - const currentTime = (new Date().getTime() / 1000) + 300; + const currentTime = (new Date().getTime() / 1000); const expiryTime = decoded.exp; if (expiryTime && currentTime > expiryTime) { isJwtExpired = true;