When my iPhone is locked and I have notifications, certain ones allow me to touch the notification and it unlocks the iPhone without requiring me to authenticate by entering a passcode or Touch ID. Twitter specifically is the one that it happens with. Other notifications prompt me to authenticate via passcode or Touch ID.
I see this as a security threat. How can I disable this, so my iPhone always requires a passcode or Touch ID to unlock?
I am using an iPhone 8 running iOS 12.2.