I have this same issue, background of my issue - I was using my main domain and authenticating via iOS app which worked fine for quiet awhile with the config.php having an insert of āoverwriteprotocolā => āhttpsā,. However I decided to move my NC to a subdomain. When I tried authenticating my iOS app āState token Missingā keeps coming up. I tried asking AI to verify the logs, and stated:
The repeated 404 Not Found
errors on /login/v2/poll
along with the āstate token missingā message strongly suggest that something is blocking or misrouting the request to the Nextcloud login endpoint.
So far its suggestions havenāt really given me any positive results.
Edit: Iām running 31.0.2 from a āregularā repo not the AIO