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:
-
userIdString -
tokenStringThe validation token
-
redirectStringURL to redirect the user to once confirmed
Returns:
Promise(Object):
login
(
Promise(Object)
-
credentials -
include
Login a user by with the given credentials
Parameters:
-
credentialsObjectemail/password
-
includeStringOptionally set it to "user" to include the user info
Returns:
Promise(Object):
logout
(
Promise
-
accessTokenID
Logout a user with the given accessToken id.
Parameters:
-
accessTokenIDString
Returns:
Promise:
resetPassword
(
Promise
-
email
Create a short lived acess token for temporary login. Allows users to change passwords if forgotten.
Parameters:
-
emailString
Returns:
Promise:
