DEV Community

Curtly Critchlow
Curtly Critchlow

Posted on

How to fix An error occured when accessing the keychain when authenticating with firebase_auth


In this article we'll discuss the fix for An error occured when accessing the keychain. The NSLocalizedFailureReasonErrorKey field in the NSError.userInfo dictionary will contain more information about the above error

You might see this error when trying to sign in to your flutter app using firebase_auth


  1. Open your macOs folder in Xcode
  2. In runner, under targets select + capability tab
  3. select keychain sharing complete the instructions given in Xcode
  4. restart your project and you will be prompted to enter your keychain password

That's it, You should now be able to authenticate with firebase_auth in your flutter app.

Connect with me

Thank you for reading my post. Feel free to subscribe below or connect with me on LinkedIn and Twitter. You can also buy me a book to show your support.

Top comments (0)