u2f 1.3.0 copy "u2f: ^1.3.0" to clipboard
u2f: ^1.3.0 copied to clipboard

FIDO Universal 2nd Factor. Register a FIDO2 U2F key to your application Verify a FIDO2 U2F key assertion

u2f #

FIDO Universal 2nd Factor

This package supports NFC Fido2 kays on iOS and Android.

Getting Started #

Register #

final u2f = await U2fV2Nfc.poll();
try {
  return await u2f.register(
    challenge: 'some random data',
    appId: 'example.com',
  );
} finally {
  await u2f.dispose();
}

Authenticate #

final u2f = await U2fV2Nfc.poll();
try {
  return await u2f.authenticate(
    challenge: 'some random data',
    appId: 'example.com',
    keyHandles: [
      // ... a list of registered key handles
    ],
  );
} finally {
  await u2f.dispose();
}
2
likes
120
pub points
26%
popularity

Publisher

unverified uploader

FIDO Universal 2nd Factor. Register a FIDO2 U2F key to your application Verify a FIDO2 U2F key assertion

Homepage

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

cbor, crypto, flutter, flutter_nfc_kit, logging, pointycastle

More

Packages that depend on u2f