Automatic logout after shutdown

hello at all,

when I shutdown mit iPad or iPhone every time I’m logged out from my Nextcloud-accounts. How can it be and especially, how can I fix it?
This is very annoying because over the night I turn my iPhone off and over the day, if I don’t need the iPad it is turned off, too

thx for your help