remit2any_auth 0.1.9 copy "remit2any_auth: ^0.1.9" to clipboard
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: Added redirectToLogin parameter to automatically redirect to login page after logout and store the tokens
  • Enhanced getAccessTokenWithAuth() method: Added forceWebView parameter to skip refresh token logic and force WebView sign-in

Changed #

  • API Enhancement: Both signOut() and getAccessTokenWithAuth() 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 flow
    • forceWebView: true skips token refresh and goes directly to WebView authentication
  • Code Organization: Centralized authentication handling through exported WebViewAuthHandler
0
likes
95
points
350
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for Remit2Any authentication.

Documentation

API reference

License

unknown (license)

Dependencies

flutter, flutter_inappwebview, flutter_secure_storage, http, path_provider, permission_handler, url_launcher

More

Packages that depend on remit2any_auth