This is a Flutter application for sending and verifying one-time passwords (OTPs) via SMS using the Excite SMS API. You can use this mobile app to generate OTPs, send them to recipients, and verify OTPs for authentication.
- Generate and send OTPs via SMS using the Excite SMS API.
- User-friendly interface with recipient input field and OTP verification.
- Confirmation message for successful or failed OTP generation and verification.
- Flutter for building the mobile app.
- HTTP package for making API requests.
- Provider for state management.
To get started with this application, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/ExciteSMS/otp-sms-flutter.git cd otp-sms-flutter -
Open the project in your favorite Flutter development environment.
-
Replace
'YOUR_API_KEY_HERE'in thelib/main.dartfile with your actual Excite SMS API key. -
Run the Flutter app on a simulator or connected device:
flutter run
-
Use the app to generate, send, and verify OTPs using the Excite SMS API.
- Enter the recipient's phone number and tap the "Send OTP" button to generate and send an OTP via SMS.
- Enter the OTP received via SMS into the "Enter OTP" field and tap the "Verify OTP" button to verify.
- A confirmation message will indicate whether OTP generation and verification were successful.
To use this application, you need to configure the Excite SMS API credentials by replacing 'YOUR_API_KEY_HERE' with your actual API key in the lib/main.dart file.
This project is licensed under the MIT License. See the LICENSE file for details.
- Excite SMS for providing the SMS gateway API.
Secure your application with OTPs using the Excite SMS OTP Flutter app!
