Skip to content

Commit c58f821

Browse files
clean up
1 parent 16131d6 commit c58f821

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Services/AuthService.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ public extension AuthService {
232232

233233
do {
234234
try await auth.createUser(withEmail: email, password: password)
235-
let credential = EmailAuthProvider.credential(withEmail: email, password: password)
236235
updateAuthenticationState()
237236
} catch {
238237
authenticationState = .unauthenticated

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/EmailAuthView.swift

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,7 @@ public struct EmailAuthView {
3636
private func signInWithEmailPassword() async {
3737
do {
3838
try await authService.signIn(withEmail: email, password: password)
39-
} catch let error as NSError {
40-
switch AuthErrorCode(rawValue: error.code) {
41-
// case .credentialAlreadyInUse:
42-
default:
43-
// TODO: - how are we handling this?
44-
if let updatedCredential = error
45-
.userInfo[AuthErrorUserInfoUpdatedCredentialKey] as? AuthCredential {
46-
// user ought to merge accounts on their backend here
47-
}
48-
}
49-
}
39+
} catch {}
5040
}
5141

5242
private func createUserWithEmailPassword() async {

0 commit comments

Comments
 (0)