File tree Expand file tree Collapse file tree
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments