File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,6 @@ public extension AuthService {
232
232
233
233
do {
234
234
try await auth. createUser ( withEmail: email, password: password)
235
- let credential = EmailAuthProvider . credential ( withEmail: email, password: password)
236
235
updateAuthenticationState ( )
237
236
} catch {
238
237
authenticationState = . unauthenticated
Original file line number Diff line number Diff line change @@ -36,17 +36,7 @@ public struct EmailAuthView {
36
36
private func signInWithEmailPassword( ) async {
37
37
do {
38
38
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 { }
50
40
}
51
41
52
42
private func createUserWithEmailPassword( ) async {
You can’t perform that action at this time.
0 commit comments