Replies: 1 comment 1 reply
-
Hello @kareha, you can already achieve this when constructing the options you pass to const options = await generateAuthenticationOptions({
timeout: 60000,
allowCredentials: user.devices.map((dev) => ({
id: dev.credentialID,
type: 'public-key',
transports: ['usb', 'nfc', 'ble'],
})),
rpID,
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to set the transports as an Option in navigator.credentials.get(options) [In startAuthentication()]
So can have something like:
publicKeyOptions.transports = ['usb', 'nfc', 'ble', 'cable'];
to force security keys challenge.
It is supported in publicKey Object:
https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/get#publickey_object_structure
Thx
Beta Was this translation helpful? Give feedback.
All reactions