This works if an option other than “Immediately” has been set inside WhatsApp Settings -> Account -> Privacy -> Screen Lock, when either “Require Face ID” or “Require Touch ID” has been toggled on depending on the iOS device.