Session gets closed unexpectedly in Streamlit cloud

Hi,
I have an app deployed in the cloud. This is the app.
It requires a log in, being that page the initial one. After being logged in for less than 5 minutes, the app takes me back to the log in page. This behaviour just happens in the cloud. Locally, I do not experience it.

Actually, I have observed that this behaviour happens just when I am using the sharable link. When I use my personal space in the cloud I can stay as much time as I want.

The error that I get is the following one:

Can you help me, please?