#481: Users are not being logged out
Отредактирована: сегодняSymptoms
The system remains open and logged in, even after locking the screen in the OS on the employee's PC
Solution
1 - Add or change the parameters in /root/swarmica/.env:
ACCESS_TOKEN_TTL_SECONDS=1800
REFRESH_TOKEN_TTL_SECONDS=3600
ROTATE_REFRESH_TOKENS=1
With the settings above, the access token will be half an hour, and the refresh token will be an hour.
If the refresh token is not used within an hour, it will expire and logout will occur.
2 - Restart the services:
docker compose down && docker compose up -d
When restarting, Swarmica will be unavailable for a couple of minutes.