Anonybit FIDO JS
npm install anonybit-fido-jsAnonybit FIDO JS integration
Anonybit integration with FIDO
* use npm i anonybit-fido-js or yarn install anonybit-fido-js in order to install this package into your app
* initialize an object:
* const options = {cid: [customer id], rpBaseURL: [Relying party URL]}
* const fido = new AnonybitFIDO(options)
* your rp and your website has to have the same domain in order for the process to work
* for registering use await fido.registerDevice(userID, name, displayName) it'll return a promise for a success with a token
{success: true, token: xxxx}
* prior to the registration call there should be an API call to the RP to enable registration [rpBaseURL]/api/v1/init
* for authentication use await fido.authenticateDevice(userID) it'll return a promise for a success with a token
{success: true, token: xxxx}