Socket
Socket
Sign inDemoInstall

airmap-auth

Package Overview
Dependencies
9
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.0.2

8

CHANGELOG.md

@@ -5,2 +5,10 @@ # Change Log

## 3.0.2
Switched JWT decode packages.
<a name="3.0.1"></a>
## [3.0.1](https://www.npmjs.com/package/airmap-auth/v/3.0.1) (2019-02-05)
We changed our SSO provider. This package has been updated to reflect that change
<a name="2.0.2"></a>

@@ -7,0 +15,0 @@ ## [2.0.2](https://github.com/airmap/js-auth/compare/v2.0.1...v2.0.2) (2018-06-26)

6

dist/AirMapAuth.js

@@ -10,3 +10,3 @@ 'use strict';

var oidc = require('oidc-client');
var jwt = require('jsonwebtoken');
var jwtDecode = require('jwt-decode');

@@ -197,3 +197,3 @@ var _require = require('./error'),

// Checks expiration date of token.
var decoded = jwt.decode(localStorage.getItem(this._tokenName));
var decoded = jwtDecode(localStorage.getItem(this._tokenName));
var timeStampNow = Math.floor(Date.now() / 1000);

@@ -218,3 +218,3 @@ return timeStampNow < decoded.exp;

} else {
return jwt.decode(localStorage.getItem(this._tokenName)).sub;
return jwtDecode(localStorage.getItem(this._tokenName)).sub;
}

@@ -221,0 +221,0 @@ }

{
"name": "airmap-auth",
"version": "3.0.1",
"version": "3.0.2",
"description": "Authenticate users with AirMap",

@@ -38,3 +38,3 @@ "author": "AirMap, Inc. <developers@airmap.com> (https://airmap.com)",

"dependencies": {
"jsonwebtoken": "^8.2.1",
"jwt-decode": "^2.2.0",
"oidc-client": "^1.6.1"

@@ -41,0 +41,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc