Links

Flutter SDK Integration Guide

IMPORTANT

The Flutter SDK is currently being worked on and an updated version will be released shortly. We strongly recommend waiting until the updated version is completed before integration. Please email [email protected] with any questions you may have.

Overview

Requirements

  • Dart
  • Flutter SDK
Please update to the latest stable SDK!

Steps

1. Installation

pubspec.yaml
dependencies:
humanid_flutter_sdk: ^0.0.4

2. Credentials Access

Get the appId and appSecret through the App Registration Form.

3. How To Use/Configuration

Configure HumanId SDK inside a press function
import 'package:humanid_flutter_sdk/ui/human_id_sdk.dart';
import 'package:humanid_flutter_sdk/utils/authorization_arguments.dart';
import 'package:humanid_flutter_sdk/utils/routes.dart';
configureHumanIdSDK(
context: context,
arguments: AuthorizationArguments(
appName: 'YOUR_APP_NAME',
iconUrl: 'YOUR_APP_ICON',
clientId: 'YOUR_CLIENT_ID',
clientSecret: 'YOUR_CLIENT_SECRET',
),
onSuccessLogin: (accessToken) {
setState(() {
token = accessToken;
});
}),

Sample Code Here