kishikawakatsumi / UICKeyChainStore

UICKeyChainStore is a simple wrapper for Keychain on iOS, watchOS, tvOS and macOS. Makes using Keychain APIs as easy as NSUserDefaults.
http://kishikawakatsumi.com
MIT License
3.08k stars 383 forks source link

Unable to access password (access-token) in another app #151

Closed muzammil-triffort closed 7 years ago

muzammil-triffort commented 7 years ago

Unable to access password (access-token) in another app when second app is launched first time. Here is my flow:

  1. I install my App1 and login inside app. Add access-token for my service and i close this app.
  2. Then i install App2 and open the app. UICKeyChainStore return the access-token as NIL.

It only works when: After installing App2 I open App1 again and close it then open App2. This time it return the access-token of my defined service.

Please let me know how to fix this? I only want to auto login in new apps when a previous app having same keychain access group and logged in.

muzammil-triffort commented 7 years ago

I got the issue in my code. closing this.