edit: Forgot to mention, this issue only affects the desktop client! When using the web client with my browser, I am still logged in.
I have a nextcloud instance that is local to my network, and I don’t trust my IT skills enough to secure my server in the internet, so it only works when I’m at home (or if I use something like Tailscale). I am content with leaving it that way, since I mostly self-host to back up my files, I’m not using anything like Jellyfin or Navidrome at the moment.
Everything seems to work fine, Nextcloud, Immich, my calendar, etc. all sync fine. However, it seems that Nextcloud doesn’t remember my laptop, and logs me out whenever I leave and come back to the network, meaning I pretty much have to login every day. Why is this? How do I get Nextcloud to remember my laptop?


It’s the desktop client, should have mentioned that. My browser remembers my device.
In that case, something is invalidating the login. Are you sure that it is happening due to leaving your LAN, and not just coinciding with that?
Does restarting the laptop log you out, or temporarily disconnecting from the internet? Could you test by switching to a wifi hotspot on your phone, and switching back, for example?
The client stores your session token in the OS credentials manager (kwallet for linux kde, for example) and the issue can lie there, as well.
I will try restarting and temporarily disconnect and see if the issue pops up. Probably should have done that before…