Fix authentication to comply with Google's new way