diff options
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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 { | |||
36 | ) {} | 36 | ) {} |
37 | 37 | ||
38 | ngOnInit () { | 38 | ngOnInit () { |
39 | this.authService.loadClientCredentials() | ||
40 | |||
39 | if (this.authService.isLoggedIn()) { | 41 | if (this.authService.isLoggedIn()) { |
40 | // The service will automatically redirect to the login page if the token is not valid anymore | 42 | // The service will automatically redirect to the login page if the token is not valid anymore |
41 | this.userService.checkTokenValidity() | 43 | this.userService.checkTokenValidity() |