New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@accounts/client

Package Overview
Dependencies
Maintainers
3
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accounts/client - npm Package Compare versions

Comparing version 1.0.0-alpha-20231123183707-51335dc2 to 1.0.0-alpha-20231124142337-45cc4d05

5

lib/utils.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isTokenExpired = void 0;
var tslib_1 = require("tslib");
var jwt_decode_1 = tslib_1.__importDefault(require("jwt-decode"));
var jwt_decode_1 = require("jwt-decode");
var isTokenExpired = function (token) {
var currentTime = Date.now() / 1000;
var decodedToken = (0, jwt_decode_1.default)(token);
var decodedToken = (0, jwt_decode_1.jwtDecode)(token);
return decodedToken.exp < currentTime;

@@ -10,0 +9,0 @@ };

6

package.json
{
"name": "@accounts/client",
"version": "1.0.0-alpha-20231123183707-51335dc2",
"version": "1.0.0-alpha-20231124142337-45cc4d05",
"description": "Fullstack authentication and accounts-management",

@@ -50,8 +50,8 @@ "main": "lib/index.js",

"dependencies": {
"jwt-decode": "3.1.2"
"jwt-decode": "4.0.0"
},
"devDependencies": {
"@accounts/types": "1.0.0-alpha-20231123183707-51335dc2",
"@accounts/types": "1.0.0-alpha-20231124142337-45cc4d05",
"jest-localstorage-mock": "2.4.26"
}
}

@@ -1,2 +0,2 @@

import jwtDecode from 'jwt-decode';
import { jwtDecode } from 'jwt-decode';

@@ -3,0 +3,0 @@ interface JwtDecodeData {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc