Introduction
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
Solution
- Open your macOs folder in Xcode
- In runner, under targets select
+ capability
tab - select
keychain sharing
complete the instructions given in Xcode - 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)