anonybit-fido-js
v1.0.13
Published
Anonybit FIDO JS
Downloads
1
Readme
README
Anonybit FIDO JS integration
What is this repository for?
Anonybit integration with FIDO
How do I get set up?
- use
npm i anonybit-fido-js
oryarn 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)
FIDO capabilities
- 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}
Who do I talk to?
if there is any problems please contact me at [email protected]