Defender 2 Factor authentication

I have a problem that the 2 factor authentication is not working on chrome. In google chrome I get asked for the code which I get from the authenticator app. After which I just get redirected to the login page, no errors. That work fine in other browsers. I've tried to deactivate all extensions, clear browser cache, use incognito mode, but it doesn't help.