File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ public struct AccountMergeConflictContext: LocalizedError {
1717public enum AuthServiceError : LocalizedError {
1818 case noCurrentUser
1919 case invalidEmailLink( String )
20- case notConfiguredProvider( String )
2120 case clientIdNotFound( String )
2221 case notConfiguredActionCodeSettings( String )
2322 case reauthenticationRequired( String )
@@ -31,8 +30,6 @@ public enum AuthServiceError: LocalizedError {
3130 return " No user is currently signed in. "
3231 case let . invalidEmailLink( description) :
3332 return description
34- case let . notConfiguredProvider( description) :
35- return description
3633 case let . clientIdNotFound( description) :
3734 return description
3835 case let . notConfiguredActionCodeSettings( description) :
Original file line number Diff line number Diff line change @@ -120,8 +120,7 @@ public final class AuthService {
120120 private var googleProvider : any GoogleProviderAuthUIProtocol {
121121 get throws {
122122 guard let provider = unsafeGoogleProvider else {
123- throw AuthServiceError
124- . notConfiguredProvider ( " `GoogleProviderSwift` has not been configured " )
123+ fatalError ( " `GoogleProviderAuthUI` has not been configured " )
125124 }
126125 return provider
127126 }
@@ -130,8 +129,7 @@ public final class AuthService {
130129 private var facebookProvider : any FacebookProviderAuthUIProtocol {
131130 get throws {
132131 guard let provider = unsafeFacebookProvider else {
133- throw AuthServiceError
134- . notConfiguredProvider ( " `FacebookProviderAuthUI` has not been configured " )
132+ fatalError ( " `FacebookProviderAuthUI` has not been configured " )
135133 }
136134 return provider
137135 }
@@ -140,8 +138,7 @@ public final class AuthService {
140138 private var phoneAuthProvider : any PhoneAuthProviderAuthUIProtocol {
141139 get throws {
142140 guard let provider = unsafePhoneAuthProvider else {
143- throw AuthServiceError
144- . notConfiguredProvider ( " `PhoneAuthProviderSwift` has not been configured " )
141+ fatalError ( " `PhoneAuthProviderAuthUI` has not been configured " )
145142 }
146143 return provider
147144 }
You can’t perform that action at this time.
0 commit comments