Refactoring
This commit is contained in:
@@ -12,8 +12,8 @@ import { EMPTY } from "rxjs";
|
||||
registerLocaleData(localeFr);
|
||||
|
||||
import { routes } from './app.routes';
|
||||
import { apiInterceptor, tokenInterceptor, errorInterceptor } from "src/app/core/interceptors";
|
||||
import { JwtService, UserService } from "src/app/core/services";
|
||||
import { apiInterceptor, tokenInterceptor, errorInterceptor } from "@interceptors";
|
||||
import { JwtService, UserService } from "@services";
|
||||
|
||||
export function initAuth(jwtService: JwtService, userService: UserService) {
|
||||
return () => (jwtService.getToken() ? userService.getCurrentUser() : EMPTY);
|
||||
|
||||
Reference in New Issue
Block a user