Outlook Addin - React OAuth Logout Redirect


I’m updating our Outlook Add In (written in React) to use OAuth and the login experience works as expected and navigates back to the application within Outlook correctly. However, when I click logout it opens a separate browser window and does not navigate back to the add in within Outlook.

Is there a way to prevent it opening a separate browser window and go directly back to the app with Outlook?