@mybiogen/auth-openid
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -206,7 +206,3 @@ "use strict"; | ||
}; | ||
this.storage.set(this.storageKey + ".token", this.token, { | ||
path: '/', | ||
secure: 'true', | ||
expires: (new Date(new Date().getTime() + authToken.expires_in * 1000)).toUTCString(), | ||
}); | ||
this.storage.set(this.storageKey + ".token", this.token); | ||
this.storage.remove(currentState); | ||
@@ -264,7 +260,3 @@ window.history.replaceState({}, document.title, window.location.pathname); | ||
}; | ||
this.storage.set(this.storageKey + ".token", this.token, { | ||
path: '/', | ||
secure: 'true', | ||
expires: (new Date(new Date().getTime() + token.expires_in * 1000)).toUTCString(), | ||
}); | ||
this.storage.set(this.storageKey + ".token", this.token); | ||
return [2, this.token]; | ||
@@ -529,2 +521,2 @@ } | ||
exports.default = OpenIDClient; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT0F1dGhDbGllbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvT0F1dGhDbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDhEQUF1QztBQUN2Qyw2QkFBb0M7QUFDcEMsaUNBQTBHO0FBWTFHLHVEQUFzRDtBQUV0RDtJQTJDRSxzQkFBWSxRQUFnQixFQUFFLFNBQWlCLEVBQUUsV0FBbUIsRUFBRSxVQUFrQixFQUFFLGlCQUF5QixFQUFFLE1BQTZCLEVBQUUsTUFBZ0MsRUFBRSxXQUF5QztRQUEvTixpQkEwQ0M7UUExQ29ILHVCQUFBLEVBQUEsVUFBb0IsUUFBUSxDQUFDO1FBQUUsdUJBQUEsRUFBQSxXQUFnQztRQUFFLDRCQUFBLEVBQUEsNEJBQXlDO1FBWi9OLGNBQVMsR0FBK0MsRUFBRSx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aW9uVVJJKTtcbiAgICB9IGVsc2Uge1xuICAgICAgLy8gT2t0YUpTXG4gICAgICBjb25zdCBwYXJhbXMgPSB7XG4gICAgICAgICdpZF90b2tlbl9oaW50JzogdGhpcy50b2tlbj8uaWRUb2tlbixcbiAgICAgICAgJ3Bvc3RfbG9nb3V0X3JlZGlyZWN0X3VyaSc6IHRoaXMubG9nb3V0UmVkaXJlY3RVUkksXG4gICAgICB9O1xuICAgICAgaWYgKHRoaXMuZW5kU2Vzc2lvbkVuZHBvaW50KSB7XG4gICAgICAgIGNvbnN0IHVybCA9IGAke3RoaXMuZW5kU2Vzc2lvbkVuZHBvaW50fT8ke3F1ZXJ5U3RyaW5nLnN0cmluZ2lmeShwYXJhbXMpfWA7XG4gICAgICAgIHdpbmRvdy5sb2NhdGlvbi5yZXBsYWNlKHVybCk7XG4gICAgICB9XG4gICAgfVxuICB9O1xuXG59XG4iXX0= |
{ | ||
"name": "@mybiogen/auth-openid", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Authorization for OpenID", | ||
@@ -37,3 +37,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "8cfaf163c3197089971732db38e11d735c20f634" | ||
"gitHead": "4a52c33dc7d3700d8650d6d4bb012a040e832a9a" | ||
} |
Sorry, the diff of this file is not supported yet
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
112451
987