Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

authentication-adal-pkg

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

authentication-adal-pkg - npm Package Compare versions

Comparing version 1.0.13 to 1.0.14

19

lib/index.js

@@ -293,4 +293,3 @@ 'use strict';

var token = authResult.idToken;
var _decodeTokenPayload3 = decodeTokenPayload(token);
var exp = _decodeTokenPayload3.exp;
var exp = new Date(authResult.expiresOn);
storage.set(constants.IN_PROGRESS, false);

@@ -320,13 +319,7 @@ storage.set(constants.TOKEN, token);

var token = authResult.idToken;
if (isValidToken(token)) {
var _decodeTokenPayload3 = decodeTokenPayload(token);
var exp = _decodeTokenPayload3.exp;
storage.set(constants.IN_PROGRESS, false);
storage.set(constants.TOKEN, token);
storage.set(constants.TOKEN_EXPIRATION, exp);
resolve(authResult);
} else {
// When token has expired, acquire new token
acquireTokenAsyncMobile(resolve, reject);
}
var exp = new Date(authResult.expiresOn);
storage.set(constants.IN_PROGRESS, false);
storage.set(constants.TOKEN, token);
storage.set(constants.TOKEN_EXPIRATION, exp);
resolve(authResult);
},

@@ -333,0 +326,0 @@ function() {

{
"name": "authentication-adal-pkg",
"version": "1.0.13",
"version": "1.0.14",
"description": "An authentication SDK based on MS ADAL ",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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