Could not save item to keychain (OSStatus: -25308)

Facing same problem while saving token in keychain.

I have app, where I get token from server in every 30 mint and save it to keychain. But sometime for few users its show:

Could not save item to keychain (OSStatus: -25308)

Error -25308 is errSecInteractionNotAllowed, which typically means that your app tried to do something in the background that’s not supported in the background. The canonical example of this is trying to access a biometric protected item from the background, but there are plenty of other ways to get this.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Could not save item to keychain (OSStatus: -25308)
 
 
Q