Skip to content

Commit c264fe5

Browse files
make exception rootViewControllerNotFound
1 parent 4c4f78e commit c264fe5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

FirebaseSwiftUI/FirebaseGoogleSwiftUI/Sources/Services/GoogleProviderSwift.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let kGoogleUserInfoProfileScope = "https://www.googleapis.com/auth/userinfo.prof
77
let kDefaultScopes = [kGoogleUserInfoEmailScope, kGoogleUserInfoProfileScope]
88

99
public enum GoogleProviderError: Error {
10-
case rootViewController(String)
10+
case rootViewControllerNotFound(String)
1111
case authenticationToken(String)
1212
case user(String)
1313
}
@@ -28,7 +28,7 @@ public class GoogleProviderSwift: @preconcurrency GoogleProviderProtocol {
2828
guard let presentingViewController = await (UIApplication.shared.connectedScenes
2929
.first as? UIWindowScene)?.windows.first?.rootViewController else {
3030
throw GoogleProviderError
31-
.rootViewController("Root View controller is not available to present Google sign-in View.")
31+
.rootViewControllerNotFound("Root View controller is not available to present Google sign-in View.")
3232
}
3333

3434
let config = GIDConfiguration(clientID: clientID)

0 commit comments

Comments
 (0)