Apple is working on this using WebAuthn, they call it Passkeys:
https://sixcolors.com/post/2021/06/wwdc-2021-apple-takes-the...
https://sixcolors.com/post/2021/06/wwdc-2021-apple-takes-the...
Frustratingly, there is no option to add a TOTP code (like most other services, including Google, offer) or to disable SMS 2FA as a backup (despite its known security issues).
I say this mostly because I assume Apple would use your Apple ID credentials as a way to log in to these services on a Windows or Linux machine, as they do currently with the "Sign in with Apple" flow.