Can't login to iMessages on Mac M1 Pro
The first screen that pops up when the Messages app starts is the iCloud login screen. When I enter the correct credentials, the spinner animation appears and keeps spinning forever. When I deliberately enter the wrong credentials it shows an error, so the network call seems to be working fine. When the login process is in progress like this, the only way to close the messages app is to force-quit it.
How can this issue be solved?
MacBook Pro 16″, macOS 12.1