diff --git a/packages/amplify_api/lib/method_channel_api.dart b/packages/amplify_api/lib/method_channel_api.dart index e6785c7179..f6f4ea2a00 100644 --- a/packages/amplify_api/lib/method_channel_api.dart +++ b/packages/amplify_api/lib/method_channel_api.dart @@ -278,6 +278,9 @@ class AmplifyAPIMethodChannel extends AmplifyAPI { inputsMap['restOptions'] = restOptions.serializeAsMap(); inputsMap['cancelToken'] = cancelToken; + // Refresh auth tokens + await _authProviderRefresher(); + // Attempt switch to proper async try { final Map? data = (await (_channel