Simple OAuth2 API authentication with token caching and refetching in an Azure Function using IdentityModel and Refit
Connecting to an HTTP API is tricky enough, let alone handling the authentication to it. Many modern APIs allow you to provide an authentication key in the h...