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

angular-oauth2-oidc

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-oauth2-oidc - npm Package Compare versions

Comparing version 2.0.14 to 2.0.15

base64-helper.d.ts

14

angular-oauth2-oidc.umd.js

@@ -131,2 +131,12 @@ (function (global, factory) {

/**
* @param {?} str
* @return {?}
*/
function b64DecodeUnicode(str) {
return decodeURIComponent(atob(str).split('').map(function (c) {
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
}).join(''));
}
/**
* Service for logging in and logging out with

@@ -999,6 +1009,6 @@ OIDC and OAuth2. Supports implicit flow and

var /** @type {?} */ headerBase64 = this.padBase64(tokenParts[0]);
var /** @type {?} */ headerJson = atob(headerBase64);
var /** @type {?} */ headerJson = b64DecodeUnicode(headerBase64);
var /** @type {?} */ header = JSON.parse(headerJson);
var /** @type {?} */ claimsBase64 = this.padBase64(tokenParts[1]);
var /** @type {?} */ claimsJson = atob(claimsBase64);
var /** @type {?} */ claimsJson = b64DecodeUnicode(claimsBase64);
var /** @type {?} */ claims = JSON.parse(claimsJson);

@@ -1005,0 +1015,0 @@ var /** @type {?} */ savedNonce = this._storage.getItem("nonce");

@@ -140,2 +140,12 @@ import { Injectable, NgModule } from '@angular/core';

/**
* @param {?} str
* @return {?}
*/
function b64DecodeUnicode(str) {
return decodeURIComponent(atob(str).split('').map(function (c) {
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
}).join(''));
}
/**
* Service for logging in and logging out with

@@ -1008,6 +1018,6 @@ OIDC and OAuth2. Supports implicit flow and

var /** @type {?} */ headerBase64 = this.padBase64(tokenParts[0]);
var /** @type {?} */ headerJson = atob(headerBase64);
var /** @type {?} */ headerJson = b64DecodeUnicode(headerBase64);
var /** @type {?} */ header = JSON.parse(headerJson);
var /** @type {?} */ claimsBase64 = this.padBase64(tokenParts[1]);
var /** @type {?} */ claimsJson = atob(claimsBase64);
var /** @type {?} */ claimsJson = b64DecodeUnicode(claimsBase64);
var /** @type {?} */ claims = JSON.parse(claimsJson);

@@ -1014,0 +1024,0 @@ var /** @type {?} */ savedNonce = this._storage.getItem("nonce");

2

package.json
{
"name": "angular-oauth2-oidc",
"version": "2.0.14",
"version": "2.0.15",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

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