Flutter SDK Integration Guide

Overview

  1. Video

Video

Coming Soon!

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