Currently, there doesn't appear to be a way to update a token except for recreating a whole new forge instance (which is heavy).
Thus, we are running into timeout issues when trying to use a forge instance that is then used by other code to register many entities.
Would it be possible to have a callback that could be set on forge creation? Forge could then call the callback when it notices that API requests are failing due to expired token, or after checking that a token is expired.
Hello,
Currently, there doesn't appear to be a way to update a token except for recreating a whole new
forge
instance (which is heavy). Thus, we are running into timeout issues when trying to use aforge
instance that is then used by other code to register many entities.Would it be possible to have a callback that could be set on
forge
creation?Forge
could then call the callback when it notices that API requests are failing due to expired token, or after checking that a token is expired.thanks