Is there a way to have a security passcode when you open the app to prevent others from accessing without having to logout?
If you mean for iOS then I think there’s a jailbreak tweak that will allow you to set passcodes per app. But other than that not at the moment.
Android I have no input unfortunately.
And many more, of course.