this.authService.loadClientCredentials()
- if (this.authService.isLoggedIn()) {
+ if (this.isUserLoggedIn()) {
// The service will automatically redirect to the login page if the token is not valid anymore
this.authService.refreshUserInformation()
}
})
}
+ isUserLoggedIn () {
+ return this.authService.isLoggedIn()
+ }
+
toggleMenu () {
window.scrollTo(0, 0)
this.isMenuDisplayed = !this.isMenuDisplayed