Skip to content

Commit

Permalink
use regular usershub auth module logout #2682
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoLechemia committed Sep 11, 2023
1 parent 12dcea2 commit c07978c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/app/components/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ export class AuthService {
}

logout() {
this.deleteAllCookies();
this.cleanLocalStorage();
this.cruvedService.clearCruved();

Expand All @@ -139,7 +138,7 @@ export class AuthService {
// call the logout route to delete the session
// TODO: in case of different cruved user in DEPOBIO context must run this routes
// but actually make bug the INPN CAS deconnexion
this._http.get<any>(`${this.config.API_ENDPOINT}/gn_auth/logout_cruved`).subscribe(() => {
this._http.get<any>(`${this.config.API_ENDPOINT}/auth/logout`).subscribe(() => {
location.reload();
});
// refresh the page to refresh all the shared service to avoid cruved conflict
Expand Down

0 comments on commit c07978c

Please sign in to comment.