Browse Source

fix(core): fix tiered project logout problem

pull/2986/head
mehmet-erim 6 years ago
parent
commit
a5f64606f9
  1. 14
      npm/ng-packs/packages/core/src/lib/services/auth.service.ts

14
npm/ng-packs/packages/core/src/lib/services/auth.service.ts

@ -50,11 +50,17 @@ export class AuthService {
}
logout(): Observable<void> {
const issuer = this.store.selectSnapshot(ConfigState.getDeep('environment.oAuthConfig.issuer'));
return this.rest
.request({
method: 'GET',
url: '/api/account/logout',
})
.request(
{
method: 'GET',
url: '/api/account/logout',
},
null,
issuer,
)
.pipe(
switchMap(() => {
this.oAuthService.logOut();

Loading…
Cancel
Save