Last updated:
0 purchases
loui flutter
flutter_loui #
Package for Loui implementation on flutter.
Loui is a platform for generating Time-based One-Time Password (TOTP) codes in an easy and secure way. Users can register on the Loui website (https://console.loui.io/) and configure everything related to their TOTP code. Loui offers a simple and intuitive interface to configure the code's duration, number of digits, etc.
In addition to the web platform, Loui also offers a library called loui_flutter for developers who want to integrate TOTP code generation functionality into their mobile applications in flutter. The library is specifically designed for Flutter and offers a visual component called LouiTotp that allows users to view their TOTP code in their app.
To use the loui_flutter library, developers only need to import it into their Flutter project and pass it some parameters that Loui returns to them after configuring their TOTP code on the web platform. With loui_flutter, developers can generate TOTP codes securely and reliably in their mobile applications without having to worry about the technical complexity of their implementation.
🚀 Support iOS and Android!
Usage #
This component only needs 2 parameters: authConfig and activateDeviceConfig. You can check more information about this parameters below.
//...
AuthConfig authConfig = AuthConfig();
ActivateDeviceConfig activateDeviceConfig = ActivateDeviceConfig();
//...
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
TotpLoui(
activateDeviceConfig: activateDeviceConfig,
authConfig: authConfig)
],
),
),
);
}
copied to clipboard
Props #
TotpLoui #
Prop Name
Type
Default
Description
authConfig
authProps
required
Auth configuration for loui
activateDeviceConfig
activateDeviceProps
required
Device auth configuration for loui
AuthProps #
Prop Name
Type
Default
Description
client_id
string
required
Name defined for the application
client_secret
string
required
Generated secret token for the application
scope
string
required
Name of the service account
username
string
required
User name of registration on Loui
password
string
required
Password of registration on Loui
grant_type
string
password
Grant type, normally ‘password’
ActivateDeviceProps #
Prop Name
Type
Default
Description
uid
string
-
UID of user. Optional
username
string
required
User name of the current user
countryCode
string
required
Telephone country code of the user. For example, +57 for Colombia
phoneNumber
string
required
User's phone number
email
string
required
User email
reference1
string
-
First user reference
reference2
string
-
Second user reference
reference3
string
-
Third user reference
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.