帐号体系(多个server) - xusai2014/marathonAPP GitHub Wiki

From 👍 http://meteor-fan.github.io/meteor-docs-ja/full-1.2.1.html#/full/accountsserver

accounts-base包输出了两个构造函数, `AccountsClient` ,`AccountsServer`,这两个对象用来在客户端和server端创建各自可用的Accounts 对象。

预定义`Accounts`(和Meteor提供方便的方法,像 Meteor.logout一样)是希望解决 Meteor APPs之间大多数的帐号体系逻辑。尽管如此,这两个构造方法可能多次实例化,在不同的帐户server上或者客户端上创建多个独立的连接,或者更复杂的认证场景。

`AccountsClient`和`AccountsServer`类共享一个 Common superclass`AccountsCommon`。AccountsCommon。prototype上定义的方法在server 和 client都可以使用。

可以通过这个错误中理解正确的使用方法 https://forums.meteor.com/t/accountsclient-and-accountsserver/13508/2