Commit 923126ca authored by Lukas Burgey's avatar Lukas Burgey

Fix logout

parent 28a9f76a
......@@ -233,9 +233,11 @@ export class UserService {
}
public logout(): void {
this.http.post<State>('/backend/auth/v1/logout', {}).subscribe(
this.http.post<State>('/backend/auth/v1/logout', undefined).subscribe(
(state: State) => this.updateState(state),
this.logErrorAndFetch,
(err: HttpErrorResponse) => {
this.updateState(undefined);
}
);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment