TokenRefresh is a script that automatically refreshes the user's edit and watch tokens in a certain interval of time.
To change the interval at which the script refreshes the edit token, change the
window.TokenRefreshInterval variable. For example, to change the refresh interval to 6 minutes, use:
window.TokenRefreshInterval = 360000;
Text above can be found here