Trying to rotate OAuth client secrets without breaking active sessions. The JS SDK caches the token, so a simple secret swap causes 401s mid-flight. Is there a way to force a refresh with the new secret immediately? I’ve tried calling authClient.getAccessToken() but it seems to stick to the old creds until expiry. Here’s the flow I’m hitting:
const newToken = await platformClient.auth.login({ clientId, clientSecret: newSecret });
It works, but existing requests fail. Any pattern for handling this gracefully?