angular-oauth2-oidc
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -48,3 +48,3 @@ import { Http } from '@angular/http'; | ||
authorizationHeader(): string; | ||
logOut(): void; | ||
logOut(noRedirectToLogoutUrl?: boolean): void; | ||
createAndSaveNonce(): Promise<any>; | ||
@@ -51,0 +51,0 @@ createNonce(): Promise<{}>; |
@@ -362,3 +362,4 @@ "use strict"; | ||
}; | ||
OAuthService.prototype.logOut = function () { | ||
OAuthService.prototype.logOut = function (noRedirectToLogoutUrl) { | ||
if (noRedirectToLogoutUrl === void 0) { noRedirectToLogoutUrl = false; } | ||
var id_token = this.getIdToken(); | ||
@@ -374,2 +375,4 @@ this._storage.removeItem("access_token"); | ||
return; | ||
if (noRedirectToLogoutUrl) | ||
return; | ||
var logoutUrl; | ||
@@ -376,0 +379,0 @@ // For backward compatibility |
{ | ||
"name": "angular-oauth2-oidc", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"scripts": { | ||
@@ -39,3 +39,3 @@ "lint": "tslint src/**/*.ts", | ||
"@angular/http": "^2.0.0", | ||
"@angular/platform-browser": "^2.0.0", | ||
"@angular/platform-browser": "^2.0.0", | ||
"codelyzer": "^0.0.28", | ||
@@ -42,0 +42,0 @@ "rxjs": "^5.0.1", |
@@ -33,3 +33,3 @@ # angular-oauth2-oidc | ||
- Sources of this lib: https://github.com/manfredsteyer/angular-oauth-oidc | ||
- Sources of this lib: https://github.com/manfredsteyer/angular-oauth2-oidc | ||
@@ -36,0 +36,0 @@ |
@@ -447,3 +447,3 @@ import {Base64} from 'js-base64'; | ||
logOut() { | ||
logOut(noRedirectToLogoutUrl: boolean = false) { | ||
var id_token = this.getIdToken(); | ||
@@ -459,2 +459,3 @@ this._storage.removeItem("access_token"); | ||
if (!this.logoutUrl) return; | ||
if (noRedirectToLogoutUrl) return; | ||
@@ -461,0 +462,0 @@ let logoutUrl: string; |
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
425135
8728
180042