Checkpoint: Authentication
This commit is contained in:
@@ -113,4 +113,9 @@ export class AppTopBarComponent implements OnDestroy {
|
||||
navigateToSettings() {
|
||||
this.router.navigate(['/settings']);
|
||||
}
|
||||
|
||||
logout() {
|
||||
localStorage.removeItem('token');
|
||||
window.location.href = '/login';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user