Node.Js使用Stormpath进行身份验证

时间:2016-03-01 17:08:52

标签: javascript node.js stormpath stormpath-express

 var auth = {
  username: 'user',
  password: 'password'
};

application.authenticateAccount(auth, function(err, result) {

  result.getAccount(function(err, account) {
    console.log('Account:', account);
  });
};
  

我收到错误 TypeError:无法读取未定义的属性'getAccount'

1 个答案:

答案 0 :(得分:1)

authenticateAccount回调中,是否有错误? console.log(err)看起来像什么?