api.export

package.js api.export(exportedObjects, [architecture], [exportOptions], exportOptions.testOnly) Export package-level variables in your package. The specified variables (declared without var in the source code) will be available to packages that use your package. If your package sets the debugOnly, prodOnly or testOnly options to true when it calls Package.describe(), then packages that use your package will need to use Package["package-name"].ExportedVariableName to access the value of an

AccountsServer#validateNewUser

Server accountsServer.validateNewUser(func) Source Set restrictions on new user creation. Arguments func Function Called whenever a new user is created. Takes the new user object, and returns true to allow the creation or false to abort.

Angular

Angular is a frontend rendering library that is officially supported by Meteor. The best place to read about how to use both Angular 1 and Angular 2 in Meteor is the Angular-Meteor site.

AccountsServer#validateLoginAttempt

Server accountsServer.validateLoginAttempt(func) Source Validate login attempts. Arguments func Function Called whenever a login is attempted (either successful or unsuccessful). A login can be aborted by returning a falsy value or throwing an exception.

AccountsServer#onCreateUser

Server accountsServer.onCreateUser(func) Source Customize new user creation. Arguments func Function Called whenever a new user is created. Return the new user object, or throw an Error to abort the creation.

AccountsServer

Server new AccountsServer(server) import { AccountsServer } from 'meteor/accounts-base' Source Constructor for the Accounts namespace on the server. Arguments server Object A server object such as Meteor.server.

AccountsCommon#userId

Anywhere but publish functions accountsClientOrServer.userId() Source Get the current user id, or null if no user is logged in. A reactive data source.

AccountsCommon#user

Anywhere but publish functions accountsClientOrServer.user() Source Get the current user record, or null if no user is logged in. A reactive data source.

AccountsCommon#onLoginFailure

Anywhere accountsClientOrServer.onLoginFailure(func) Source Register a callback to be called after a login attempt fails. Arguments func Function The callback to be called after the login has failed.

AccountsCommon#config

Anywhere accountsClientOrServer.config(options) Source Set global accounts options. Options sendVerificationEmail Boolean New users with an email address will receive an address verification email. forbidClientAccountCreation Boolean Calls to createUser from the client will be rejected. In addition, if you are using accounts-ui, the "Create account" link will not be available. restrictCreationByEmailDomain String or Function If set to a string, only allows new users if the do