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 9e3219c commit 8a9019bCopy full SHA for 8a9019b
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Services/AuthService.swift
@@ -132,9 +132,14 @@ public final class AuthService {
132
}
133
134
public func signIn(_ provider: AuthProviderSwift) async throws -> SignInOutcome {
135
- let credential = try await provider.createAuthCredential()
136
- let result = try await signIn(credentials: credential)
137
- return result
+ do {
+ let credential = try await provider.createAuthCredential()
+ let result = try await signIn(credentials: credential)
138
+ return result
139
+ } catch {
140
+ updateError(message: string.localizedErrorMessage(for: error))
141
+ throw error
142
+ }
143
144
145
// MARK: - End Provider APIs
0 commit comments