[Library remove isLoggedIn from user management Service]

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57065 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2019-09-13 08:35:03 +00:00
parent 95ee0d8984
commit d0afb3ab36
1 changed files with 0 additions and 6 deletions

View File

@ -12,12 +12,6 @@ export class UserManagementService {
constructor(private http: HttpClient) {
}
public isLoggedIn(url: string): Observable<boolean> {
return this.getUserInfo(url).pipe(map(user => {
return user !== null;
}));
}
public getUserInfo(url: string): Observable<User> {
const token = COOKIE.getCookie('AccessToken');
return this.http.get<User>(url + token).pipe(map(userInfo => {