Skip to content

Commit

Permalink
fix: hiding AWS SSO BrowserWindow when login success is catched
Browse files Browse the repository at this point in the history
Refs: #185
  • Loading branch information
ericvilla committed Nov 15, 2021
1 parent 603bacf commit f467338
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/services/aws-sso-oidc.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ export class AwsSsoOidcService {
this.ssoWindow.webContents.session.webRequest.onBeforeRequest({ urls: [
'https://*.awsapps.com/start/user-consent/login-success.html',
] }, (details, callback) => {

this.ssoWindow.hide();
this.ssoWindow.close();
this.ssoWindow = null;

Expand Down

0 comments on commit f467338

Please sign in to comment.