Faceki Biometric Blaze

Faceki Biometric Blaze is a Flutter package for integrating biometric authentication into your Flutter applications.

Features

  • Biometric Registartion With Liveness Check
  • Biometric Login With Liveness Check

Getting Started

To use this package, add faceki_biometric_blaze as a dependency in your pubspec.yaml file.

dependencies:
  faceki_biometric_blaze: ^1.0.0

Usage

Import the package in your Dart code:

import 'package:faceki_biometric_blaze/faceki_biometric_blaze.dart';

Example

Here is a simple example of how to use the package:

import 'package:flutter/material.dart';
import 'package:faceki_biometric_blaze/faceki_biometric_blaze.dart';

void main() {
  runApp(MyApp());
}

launchLogin(){
  // Generate Token From API
var token = ""; // write a code for token from your backend

// Initiate the SDK

  Faceki_Biometric_Blaze_SDK().launchEKYCFlow(context, token, "LOGIN",
        (value) {
      print(value);
      var face_id = value['result']['face_id'];
      _showToast("Welcome $face_id");
    }, "custom_identity");
    
}

launchRegister(){
  // Generate Token From API
var token = ""; // write a code for token from your backend

// Initiate the SDK

  Faceki_Biometric_Blaze_SDK().launchEKYCFlow(context, token, "REGISTER",
        (value) {
      print(value);
      var face_id = value['result']['face_id'];
      _showToast("Welcome $face_id");
    }, "custom_identity");
    
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Faceki Biometric Blaze Example'),
        ),
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              launchLogin()
            },
            child: Text('Authenticate'),
          ),
        ),
      ),
    );
  }
}