Background:
I\'m using Firebase for my apps login. I am using the login via email address functionality. The error started after starting to use the n
I found this issue in Firebase's release notes:
Authentication state is shared between different apps when running on the iOS Simulator: Description: when running two or more applications that use Firebase Authentication on the same iOS simulator, there is a issue with the iOS keychain that causes the authentication state to be shared across the different applications. This means that if you sign in to an app, and later open a second app, you may find a user to be signed in into it. Workaround: either don't use two different applications with Authentication on the same simulator instance, or manually sign out from the applications between tests.
Not sure if it's been fixed yet, but it seems to describe my situation when encountering the issue.
Try turning on the Keychain Sharing in Capabilities of your projects' target. that worked for me. Keychain Sharing