Struggling with OAuth token expiration in your Go clients?
I recently ran into this challenge while integrating with ArgoCD, and I decided to tackle it with a simple and reusable solution, making token renewal automatic and transparent for the client.
In this post, I walk through the problem, explore common approaches, and show a clean way to handle it while keeping your code flexible and maintainable.
If you're working with APIs that require OAuth, this might save you some headaches.
Check it out and let me know what you think!
https://medium.com/@juanmabareamartinez/designing-a-resilient-go-client-for-argocd-with-auto-token-renewal-d990e9d5480d
Top comments (0)