Refactor User class to use v2 Auth API. Modify composer.json.