Missing Password in Keychain

Hi everybody,  I’ve got a question about the iOS Keychain. After I updated my iPhone from iOS 14.x to iOS 15.x, I observed the following behavior: My app’s password is stored in the keychain. When I switch to my widget, the app switches to background and my widget is displayed. The widget then attempts a login at the app. It tries to read the password from the keychain by using the call “SecItemCopyMatching”. But, this call returns the status -25300, so I do not get a password. This does not occur with iOS 14.x. When I test this in the simulator, everything works.  Has anyone observed something like this and could help me?

Missing Password in Keychain
 
 
Q