U2F Host Node
A u2f host implementation in node.js
Install
npm install u2f-host-node --save# or yarn add u2f-host-node
Usage
const u2f = const U2FHost = U2FHost { const host = U2FHost const appId = 'https://example.com' // register const registerReq = u2f console const registerResponse = await host const registration = u2f // sign const signRequest = u2f console const signResponse = await host const verified = u2f}
Docs
Development
Prerequisites
Before development, make sure you installed all packages. We are using yarn for this project.
yarn
Developing SDK
## build yarn build ## test yarn test# or watch changes yarn test:dev ## lint yarn lint