BlueBrain / nexus-forge

Building and Using Knowledge Graphs made easy
https://nexus-forge.readthedocs.io
GNU Lesser General Public License v3.0
38 stars 19 forks source link

way of updating a token #294

Open mgeplf opened 1 year ago

mgeplf commented 1 year ago

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 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.

thanks