Skip to content

Commit 6fe345a

Browse files
chore: rename according to API doc
1 parent f2609f0 commit 6fe345a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Services/AuthService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public final class AuthService {
156156
)
157157
}
158158

159-
public func signInWithProvider(_ provider: AuthProviderSwift) async throws {
159+
public func signIn(_ provider: AuthProviderSwift) async throws {
160160
let credential = try await provider.createAuthCredential()
161161
try await signIn(credentials: credential)
162162
}

FirebaseSwiftUI/FirebaseFacebookSwiftUI/Sources/Views/SignInWithFacebookButton.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ extension SignInWithFacebookButton: View {
6666
Task {
6767
do {
6868
let facebookProvider = FacebookProviderAuthUI(isLimitedLogin: limitedLogin)
69-
try await authService.signInWithProvider(facebookProvider)
69+
try await authService.signIn(facebookProvider)
7070
} catch {
7171
switch error {
7272
case FacebookProviderError.signInCancelled:

FirebaseSwiftUI/FirebaseGoogleSwiftUI/Sources/Views/SignInWithGoogleButton.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extension SignInWithGoogleButton: View {
3939
public var body: some View {
4040
GoogleSignInButton(viewModel: customViewModel) {
4141
Task {
42-
try await authService.signInWithProvider(googleProvider)
42+
try await authService.signIn(googleProvider)
4343
}
4444
}
4545
}

FirebaseSwiftUI/FirebasePhoneAuthSwiftUI/Sources/Views/PhoneAuthView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ extension PhoneAuthView: View {
8787
verificationID: verificationID,
8888
verificationCode: verificationCode
8989
)
90-
try await authService.signInWithProvider(phoneProvider)
90+
try await authService.signIn(phoneProvider)
9191
} catch {
9292
errorMessage = authService.string.localizedErrorMessage(for: error)
9393
}

0 commit comments

Comments
 (0)