Tesla: intercept 401 and refresh token on demand – Elixir Forum

I use Tesla to access this third party API and it works very well except for when auth token expires. Then API returns 401, I need to refresh token ( …
View full source