Yubikey authentication causes failure to login via Cockpit

So i followed the article in fedora magazine to enable yubikey as 2fa for sudo. It works great for sudo and login. The problem is i can no longer login as administrator to the cockpit web interface. Does anyone know how to fix this?