Oh, I think I got it!
After adding the custom component, I opened DevTools before clicking the re-auth button. When I got the empty modal with the spinner loader, I accessed the Tado login link from the network tab (without closing the modal). After that, the login flow worked!