feat(client): auth interceptor

This commit is contained in:
eneller
2026-07-23 13:02:58 +02:00
parent 4f734fff30
commit c876a45ef8
7 changed files with 57 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ export class ScreenProfile implements OnInit{
logOut(){
this.api.logout().subscribe({
next: () => {
this.router.navigate(['login'])
this.router.navigate(['/'])
},
error: (err) => {
console.error('Error logging out:', err)