"Invalid state token" message when logging in

Hi guys, I’m following the normal tutorial for concourse, it was working fine until today. When logging into concourse it brings me to a white page saying “invalid state token”. I’ve cleared cache cookies, and I even destroyed the project and created a new one and that hasn’t worked. I can’t seem to find an answer online. Any ideas?

Edit: Finally figured it out. It’s a bug. Because I start docker-compose with the external url as //localhost:8080/, but then I set my target login as ://127.0.0.1:8080 and log in with ://127.0.0.1:8080/ it causes the sort of error. It has to match the external url, so I changed it and it works.