It didnt work at all for me until I updated to the latest API const VERSION = '3.2.3'; the $user variable was always empty.