private authService: AuthService,
private configService: ConfigService,
private userService: UserService,
- private videoService: VideoService,
- viewContainerRef: ViewContainerRef
+ private videoService: VideoService
) {}
ngOnInit () {
+ this.authService.loadClientCredentials()
+
if (this.authService.isLoggedIn()) {
// The service will automatically redirect to the login page if the token is not valid anymore
this.userService.checkTokenValidity()