mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Update comment to reflect the things a login method must actually do
This commit is contained in:
@@ -37,9 +37,10 @@ Meteor.user = function () {
|
||||
|
||||
// Call a login method on the server.
|
||||
//
|
||||
// A login method is a method which on success calls `this.setUserId(id)` on
|
||||
// the server and returns an object with fields 'id' (containing the user id)
|
||||
// and 'token' (containing a resume token).
|
||||
// A login method is a method which on success calls `this.setUserId(id)` and
|
||||
// `Accounts._setLoginToken` on the server and returns an object with fields
|
||||
// 'id' (containing the user id), 'token' (containing a resume token), and
|
||||
// optionally `tokenExpires`.
|
||||
//
|
||||
// This function takes care of:
|
||||
// - Updating the Meteor.loggingIn() reactive data source
|
||||
|
||||
Reference in New Issue
Block a user