Skip to content

Commit

Permalink
Merge pull request #113 from GSA/feature/80_login_gov
Browse files Browse the repository at this point in the history
No logging out of login.gov totally
  • Loading branch information
BuckinghamAJ authored Apr 22, 2024
2 parents e0c0c42 + 7c0d33f commit b2220d4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/app/header/header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,14 @@ export class HeaderComponent implements OnInit {
this.app.isLogin = false;
this.authGuard.isLogin = false;

const logoutURL = this.authService.logout();
//const logoutURL = this.authService.logout();

// TODO: Implement when only Login.gov is used
if (loginMethod === 'login.gov') {
window.location.href = logoutURL;
}
else {
this.router.navigateByUrl('auth').then();
}
//if (loginMethod === 'login.gov') {
// window.location.href = logoutURL;
//}
this.router.navigateByUrl('auth').then();


}

Expand Down

0 comments on commit b2220d4

Please sign in to comment.