Double-quotes to single ones.
This commit is contained in:
parent
7ca6a9827a
commit
efe9b6340d
@ -40,7 +40,7 @@ export class AuthInterceptor implements HttpInterceptor {
|
||||
let loginService = this.injector.get(LoginService);
|
||||
|
||||
if(request.url == loginService.url) {
|
||||
this.logger.log("Login URL, do not handle.");
|
||||
this.logger.log('Login URL, do not handle.');
|
||||
|
||||
return next.handle(request);
|
||||
}
|
||||
@ -61,7 +61,7 @@ export class AuthInterceptor implements HttpInterceptor {
|
||||
|
||||
return observable.catch(
|
||||
(error, caught): Observable<any> => {
|
||||
this.logger.error("Error", error, caught);
|
||||
this.logger.error('Error', error, caught);
|
||||
|
||||
if(!(error instanceof HttpErrorResponse) || error.status != 401) {
|
||||
return Observable.throw(error);
|
||||
@ -74,12 +74,12 @@ export class AuthInterceptor implements HttpInterceptor {
|
||||
}
|
||||
|
||||
if(!this.observable) {
|
||||
this.logger.log("No current login observable.")
|
||||
this.logger.log('No current login observable.');
|
||||
this.observable = loginService.login();
|
||||
}
|
||||
|
||||
return this.observable.flatMap((token: Token): Observable<HttpEvent<any>> => {
|
||||
this.logger.log("Logged in, access_token:", token.access_token);
|
||||
this.logger.log('Logged in, access_token:', token.access_token);
|
||||
this.observable = null;
|
||||
return this.intercept(request, next, ++pass);
|
||||
}).catch((error) => {
|
||||
|
Loading…
Reference in New Issue
Block a user