Skip to content

Commit

Permalink
Merge pull request #112 from microsoft/dev/rashahoc/alwaysCloseWindow
Browse files Browse the repository at this point in the history
[Auth redirect URI] - always close the window of the redirect URI
  • Loading branch information
ramizsha authored Oct 8, 2024
2 parents b4cd86d + f40fe92 commit f3efcd6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Frontend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,10 @@ if (url.pathname?.startsWith(redirectUriPath)) {
// handle user declined the consent error
} else if (url.hash.includes("AADSTS65004")) {
printFormattedAADErrorMessage(url?.hash);
} else {
window.close();
}

} else {
// close the window in case there are no errors
window.close();
}
// Always close the window
window.close();
}

console.log('****Runtime: Environment Variables****');
Expand Down

0 comments on commit f3efcd6

Please sign in to comment.