Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
getTransports()
is a method of the AuthenticatorAttestationResponse
interface that returns an Array
containing strings describing the different transports which may be used by the authenticator.
Such transports may be USB, NFC, BLE or internal (applicable when the authenticator is not removable from the device).
Note: An AuthenticatorAttestationResponse
instance is available on PublicKeyCredential.response
after calling navigator.credentials.create()
.
Note: This method may only be used in top-level contexts and will not be available in an <iframe>
for example.