Session sharing issue

Hi there,

I’ve searched for hours but have been unable to find an answer to this.

  • My team and i need to work on an existing external API.
  • We have one account that the entire team needs to use.
  • This one account can generate one valid session at a time.
  • Multiple team members can work on this session at the same time.

The problem however, this session is only valid for 30 minutes and only one team member can refresh this token.
This token is kept as an environment variable as it needs to be shared across the entire team, so automatic persistence is on for everyone.

However, once a new token is generated, the new token is available to everyone as the initial value and not the current value.
This means that everyone will need to copy the initial value again and put it as the current value to continue working.

I’ve searched for this but honestly i only get results on trying to prevent this rather than accomplish it.

What would be the best way to share one sessions across a team without much hassle?