parameterize token refresh window