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:
Template.dashboard.onCreated(function(){
var self = this;
var accounts = new AccountsClient({ddpUrl:"http://localhost:3000"})
self.user = new ReactiveVar();
Tracker.autorun(function(){
console.log(accounts);
console.log(accounts.userId());
})
});
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