How to rotate OAuth client secret for Web Messenger without dropping active sessions?

trying to update the client secret for our web messenger integration. we’re using a simple node script to get the token before the page loads. right now if i update the secret in the portal, all active chats get kicked out because the old token becomes invalid. is there a way to have both secrets active for a minute or two so we can switch without downtime? my current token fetch looks like this:

const token = await axios.post('https://api.mypurecloud.com/oauth/token', {
 grant_type: 'client_credentials',
 client_id: process.env.GC_CLIENT_ID,
 client_secret: process.env.GC_CLIENT_SECRET
});

any idea how to handle the rotation step by step?