LoopbackUserClient Class
Loopback User Client to access to UserModel (or extenders)
see http://docs.strongloop.com/display/public/LB/PersistedModel+REST+API see also http://apidocs.strongloop.com/loopback/#persistedmodel
Item Index
Methods
Methods
confirm
(
Promise(Object)
-
userId
-
token
-
redirect
Confirm the user's identity.
Parameters:
-
userId
String -
token
StringThe validation token
-
redirect
StringURL to redirect the user to once confirmed
Returns:
Promise(Object):
login
(
Promise(Object)
-
credentials
-
include
Login a user by with the given credentials
Parameters:
-
credentials
Objectemail/password
-
include
StringOptionally set it to "user" to include the user info
Returns:
Promise(Object):
logout
(
Promise
-
accessTokenID
Logout a user with the given accessToken id.
Parameters:
-
accessTokenID
String
Returns:
Promise:
resetPassword
(
Promise
-
email
Create a short lived acess token for temporary login. Allows users to change passwords if forgotten.
Parameters:
-
email
String
Returns:
Promise: