Skip to content

fhir-fli/flutter_passkey

 
 

Repository files navigation

flutter_passkey

A Flutter plugin for Passkey.

Android iOS MacOS Web Linux Windows
V V X X X X

Usage

To use this plugin, add flutter_passkey as a dependency in your pubspec.yaml file.

Example

final flutterPasskeyPlugin = FlutterPasskey();

final isPasskeySupported = await flutterPasskeyPlugin.isSupported();

// Obtain creationOptions from the server
final creationOptions = getCredentialCreationOptions();
flutterPasskeyPlugin.createCredential(creationOptions).then((response) {
    // Send response to the server
}).catchError((error) {
    // Handle error
});

// Obtain requestOptions from the server
final requestOptions = getCredentialRequestOptions();
flutterPasskeyPlugin.getCredential(requestOptions).then((response) {
    // Send response to the server
}).catchError((error) {
    // Handle error
});

See the example app for more complex examples.

Learn more

About

A Flutter plugin for Passkey.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 43.5%
  • C++ 15.9%
  • Dart 14.0%
  • CMake 13.6%
  • Kotlin 7.4%
  • Ruby 3.4%
  • Other 2.2%