Flutter SDK Integration Guide
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.
- 1.
- 2.
- 5.
- Dart
- Flutter SDK
Please update to the latest stable SDK!
pubspec.yaml
dependencies:
humanid_flutter_sdk: ^0.0.4
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;
});
}),
Last modified 1yr ago