X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fapp.component.ts;h=57bf64f69d8455e1336d0fcad9e204420778ef43;hb=d592e0a9b2931c7c9cbedb27fb8efc9aaacad9bb;hp=a90654e269dc4f0958c43b4326f643e86a3ca86a;hpb=91f6f169b1110eeae6ebf5c387f4204b0d07703c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index a90654e26..57bf64f69 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts @@ -36,6 +36,8 @@ export class AppComponent implements OnInit { ) {} 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()