From 9fc73eee9f12da59f4bb172a165a22e7caf4e1c8 Mon Sep 17 00:00:00 2001 From: Emily Stark Date: Wed, 4 Dec 2013 22:29:27 -0800 Subject: [PATCH] Update comment to reflect the things a login method must actually do --- packages/accounts-base/accounts_client.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/accounts-base/accounts_client.js b/packages/accounts-base/accounts_client.js index 579ec34474..b2e7e05dd1 100644 --- a/packages/accounts-base/accounts_client.js +++ b/packages/accounts-base/accounts_client.js @@ -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