A utility for communicating with FIDO 2.0 authenticators using the Client to Authenticator Protocol (CTAP)
npm install fido2-authenticator
The Authenticator object has the following methods:
- authenticatorMakeCredential
- authenticatorGetAssertion (currently not implemented)
- authenticatorCancel (currently not implemented)
- authenticatorGetInfo (currently not implemented)
- sendMessage
- receiveMessage
The auth constructor takes the form: new Auth(sendFunction, receiveFunction)
where sendFunction
and receiveFunction
are called when the Auth
needs to send / receive data to / from the underlying implementation.
function sendFunction (cbor, cb);
function receiveFunction (cb);
// cbor = cbor encoded message
// cb = callback function for when sending is complete
Currently incomplete:
- Doesn't support
rawAttestation
parameter inmakeCredential
response - Doesn't support
getAttestation
- Doesn't support
cancel
- Doesn't support
getInfo