# 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 <developers@human-id.org> with any questions you may have.

## Overview

1. [Requirements](#requirements)
2. [Installation](#installation)
3. [Credentials Access](#credentials-access)
4. [How To Use/Configuration](#how-to-use-configuration)
5. [Sample Code](#sample-code-here)

## Requirements&#x20;

* Dart
* Flutter SDK

Please update to the latest stable SDK!

## Steps

1. [Installation](#1-installation)
2. [Credentials Access](#2-credentials-access)
3. [How To Use/Configuration](#3-how-to-use-configuration)

### 1. Installation

**pubspec.yaml**

```
dependencies:
  humanid_flutter_sdk: ^0.0.4
```

### 2. Credentials Access

Get the appId and appSecret through the [App Registration Form](https://developers.human-id.org/home/).

### 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](https://github.com/human-internet/humanid-fluttersdk/tree/master/example)
