flutter_pua_auth 1.0.1 copy "flutter_pua_auth: ^1.0.1" to clipboard
flutter_pua_auth: ^1.0.1 copied to clipboard

Flutter plugin for The Whisper Company PUA SDK integration with biometric authentication and continuous face monitoring

example/lib/main.dart

import 'package:flutter/material.dart';
// Import platform packages to trigger auto-registration
// ignore: unused_import
import 'package:flutter_pua_auth_android/flutter_pua_auth_android.dart';
// ignore: unused_import
import 'package:flutter_pua_auth_ios/flutter_pua_auth_ios.dart';
import 'package:flutter_pua_auth/flutter_pua_auth.dart';
import 'app.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  
  // Configure PUA API key - Replace with your actual API key
  // Get your API key from: https://gitlab.com/the_whisper_company/twc.pua
  const String puaApiKey = "replace-with-your-PUA-api-key";
  
  try {
    await FlutterPuaAuth.instance.configureApiKey(puaApiKey);
    print('✅ PUA API key configured successfully');
  } catch (e) {
    print('⚠️ Error configuring PUA API key: $e');
    // Continue anyway - the app will show an error if API key is required
  }
  
  runApp(const PuaAuthDemoApp());
}
0
likes
130
points
67
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for The Whisper Company PUA SDK integration with biometric authentication and continuous face monitoring

Homepage
Repository (GitLab)

Documentation

API reference

License

unknown (license)

Dependencies

flutter, flutter_pua_auth_android, flutter_pua_auth_ios, plugin_platform_interface

More

Packages that depend on flutter_pua_auth