We’d need to have a standard HTML element like <facial-rec> or something and let the browser handle mapping it to whatever specific hardware the device is using
You just need an open standard, you could even embed the url of the validating api in the token, so anyone could create their own Face ID provider.