loui_flutter 0.0.2+3 copy "loui_flutter: ^0.0.2+3" to clipboard
loui_flutter: ^0.0.2+3 copied to clipboard

loui_flutter is a library for generating TOTP codes, with easy registration and configuration through console.loui.io.

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)
          ],
        ),
      ),
    );
  }

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

2
likes
130
pub points
12%
popularity

Publisher

verified publishervortexbird.com

loui_flutter is a library for generating TOTP codes, with easy registration and configuration through console.loui.io.

Homepage
Repository

Documentation

API reference

License

MIT (LICENSE)

Dependencies

circular_countdown_timer, flutter, http, otp, shared_preferences

More

Packages that depend on loui_flutter