remit2any_auth 0.1.9
remit2any_auth: ^0.1.9 copied to clipboard
A Flutter package for Remit2Any authentication.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.8 - 2025-09-23 #
Added #
- Enhanced
signOut()
method: AddedredirectToLogin
parameter to automatically redirect to login page after logout and store the tokens - Enhanced
getAccessTokenWithAuth()
method: AddedforceWebView
parameter to skip refresh token logic and force WebView sign-in
Changed #
- API Enhancement: Both
signOut()
andgetAccessTokenWithAuth()
now support additional optional parameters - Improved Developer Experience: More flexible authentication options with new parameters
API Changes #
// Enhanced signOut method with redirectToLogin parameter
Future<void> signOut(BuildContext context, {bool redirectToLogin = false});
// Enhanced getAccessTokenWithAuth method with forceWebView parameter
Future<String?> getAccessTokenWithAuth(BuildContext context, {
String? email,
bool forceWebView = false
});
Technical Details #
- Backward Compatibility: All new parameters are optional with sensible defaults
- Enhanced Functionality:
redirectToLogin: true
enables seamless logout-to-login flowforceWebView: true
skips token refresh and goes directly to WebView authentication
- Code Organization: Centralized authentication handling through exported
WebViewAuthHandler