Meteor.methods

Anywhere Meteor.methods(methods) import { Meteor } from 'meteor/meteor' Source Defines functions that can be invoked over the network by clients. Arguments methods Object Dictionary whose keys are method names and values are functions.

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.

Meteor.logout

Client Meteor.logout([callback]) import { Meteor } from 'meteor/meteor' Source Log the user out. Arguments callback Function Optional callback. Called with no arguments on success, or with a single Error argument on failure.

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

Meteor.loginWith<Service>

Client Meteor.loginWith<ExternalService>([options], [callback]) import { Meteor } from 'meteor/meteor' Source Log the user in using an external service. Arguments callback Function Optional callback. Called with no arguments on success, or with a single Error argument on failure. The callback cannot be called if you are using the "redirect" loginStyle, because the app will have reloaded in the meantime; try using client-side login hooks instead. Options requestPermissions A

Meteor.loggingIn

Client Meteor.loggingIn() import { Meteor } from 'meteor/meteor' Source True if a login method (such as Meteor.loginWithPassword, Meteor.loginWithFacebook, or Accounts.createUser) is currently in progress. A reactive data source.

Meteor.isServer

Anywhere Meteor.isServer import { Meteor } from 'meteor/meteor' Source Boolean variable. True if running in server environment.

Meteor.isCordova

Anywhere Meteor.isCordova import { Meteor } from 'meteor/meteor' Source Boolean variable. True if running in a Cordova mobile environment.

Meteor.isClient

Anywhere Meteor.isClient import { Meteor } from 'meteor/meteor' Source Boolean variable. True if running in client environment.

Meteor.Error

Anywhere new Meteor.Error(error, [reason], [details]) import { Meteor } from 'meteor/meteor' Source This class represents a symbolic error thrown by a method. Arguments error String A string code uniquely identifying this kind of error. This string should be used by callers of the method to determine the appropriate action to take, instead of attempting to parse the reason or details fields. For example: // on the server, pick a code unique to this error // the reason field should be