Serving my react app with the single page application flag (serve -s buildfolder) breaks the authbutton. Once clicked it opens a window and shows the site again and not the login page. Not serving it single page fixes that issue but then the react app can't handle refreshes or manually editting the url (those all result in a 404).