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

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

FIDO Universal 2nd Factor #

This package supports NFC, USB and Webauthn Fido2 keys on iOS, Android, Windows, Linux, macOS, and Web.

Getting Started #

Register #

const u2f = U2fV2();
return await u2f.register(
  challenge: 'some random data',
  appId: 'example.com',
);

Authenticate #

const u2f = U2fV2();
return await u2f.authenticate(
  challenge: 'some random data',
  appId: 'example.com',
  keyHandles: [
    // ... a list of registered key handles
  ],
);

Setup #

Follow the flutter_nfc_kit package setup section.

On iOS, your new Info.plist lines should look like this:

<key>NFCReaderUsageDescription</key>
<string>Use NFC to authenticate with a security device</string>
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
<array>
  <string>A000000308</string>
  <string>A0000005272101</string>
  <string>A000000527471117</string>
  <string>A0000006472F0001</string>
</array>
3
likes
140
points
54
downloads

Publisher

verified publishernfet.net

Weekly Downloads

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

Homepage
Repository (GitHub)
View/report issues

Topics

#auth #fido

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

async, cbor, crypto, ffi, flutter, flutter_nfc_kit, logging, plugin_platform_interface, pointycastle, web

More

Packages that depend on u2f