generated from nhcarrigan/template
feat: security and auditing
This commit is contained in:
@@ -40,6 +40,7 @@ export class AuthService {
|
||||
return this.api.post<{ message: string }>('/auth/logout', {}).pipe(
|
||||
tap(() => {
|
||||
this.currentUser.set(null);
|
||||
this.api.clearCsrfToken();
|
||||
this.router.navigate(['/']);
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user