使用Stormpath的Node.Jsauthentication
var auth = { username: 'user', password: 'password' }; application.authenticateAccount(auth, function(err, result) { result.getAccount(function(err, account) { console.log('Account:', account); }); };
我得到一个错误TypeError:无法读取未定义的属性'getAccount'
在authenticateAccount
callback中,是否有错误? console.log(err)
什么样的?