🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@seges/angular-authentication-service

Package Overview
Dependencies
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seges/angular-authentication-service - npm Package Compare versions

Comparing version
3.1.0
to
3.2.0
+1
-1
package.json
{
"name": "@seges/angular-authentication-service",
"version": "3.1.0",
"version": "3.2.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.ts",

@@ -93,3 +93,3 @@ import * as angular from "angular";

isAuthenticated(): boolean {
if (!this.token || !this.tokenExpiryDate) {
if (!this.token || !this.tokenExpiryDate || this.$window.sessionStorage.getItem("LoggedOut")) {
return false;

@@ -108,2 +108,3 @@ }

this.authenticate();
this.$window.sessionStorage.removeItem("LoggedOut");
}

@@ -116,2 +117,3 @@

this.logOutFromSingleSignOn();
this.$window.sessionStorage.setItem("LoggedOut", "true");
}

@@ -118,0 +120,0 @@

@@ -39,2 +39,7 @@ import "angular";

localStorage: {},
sessionStorage: {
getItem: (name: string) => {/* */ },
setItem: (name: string, data: any) => {/* */ },
removeItem: (name: string) => {/* */ },
},
} as ng.IWindowService;

@@ -41,0 +46,0 @@