Browse Source

Merge branch 'v1.1.0' into v1.1.0-iOS

“HeShaoZe” 4 months ago
parent
commit
20a25063d2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/sdk/quicklogin/quick_login_helper.dart

+ 2 - 2
lib/sdk/quicklogin/quick_login_helper.dart

@@ -57,7 +57,7 @@ class QuickLoginHelper {
 
   static void preFetchNumber({
     required void Function(String token) onSuccess,
-    required void Function(String errorMsg) onError,
+    required void Function(String? errorMsg) onError,
   }) async {
     Map<dynamic, dynamic>? map = await quickLoginPlugin.preFetchNumber();
     if (map?['success'] == true) {
@@ -75,7 +75,7 @@ class QuickLoginHelper {
 
   static void onePassLogin({
     required void Function(String ydToken, String accessToken) onSuccess,
-    required void Function(String errorMsg) onError,
+    required void Function(String? errorMsg) onError,
   }) async {
     try {
       await _setUiConfig();