Skip to content

Commit 2230f1c

Browse files
authored
Update AmplifyAuthTask.swift
1 parent c26eebb commit 2230f1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Task/Protocols/AmplifyAuthTask.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ extension AmplifyAuthTask where Self: DefaultLogger {
3434
get async throws {
3535
do {
3636
log.info("Starting execution for \(eventName)")
37+
3738
#if os(iOS) && canImport(UIKit)
3839
guard await UIApplication.shared.isProtectedDataAvailable else {
3940
throw AuthError.configuration(
@@ -42,6 +43,7 @@ extension AmplifyAuthTask where Self: DefaultLogger {
4243
AWSCognitoAuthError.protectedDataUnavailable)
4344
}
4445
#endif
46+
4547
let valueReturned = try await execute()
4648
log.info("Successfully completed execution for \(eventName) with result:\n\(valueReturned)")
4749
dispatch(result: .success(valueReturned))

0 commit comments

Comments
 (0)