I’m trying to adapt accounts-base to peculiar SSO service were service demands that user logs in multiple times to grant access to API. I’m also trying to do this from within a package, so I wouldn’t mind wrapping latest acccounts-base and trying to make things like accounts-ui work with it (or other SSO packages).
This is what package.js of accounts-base says:
// Though this "Accounts" symbol is the only official Package export for // the accounts-base package, modules that import accounts-base will // have access to anything added to the exports object of the main // module, including AccountsClient and AccountsServer (those symbols // just won't be automatically imported as "global" variables). api.export('Accounts');
I’m looking to modify accountsServer’s method. Yet AccountsServer is undefined and won’t be imported (since meteor packages don’t do it), even though I have
api.use('accounts-base', ['client', 'server']); I don’t even suppose that overwriting it from import will in fact overwrite base method.