File tree Expand file tree Collapse file tree
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,9 +71,6 @@ extension AuthPickerView: View {
7171 . onChange ( of: authService. authenticationState) { _, newState in
7272 if newState == . authenticated {
7373 attemptAutoLinkPendingCredential ( )
74- } else if newState == . unauthenticated {
75- // Clear pending credential if user signs out
76- pendingCredentialForLinking = nil
7774 }
7875 }
7976 }
@@ -92,7 +89,7 @@ extension AuthPickerView: View {
9289
9390 if shouldStoreCredential {
9491 // Extract the credential from the error and store it
95- let credential = nsError. userInfo [ " FIRAuthUpdatedCredentialKey " ] as? AuthCredential
92+ let credential = nsError. userInfo [ AuthErrorUserInfoUpdatedCredentialKey ] as? AuthCredential
9693 pendingCredentialForLinking = credential
9794 // Error still propagates to user via normal error modal
9895 }
You can’t perform that action at this time.
0 commit comments