We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c26eebb commit 2230f1cCopy full SHA for 2230f1c
AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Task/Protocols/AmplifyAuthTask.swift
@@ -34,6 +34,7 @@ extension AmplifyAuthTask where Self: DefaultLogger {
34
get async throws {
35
do {
36
log.info("Starting execution for \(eventName)")
37
+
38
#if os(iOS) && canImport(UIKit)
39
guard await UIApplication.shared.isProtectedDataAvailable else {
40
throw AuthError.configuration(
@@ -42,6 +43,7 @@ extension AmplifyAuthTask where Self: DefaultLogger {
42
43
AWSCognitoAuthError.protectedDataUnavailable)
44
}
45
#endif
46
47
let valueReturned = try await execute()
48
log.info("Successfully completed execution for \(eventName) with result:\n\(valueReturned)")
49
dispatch(result: .success(valueReturned))
0 commit comments