Switched to oauth2 library for authentication.