question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auth (macOS): Fails to save credentials to Keychain in editor

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jonsimantovcommented, Jun 18, 2019

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.

1reaction
lfg-ryancommented, Aug 29, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If your Mac keeps asking for your keychain password
If your Mac keeps asking for your keychain password · In the Keychain Access app on your Mac, click “login” in the Keychains...
Read more >
How to Resolve Mac OS X Keychain Problems
Click General, then click Reset My Default Keychain. Authenticate with your account login password. Quit Keychain Access. Restart your computer.
Read more >
How to fix Keychain problems on Mac
macOS keeps asking for login Keychain password · Open Keychain by clicking Go > Utilities > Keychain Access · Under Keychains in the...
Read more >
10 Common Keychain Problems on macOS 10.15 and ...
1. Go to “System Preference > iCloud” and then tap the “Options” button next to the Keychain. Note: If you don't see the...
Read more >
The error "Keychain "login" cannot be found to store ..."
Run Keychain Access (found in /Applications/Utilities); click "Keychain Access" in the menu bar at the top and select "Keychain First Aid". Run ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found