smart_auth_plus library

SmartAuthPlus - Flutter plugin for Android SMS/Phone authentication APIs.

Features:

  • SMS User Consent: prompt user to approve reading a specific SMS.
  • SMS Retriever: automatically retrieve OTP SMS without READ_SMS permission.
  • Phone Number Hint: show system picker to select a phone number.
  • App Signature: generate the 11-char hash for your SMS template.

All features use a Stream-based API so you can react to results, errors, and cancellations without callbacks or futures.

Classes

PhoneHintCanceled
The user dismissed the hint picker without selecting a number.
PhoneHintError
An error occurred while requesting the phone number hint.
PhoneHintResult
Represents the outcome of a Phone Number Hint request.
PhoneHintSelected
The user selected a phone number from the hint picker.
SmartAuthPlus
SmartAuthPlus gives you a clean, stream-based interface to Android's SMS User Consent, SMS Retriever, Phone Number Hint, and App Signature APIs.
SmsCanceled
The user dismissed the consent dialog, or the retriever timed out.
SmsError
An error occurred while setting up or waiting for the SMS.
SmsReceived
The SMS was successfully retrieved.
SmsResult
Represents the outcome of an SMS retrieval attempt (User Consent or Retriever).

Exceptions / Errors

AuthException
Thrown when a plugin method call fails at the platform-channel layer (e.g. Google Play Services not available, activity missing, etc.).