oxidecomputer / third-party-api-clients

A place for keeping all our generated third party API clients.
https://docs.rs/octorust
MIT License
132 stars 55 forks source link

Fix stale token usage #26

Closed augustuswm closed 2 years ago

augustuswm commented 2 years ago

Clients that support token refreshing do not correctly refresh their token when it is first identified as stale. Due to the request being created prior to refreshing the token, the stale token value is being used. This defers request creation until after refresh attempts have been executed..