mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 04:53:06 +00:00
Fixed logout issue
This commit is contained in:
@@ -35,7 +35,7 @@ export class AuthInterceptor implements HttpInterceptor {
|
||||
}
|
||||
|
||||
private isSuccess(response: HttpResponseBase): boolean {
|
||||
return response.status === 200;
|
||||
return (response.status === 200 || response.status === 204);
|
||||
}
|
||||
|
||||
private isAuthRequest(http: HttpRequest<any> | HttpResponseBase): boolean {
|
||||
|
@@ -140,7 +140,7 @@ export class AuthService {
|
||||
const person$ = this.rdbService.buildSingle<NormalizedEPerson, EPerson>(status.eperson.toString());
|
||||
return person$.pipe(map((eperson) => eperson.payload));
|
||||
} else {
|
||||
throw(new Error('Not authenticated'));
|
||||
Observable.throw(new Error('Not authenticated'));
|
||||
}
|
||||
}))
|
||||
}
|
||||
|
Reference in New Issue
Block a user