@mybiogen/auth-openid
Advanced tools
Comparing version 2.0.1 to 2.0.2
export declare const CookieStorage: { | ||
get(key: string): string; | ||
get(key: string): any; | ||
set(key: string, value: any, opts?: { | ||
@@ -4,0 +4,0 @@ expires?: string; |
@@ -14,3 +14,3 @@ "use strict"; | ||
} | ||
return value; | ||
return JSON.parse(value); | ||
}, | ||
@@ -36,2 +36,2 @@ set: function (key, value, opts) { | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29va2llU3RvcmFnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9Db29raWVTdG9yYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFhLFFBQUEsYUFBYSxHQUFHO0lBQ3pCLEdBQUcsRUFBSCxVQUFJLEdBQVc7UUFDSCxJQUFBLE1BQU0sR0FBSyxRQUFRLE9BQWIsQ0FBYztRQUU1QixJQUFJLEtBQUssR0FBRyxFQUFFLENBQUM7UUFDZixJQUFJLE1BQU0sQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFO1lBQ3JCLElBQU0sYUFBYSxHQUFHLFNBQVMsQ0FBQyxNQUFNLENBQUMsQ0FBQztZQUN4QyxJQUFNLE9BQU8sR0FBRyxhQUFhLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDO1lBQ3pDLElBQU0sY0FBYyxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsVUFBQyxhQUFhLElBQUssT0FBQSxhQUFhLENBQUMsSUFBSSxFQUFFLENBQUMsVUFBVSxDQUFJLEdBQUcsTUFBRyxDQUFDLEVBQTFDLENBQTBDLENBQUMsQ0FBQztZQUNuRyxLQUFLLEdBQUcsY0FBYyxDQUFDLENBQUMsQ0FBQyxjQUFjLGFBQWQsY0FBYyx1QkFBZCxjQUFjLENBQUUsS0FBSyxDQUFDLEdBQUcsRUFBR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nZSA9IHtcbiAgICBnZXQoa2V5OiBzdHJpbmcpIHtcbiAgICAgICAgY29uc3QgeyBjb29raWUgfSA9IGRvY3VtZW50O1xuICBcbiAgICAgICAgbGV0IHZhbHVlID0gJyc7XG4gICAgICAgIGlmIChjb29raWUubGVuZ3RoID4gMCkge1xuICAgICAgICAgIGNvbnN0IGRlY29kZWRDb29raWUgPSBkZWNvZGVVUkkoY29va2llKTtcbiAgICAgICAgICBjb25zdCBjb29raWVzID0gZGVjb2RlZENvb2tpZS5zcGxpdCgnOycpO1xuICAgICAgICAgIGNvbnN0IGNvb2tpZVdpdGhOYW1lID0gY29va2llcy5maW5kKChjdXJyZW50Q29va2llKSA9PiBjdXJyZW50Q29va2llLnRyaW0oKS5zdGFydHNXaXRoKGAke2tleX09YCkpO1xuICAgICAgICAgIHZhbHVlID0gY29va2llV2l0aE5hbWUgPyBjb29raWVXaXRoTmFtZT8uc3BsaXQoJz0nKVsxXS50cmltKCkgOiAnJztcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gdmFsdWU7XG4gICAgfSxcbiAgICAvKiBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLWV4cGxpY2l0LWFueSAqL1xuICAgIHNldChrZXk6IHN0cmluZywgdmFsdWU6IGFueSwgb3B0czogeyBleHBpcmVzPzogc3RyaW5nOyBwYXRoPzogc3RyaW5nOyBkb21haW4/OiBzdHJpbmc7IHNlY3VyZT86IHN0cmluZzsgfSA9IHt9KSB7XG4gICAgICAgIGxldCBzdHJpbmdpZmllZFZhbHVlID0gdHlwZW9mIHZhbHVlID09PSAnc3RyaW5nJyA/IHZhbHVlIDogSlNPTi5zdHJpbmdpZnkodmFsdWUpO1xuXG4gICAgICAgIGxldCBzID0gYCR7ZW5jb2RlVVJJQ29tcG9uZW50KGtleSl9PSR7ZW5jb2RlVVJJQ29tcG9uZW50KHN0cmluZ2lmaWVkVmFsdWUpfWA7XG4gICAgICAgIGlm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sgcGF0aD86IHN0cmluZzsgZG9tYWluPzogc3RyaW5nOyBzZWN1cmU/OiBzdHJpbmc7IH0gPSB7fSkge1xuICAgICAgICBsZXQgc3RyaW5naWZpZWRWYWx1ZSA9IHR5cGVvZiB2YWx1ZSA9PT0gJ3N0cmluZycgPyB2YWx1ZSA6IEpTT04uc3RyaW5naWZ5KHZhbHVlKTtcblxuICAgICAgICBsZXQgcyA9IGAke2VuY29kZVVSSUNvbXBvbmVudChrZXkpfT0ke2VuY29kZVVSSUNvbXBvbmVudChzdHJpbmdpZmllZFZhbHVlKX1gO1xuICAgICAgICBpZiAob3B0cy5leHBpcmVzKSBzICs9IGA7ZXhwaXJlcz0ke29wdHMuZXhwaXJlc31gO1xuICAgICAgICBpZiAob3B0cy5wYXRoKSBzICs9IGA7cGF0aD0ke29wdHMucGF0aH1gO1xuICAgICAgICBpZiAob3B0cy5kb21haW4pIHMgKz0gYDtkb21haW49JHtvcHRzLmRvbWFpbn1gO1xuICAgICAgICBpZiAob3B0cy5zZWN1cmUpIHMgKz0gJztzZWN1cmUnO1xuICAgICAgICBkb2N1bWVudC5jb29raWUgPSBzO1xuICAgICAgICByZXR1cm4gcztcbiAgICB9LFxuICAgIHJlbW92ZShrZXk6IHN0cmluZykge1xuICAgICAgICBkb2N1bWVudC5jb29raWUgPSBrZXkgKyc9OyBQYXRoPS87IEV4cGlyZXM9VGh1LCAwMSBKYW4gMTk3MCAwMDowMDowMSBHTVQ7J1xuICAgIH0sXG59O1xuICAiXX0= |
{ | ||
"name": "@mybiogen/auth-openid", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Authorization for OpenID", | ||
@@ -37,3 +37,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "61e4be49d66e140240d24cd2dcec0aec55782e2a" | ||
"gitHead": "daf7a485e5e59021a18d889fc5042d1908e68aca" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112381