diff --git a/packages/amplify_api/ios/Classes/Auth/FlutterAuthProvider.swift b/packages/amplify_api/ios/Classes/Auth/FlutterAuthProvider.swift index de275ed0d5..5e6c8f339b 100644 --- a/packages/amplify_api/ios/Classes/Auth/FlutterAuthProvider.swift +++ b/packages/amplify_api/ios/Classes/Auth/FlutterAuthProvider.swift @@ -12,7 +12,6 @@ * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ - import Foundation import Amplify import AmplifyPlugins @@ -44,7 +43,6 @@ class FlutterAuthProviders: APIAuthProviderFactory { /// A provider which manages token retrieval for its [AWSAuthorizationType]. struct FlutterAuthProvider: AmplifyOIDCAuthProvider, AmplifyFunctionAuthProvider { let type: AWSAuthorizationType - func getLatestAuthToken() -> Result { guard let token = FlutterAuthProviders.getToken(for: type) else { let tokenUnavailable = AuthError.notAuthorized(