Using AccountsClient and loginWithPassword

Hey guys,
didn’t find any answer for this. I’m trying to connect my current Meteor application to another one. I want to use the same accounts for the external application, so I’m using AccountClient to create a connection to the remote server:

 const client = new AccountsClient({ddpUrl:'https://myfirstapp.com'});

But how do I use Meteor.loginWithPassword with this connection? I couldn’t find any information in the docs.