Skip to content

Commit

Permalink
Merge pull request #101 from skyflowapi/release/23.3.2.1-patch
Browse files Browse the repository at this point in the history
SK-547/Release/23.3.2.1 patch
  • Loading branch information
skyflow-vivek authored Mar 17, 2023
2 parents 74a6e29 + df9c80b commit 246f954
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/vault-api/utils/jwt-utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 246f954

Please sign in to comment.