How to listen to credential changes


In these docs it says that the token is automatically refreshed:

Retrieve stored credentials

The credentials will be automatically renewed using the refresh token, if the access token has expired. This method is thread safe.

const credentials = await auth0.credentialsManager.getCredentials();

How do we know when this happens so we can update our client stores (redux/zustand etc) with the most recent token?