Skip to content

Commit aefce2c

Browse files
authored
Fix API auth for REST (#925)
1 parent 8836d9b commit aefce2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/amplify_api/lib/method_channel_api.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@ class AmplifyAPIMethodChannel extends AmplifyAPI {
278278
inputsMap['restOptions'] = restOptions.serializeAsMap();
279279
inputsMap['cancelToken'] = cancelToken;
280280

281+
// Refresh auth tokens
282+
await _authProviderRefresher();
283+
281284
// Attempt switch to proper async
282285
try {
283286
final Map<String, dynamic>? data = (await (_channel

0 commit comments

Comments
 (0)