The current auth implementation makes it nearly impossible to implement transparent token renewal.
I came up with an alternative structure here: https://github.com/sagikazarmark/go-infisical
It allows implementing authentication (and token renewal) in a transparent way using an Authenticator interface.
As a bonus, it doesn't require the client to be mutable (which is not a great practice anyway).
Would you be interested in something like this?
The current auth implementation makes it nearly impossible to implement transparent token renewal.
I came up with an alternative structure here: https://github.com/sagikazarmark/go-infisical
It allows implementing authentication (and token renewal) in a transparent way using an
Authenticatorinterface.As a bonus, it doesn't require the client to be mutable (which is not a great practice anyway).
Would you be interested in something like this?