smssak 1.0.1 copy "smssak: ^1.0.1" to clipboard
smssak: ^1.0.1 copied to clipboard

A Dart package for sending and verifying OTPs (One-Time Passwords) via SMS. Easily integrate OTP functionality into your Flutter apps.

example/smssak_example.dart

import 'package:smssak/smssak.dart';

void main() {
  var otpService = OTPService();
  // Send OTP
  var sendReponse = otpService.sendOtp(
      country: "dz", projectId: "project_id", phone: "phone", key: "api_key");
  print('response: ${sendReponse.toString()}');

  // Verify OTP
  var verifyReponse = otpService.verifyOtp(
      country: "dz",
      projectId: "project_id",
      phone: "phone",
      otp: "otp",
      key: "api_key");
  print('response: ${verifyReponse.toString()}');
}
0
likes
140
points
18
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Dart package for sending and verifying OTPs (One-Time Passwords) via SMS. Easily integrate OTP functionality into your Flutter apps.

License

MIT (license)

Dependencies

http

More

Packages that depend on smssak