I am developing a Saas application, that implements the 2 Factor Authentication feature, using hardware keys (Yubikey, Titan Key), using WebAuthn/U2F protocol. The feature is working well for registering and authenticating in web version. However, my application have also a mobile version, a desktop application, and browser extensions. If i register the key using the web version, i am not able to authenticate in other versions.
I think the problem is because when registering the key is registered using the domain name of the web version, and the verification fails when i uses other versions, because it is not the same domain name.
For example: my key is register with the domain name is example.com, and when logging in from the chrome extension the domain is chrome-extension.
How i can solve this issue, or how i can do the authentication from different forms of the same application.