If I understand this correctly, there is local storage for login with the netlify identity widget and a (session) cookie for storing the role.
Session cookie seems to last forever (on mobile devices).
However, the cookie expires after one hour.
After an hour, you are still logged in (log out is displayed as an option), but you cannot access the content anymore, because your role is not stored anymore.
Could you please change the code of the identity widget so that upon expiry of the cookie, the role is checked and you are automatically re-authenticated (if the user is still logged in)?
Thanks in advance!