otpless_flutter_web 1.0.8 copy "otpless_flutter_web: ^1.0.8" to clipboard
otpless_flutter_web: ^1.0.8 copied to clipboard

A versatile Flutter web package eliminating the need for OTP during user authentication. Simplify secure login workflows effortlessly.

This package supports the otpless_flutter web support. For more info please Visit OTPless

otpless_flutter_web #

Installation #

In your index.html file, add the following code:

<div id="otpless-login-page">
  <script src="https://otpless.com/flutter.js"></script>
</div>

In your pubspec.yaml file, add the following dependency:

dependencies:
  otpless_flutter_web: ^1.0.8

In your SignIn/SignUp dart file, add the following code:

import 'package:otpless_flutter_web/otpless_flutter_web.dart';
final _otplessFlutterPlugin = Otpless();

void otplessLoginPage()async{
  await _otplessFlutterPlugin.openLoginPage().then((value){
    final data = value.toString();
  });
}

//In initState() add the given code
if(_otplessFlutterPlugin.getCodeForParams() != null){
  otplessLoginPage();
}

//To you on tap function
onTap : (){
  otplessLoginPage();
}
3
likes
0
points
64
downloads

Publisher

unverified uploader

Weekly Downloads

A versatile Flutter web package eliminating the need for OTP during user authentication. Simplify secure login workflows effortlessly.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on otpless_flutter_web