I can\'t seem to find any good information about how to authenticate a user using Meteor\'s DDP.
Is this possible? If so, what\'s the best way to do it? How can you
A package is now doing the login part adding a loginWithPassowrd method to the DDP connection.
meteor add ongoworks:ddp-login
Then:
// Get the connection
var conn = DDP.connect(Meteor.absoluteUrl());
// Pass the connection to `DDP.loginWithPassword`, which is otherwise similar to
// the core `Meteor.loginWithPassword` method.
DDP.loginWithPassword(conn, {username: 'admin'}, 'admin', function (error) { ... })