Node.Js authentication using Stormpath

86 Views Asked by At
 var auth = {
  username: 'user',
  password: 'password'
};

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

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

I am getting an error TypeError : Cannot read property 'getAccount' of undefined

1

There are 1 best solutions below

4
On

In the authenticateAccount callback, is there an error? What does console.log(err) look like?