Upcoming: API Key Sunset

We are using the HubSpot APIs and API keys within HubSpot’s serverless functions. How can we adapt to this change for this scenario?
How can we implement a token-refresh, if there’s no persistence in the serverless environment?