@seges/angular-authentication-service
Advanced tools
+1
-1
| { | ||
| "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 @@ |
17127
2.42%358
1.99%