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

@mybiogen/auth-openid

Package Overview
Dependencies
Maintainers
15
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mybiogen/auth-openid - npm Package Compare versions

Comparing version 2.0.7 to 2.0.8

6

lib/utils/CookieStorage.js

@@ -9,3 +9,3 @@ "use strict";

if (cookie.length > 0) {
var decodedCookie = decodeURI(cookie);
var decodedCookie = decodeURIComponent(cookie);
var cookies = decodedCookie.split(';');

@@ -18,3 +18,3 @@ var cookieWithName = cookies.find(function (currentCookie) { return currentCookie.trim().startsWith(key + "="); });

try {
return JSON.parse(decodeURIComponent(value));
return JSON.parse(value);
}

@@ -44,2 +44,2 @@ catch (e) {

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29va2llU3RvcmFnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9Db29raWVTdG9yYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFhLFFBQUEsYUFBYSxHQUFHO0lBQ3pCLEdBQUcsRUFBSCxVQUFJLEdBQVc7UUFDSCxJQUFBLE1BQU0sR0FBSyxRQUFRLE9BQWIsQ0FBYztRQUU1QixJQUFJLEtBQUssQ0FBQztRQUNWLElBQUksTUFBTSxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQUU7WUFDckIsSUFBTSxhQUFhLEdBQUcsU0FBUyxDQUFDLE1BQU0sQ0FBQyxDQUFDO1lBQ3hDLElBQU0sT0FBTyxHQUFHLGFBQWEsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUM7WUFDekMsSUFBTSxjQUFjLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxVQUFDLGFBQWEsSUFBSyxPQUFBLGFBQWEsQ0FBQyxJQUFJLEVBQ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2YWx1ZTtcbiAgICAgICAgfVxuICAgIH0sXG4gICAgLyogZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby1leHBsaWNpdC1hbnkgKi9cbiAgICBzZXQoa2V5OiBzdHJpbmcsIHZhbHVlOiBhbnksIG9wdHM6IHsgZXhwaXJlcz86IHN0cmluZzsgcGF0aD86IHN0cmluZzsgZG9tYWluPzogc3RyaW5nOyBzZWN1cmU/OiBzdHJpbmc7IH0gPSB7fSkge1xuICAgICAgICBsZXQgc3RyaW5naWZpZWRWYWx1ZSA9IHR5cGVvZiB2YWx1ZSA9PT0gJ3N0cmluZycgPyB2YWx1ZSA6IEpTT04uc3RyaW5naWZ5KHZhbHVlKTtcblxuICAgICAgICBsZXQgcyA9IGAke2VuY29kZVVSSUNvbXBvbmVudChrZXkpfT0ke2VuY29kZVVSSUNvbXBvbmVudChzdHJpbmdpZmllZFZhbHVlKX1gO1xuICAgICAgICBpZiAob3B0cy5leHBpcmVzKSBzICs9IGA7ZXhwaXJlcz0ke29wdHMuZXhwaXJlc31gO1xuICAgICAgICBpZiAob3B0cy5wYXRoKSBzICs9IGA7cGF0aD0ke29wdHMucGF0aH1gO1xuICAgICAgICBpZiAob3B0cy5kb21haW4pIHMgKz0gYDtkb21haW49JHtvcHRzLmRvbWFpbn1gO1xuICAgICAgICBpZiAob3B0cy5zZWN1cmUpIHMgKz0gJztzZWN1cmUnO1xuICAgICAgICBkb2N1bWVudC5jb29raWUgPSBzO1xuICAgICAgICByZXR1cm4gcztcbiAgICB9LFxuICAgIHJlbW92ZShrZXk6IHN0cmluZykge1xuICAgICAgICBkb2N1bWVudC5jb29raWUgPSBrZXkgKyc9OyBQYXRoPS87IEV4cGlyZXM9VGh1LCAwMSBKYW4gMTk3MCAwMDowMDowMSBHTVQ7J1xuICAgIH0sXG59O1xuICAiXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29va2llU3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waXJlcykgcyArPSBgO2V4cGlyZXM9JHtvcHRzLmV4cGlyZXN9YDtcbiAgICAgICAgaWYgKG9wdHMucGF0aCkgcyArPSBgO3BhdGg9JHtvcHRzLnBhdGh9YDtcbiAgICAgICAgaWYgKG9wdHMuZG9tYWluKSBzICs9IGA7ZG9tYWluPSR7b3B0cy5kb21haW59YDtcbiAgICAgICAgaWYgKG9wdHMuc2VjdXJlKSBzICs9ICc7c2VjdXJlJztcbiAgICAgICAgZG9jdW1lbnQuY29va2llID0gcztcbiAgICAgICAgcmV0dXJuIHM7XG4gICAgfSxcbiAgICByZW1vdmUoa2V5OiBzdHJpbmcpIHtcbiAgICAgICAgZG9jdW1lbnQuY29va2llID0ga2V5ICsnPTsgUGF0aD0vOyBFeHBpcmVzPVRodSwgMDEgSmFuIDE5NzAgMDA6MDA6MDEgR01UOydcbiAgICB9LFxufTtcbiAgIl19
{
"name": "@mybiogen/auth-openid",
"version": "2.0.7",
"version": "2.0.8",
"description": "Authorization for OpenID",

@@ -37,3 +37,3 @@ "license": "MIT",

},
"gitHead": "721c77bd4bdf0cc253c7d60fae444d187f39db7b"
"gitHead": "926e69b4a6705af5a0421cfd2c96b9364951f974"
}
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