scotch-io/mean-machine-code

TypeError: Auth.getUser(...).success is not a function

Opened this issue · 1 comments

Getting the same error

Browser:
TypeError: Auth.getUser(...).success is not a function

However, I have in mainCtrl:
Auth.getUser() .then(function(data) { vm.user = data.data; }); });

This file uses authService.js so I looked in there. But, everything in the authService.js file is also switched to ".then()" not ".success()" so I don't know where it lies.