Meteor.loginWithPassword

Client Meteor.loginWithPassword(user, password, [callback]) import { Meteor } from 'meteor/meteor' Source Log the user in with a password. Arguments user Object or String Either a string interpreted as a username or an email; or an object with a single key: email, username or id. Username or email match in a case insensitive manner. password String The user's password. callback Function Optional callback. Called with no arguments on success, or with a single Error argument on

Tracker.afterFlush

Client Tracker.afterFlush(callback) import { Tracker } from 'meteor/tracker' Source Schedules a function to be called during the next flush, or later in the current flush if one is in progress, after all invalidated computations have been rerun. The function will be run once and not on subsequent flushes unless afterFlush is called again. Arguments callback Function A function to call at flush time.

Template.parentData

Client Template.parentData([numLevels]) import { Template } from 'meteor/templating' Source Accesses other data contexts that enclose the current data context. Arguments numLevels Integer The number of levels beyond the current data context to look. Defaults to 1.

meteor run

meteor run Run a meteor development server in the current project. Searches upward from the current directory for the root directory of a Meteor project. Whenever you change any of the application's source files, the changes are automatically detected and applied to the running application. You can use the application by pointing your web browser at localhost:3000. No Internet connection is required. This is the default command. Simply running meteor is the same as meteor run. To pass additiona

Accounts.ui.config

Client Accounts.ui.config(options) import { Accounts } from 'meteor/accounts-base' Source Configure the behavior of {{> loginButtons}}. Options requestPermissions Object Which permissions to request from the user for each external service. requestOfflineToken Object To ask the user for permission to act on their behalf when offline, map the relevant external service to true. Currently only supported with Google. See Meteor.loginWithExternalService for more details. forceAppr

EJSON.stringify

Anywhere EJSON.stringify(val, [options]) import { EJSON } from 'meteor/ejson' Source Serialize a value to a string. For EJSON values, the serialization fully represents the value. For non-EJSON values, serializes the same way as JSON.stringify. Arguments val EJSON-able Object A value to stringify. Options indent Boolean, Integer, or String Indents objects and arrays for easy readability. When true, indents by 2 spaces; when an integer, indents by that number of spaces; and when

api.versionsFrom

package.js api.versionsFrom(meteorRelease) Use versions of core packages from a release. Unless provided, all packages will default to the versions released along with meteorRelease. This will save you from having to figure out the exact versions of the core packages you want to use. For example, if the newest release of meteor is METEOR@0.9.0 and it includes jquery@1.0.0, you can write api.versionsFrom('METEOR@0.9.0') in your package, and when you later write api.use('jquery'), it will b

Accounts.onEnrollmentLink

Client Accounts.onEnrollmentLink import { Accounts } from 'meteor/accounts-base' Source Register a function to call when an account enrollment link is clicked in an email sent by Accounts.sendEnrollmentEmail. This function should be called in top-level code, not inside Meteor.startup(). Arguments callback Function The function to call. It is given two arguments: token: A password reset token that can be passed to Accounts.resetPassword to give the newly enrolled account a password.

Meteor.wrapAsync

Anywhere Meteor.wrapAsync(func, [context]) import { Meteor } from 'meteor/meteor' Source Wrap a function that takes a callback function as its final parameter. The signature of the callback of the wrapped function should be function(error, result){}. On the server, the wrapped function can be used either synchronously (without passing a callback) or asynchronously (when a callback is passed). On the client, a callback is always required; errors will be logged if there is no callback. If

Meteor.logoutOtherClients

Client Meteor.logoutOtherClients([callback]) import { Meteor } from 'meteor/meteor' Source Log out other clients logged in as the current user, but does not log out the client that calls this function. Arguments callback Function Optional callback. Called with no arguments on success, or with a single Error argument on failure.