Auth (macOS): Fails to save credentials to Keychain in editor
See original GitHub issueI’m following the authentication instructions from here. When the method auth.SignInWithCustomTokenAsync is called, there will be an error shows in Unity Editor Console with the message SaveUserData: Error -25299 adding [ID].firebase.auth/__FIRAPP_DEFAULT: The specified item already exists in the keychain.
Please give some pieces of advice.
I’m using: Unity editor version: 2017.4.20f2 Firebase Unity SDK version: 6.1.1 Firebase plugins in use (Auth, Database, etc.): Auth, Database, Analytics, Functions, Messaging, RemoteConfig, Storage Additional SDKs you are using (Facebook, AdMob, etc.): Facebook Platform you are using the Unity editor on (Mac, Windows, or Linux): macOS 10.14.5 Platform you are targeting (iOS, Android, and/or desktop): Editor, iOS, Android
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:14 (5 by maintainers)
Hi,
Thanks for reporting the issue. Could you tell me if you are running inside the Unity editor (by pressing the “Play” button) or building a standalone desktop build? Did you recently copy your project, run it from different directories, run it under different versions of Unity, etc?
In any case, it sounds like the location in your keychain where we cache the user credentials on desktop may have gotten into a bad state. If you run Keychain Access on your mac and locate and delete the key you mentioned, it should work again.
If it happens again, I’d definitely be interested to find out how it got into that state so we could reproduce the issue and prevent it from happening in the future.
Same issue on unity 2019.2.0f1. For those stuck. Open Keychain Access, Select category All Items. then search for firebase. Delete the key. You should be good at least until your next unity launch.