[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:
parent
95ee0d8984
commit
d0afb3ab36
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue