rauth_flutter 2.0.41
rauth_flutter: ^2.0.41 copied to clipboard
RAuth v2 Flutter SDK - Cross-platform reverse authentication library for WhatsApp, Reverse SMS, OneID, and Passkey. Supports Android, iOS, and Web with dual SIM support, device info auto-detection, HM [...]
Changelog #
2.0.41 #
Added #
- Automatic session persistence: Session token and phone are now automatically saved to SharedPreferences
- Auto-load session on app restart: Session is automatically loaded when
Rauth.instanceis accessed loadSession()public method for explicit session loadingclearSession()now also clears SharedPreferences
Fixed #
- Session token and phone now persist across app restarts
- No need to manually restore session state - handled automatically by the library
2.0.40 #
Changed #
- Removed all debug print statements while preserving all functional code
- Fixed issue where authenticatorData and clientDataJSON validation was removed in 2.0.39
- All functional code identical to working 2.0.38 version
2.0.38 #
Fixed #
- Fixed debug logging to be properly conditional
- Ensured all functional code is identical to working 2.0.35 version
2.0.37 #
Changed #
- Removed all unconditional debug console logging (only print statements removed, no functional code changed)
2.0.35 #
Fixed #
- Ensured compatibility with pub.dev package resolution for web builds
- Fixed conditional import resolution for
dart.library.htmlin published packages
2.0.34 #
Fixed #
- Fixed signChallenge() to use webManager.credentialId instead of _credentialId on Web platform
- Added validation to ensure authenticatorData and clientDataJSON are available before sending approval request
- Improved debug logging for WebAuthn data flow
2.0.33 #
Fixed #
- Fixed WebAuthn signature verification by ensuring authenticatorData and clientDataJSON are properly stored and retrieved
- Improved getter implementation for lastAuthenticatorData and lastClientDataJSON
2.0.31 #
Added #
- Native WebAuthn/Passkey support across all platforms:
- Web: WebAuthn API (all modern browsers)
- iOS 16+: Native Passkeys API (iCloud Keychain sync)
- Android 14+: CredentialManager API (Google Password Manager sync)
- Android 9-13: Fido2ApiClient via Google Play Services
- Automatic passkey registration when requesting approval tokens
- Platform-specific biometric prompts (Face ID, Touch ID, fingerprint, PIN)
- Configurable base URL for local development/testing
Changed #
- Simplified passkey API - developers only need
registerPasskeyWithBiometric()andrequestApprovalTokenWithPasskey() - Removed low-level manual APIs from documentation (internal use only)
- Passkey registration is now automatic if not already registered
- Improved error handling and debug logging for passkey flows
Fixed #
- Android 9-13 passkey registration now properly handles ActivityResult callbacks
- WebAuthn signature verification supports both ES256 and Ed25519 algorithms
- Cross-platform compatibility improvements
2.0.28 #
Added #
- Automatic SMS background sending: If app has
SEND_SMSpermission, SMS is sent directly in background without opening SMS app - Permission check in SMS verification flow - automatically detects if permission is granted
Changed #
- SMS verification now intelligently chooses between background sending (if permission granted) or opening SMS app (if not granted)
- Improved user experience: Apps with SMS permission get seamless background SMS sending like UPI apps
Technical #
- Added
SEND_SMSpermission to AndroidManifest.xml (optional - apps can choose to grant it) - Modified
openSMSplatform channel method to check permission and useSmsManagerfor direct sending when available
2.0.27 #
Changed #
- Removed
navigatorKeyparameter fromRauthConfig- no extra setup needed! - WhatsApp chooser now uses native Android Intent chooser (no Flutter dialog required)
- Simplified API - developers only need to call
Rauth.init()withappIdandappSecret - Zero configuration required - works out of the box
Removed #
navigatorKeyparameter fromRauthConfig- Flutter dialog for WhatsApp selection (replaced with native chooser)
2.0.26 #
Fixed #
- SMS verification now opens default SMS app directly without app selector
- Added
openSMSplatform channel method for Android to bypass app chooser
2.0.25 #
Changed #
- SMS verification now directly opens SMS app (removed in-app dialog)
- SMS app opens with pre-filled phone number and token message
- No app selector shown for SMS - uses default SMS app
2.0.24 #
Fixed #
- Added plugin configuration to pubspec.yaml for proper auto-registration
- Plugin now auto-registers when installed from pub.dev (no manual MainActivity code needed)
2.0.23 #
Added #
startVerification()method to automatically open verification intents/deeplinks- WhatsApp chooser dialog when both regular and business WhatsApp are available
- In-app SMS composer dialog for reverse SMS verification
navigatorKeysupport inRauthConfigfor showing dialogs- Android platform channels for WhatsApp and SMS handling
- Helper methods:
qr,detectedMethod,firstAvailableDeeplinkinSessionInitResponse
Changed #
- Renamed
verifyNow()tostartVerification()for better clarity - Verification flow now handled entirely by library (no manual intent handling needed)
2.0.2 #
Changed #
- README cleanup: removed await verification comments; docs align with fixed interval/timeout
2.0.1 #
Changed #
- Fixed base URL to internal constant (removed baseUrl from config)
- Renamed
pollVerificationtoawaitVerification - Updated README and example accordingly
2.0.0 #
Added #
- RAuth v2 API support
- Multiple login methods: WhatsApp, Reverse SMS, OneID, Passkey
- Passkey registration support
- Approval system for sensitive actions
- Cross-platform device info auto-detection (Android, iOS, Web)
- Automatic public IP detection with fallback
- Background polling for session verification
- Comprehensive error handling with typed exceptions
- Web support with browser detection
Changed #
- API endpoints updated to
/v2/* - Session init response structure changed (dynamic verification links)
- Device info structure enhanced with more fields
- HMAC signing format:
appId + phone + timestamp
Removed #
- v1 API endpoints
- Static WhatsApp link format