in our app with direct entitlement, the user gets logged out after a few minutes. How can that be changed?
Is that in the configuration of the entitlement service or in the settings in the AEMM backend somewhere?
see Cache & Connection settings in the Entitlement Services section of the Master settings.
Set up entitlement in AEM Mobile apps