image-builder
image-builder copied to clipboard
internal/composer: reseek after lazy token refresh
I do not like how this is copy-pasted around, I would suggest to create a dedicated type called LazyToken that would actually do the refreshing and it could also track expiration easily too, the information about expiration comes in the response. Then each client could create its own instance of this type to cleanly do lazy-initialized tokens when needed.
I am fine keeping status-quo tho, feel free to rebase I merged your big PR. Thanks.
This PR is stale because it has been open 30 days with no activity. Remove "Stale" label or comment or this will be closed in 7 days.
Anyway, this was a draft, feel free to rebase this is a correct fix.