diff --git a/package.json b/package.json index a7dc3b0..d6c88d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "skyflow-node", - "version": "2.1.1", + "version": "2.1.1-dev.c77c624", "description": "Skyflow SDK for Node.js", "main": "./lib/index.js", "module": "./lib/index.js", diff --git a/src/utils/jwt-utils/index.ts b/src/utils/jwt-utils/index.ts index 8dc9195..aebbab4 100644 --- a/src/utils/jwt-utils/index.ts +++ b/src/utils/jwt-utils/index.ts @@ -9,6 +9,7 @@ function isExpired(token: string) { return true; } let isJwtExpired = false; + const decoded: JwtPayload = jwtDecode(token); const currentTime = (new Date().getTime() / 1000); const expiryTime = decoded.exp;