Accounts Multi Server

I have two meteor apps both have the accounts-base packages installed. One of this have the accounts-password package installed.

I want login across this both apps.

I want to do this with accounts multi server:

   var self = this;
var accounts = new AccountsClient({ddpUrl:"http://localhost:3000"})
self.user = new ReactiveVar();


The connection from app2 to app1 works fine, but userId() is null in app b when i loggedin in app a.
What i doing wrong?

Thanks for help

1 Like

I have the same issue… the best solution i’ve found is not using the component at all just like this example

its not clear in the docs if Accounts Multi Server loads everything… or you just have to connect all the data manually. Like calling each property you want of the user… id, toke, etc.