Improvements to automatic OAuth2 token updates.