user.fetch().then(function(fetchedUser){ var name = fetchedUser.getUsername(); }, function(error){
Here the problem is the Parse.User.current() method will return a user object if the user is logged in or registered successfully, but this object will not have all the details of the user object. To get all the properties of an object, you must call the fetch method on the Object user.
Triode
source share