Configure Session Timeout
Navigate to Team Settings
Open Settings → Team and scroll down to the Restrict Sessions section.

Set Maximum Session Duration
Under Maximum Session Duration, enter the number of seconds before an idle session expires.
Limit the duration of an idle login session.
Navigate to Team Settings

Set Maximum Session Duration