API Docs for:
Show:

LoopbackUserClient Class

Item Index

Methods

confirm

(
  • userId
  • token
  • redirect
)
Promise(Object)

Confirm the user's identity.

Parameters:

  • userId String
  • token String

    The validation token

  • redirect String

    URL to redirect the user to once confirmed

Returns:

Promise(Object):

login

(
  • credentials
  • include
)
Promise(Object)

Login a user by with the given credentials

Parameters:

  • credentials Object

    email/password

  • include String

    Optionally set it to "user" to include the user info

Returns:

Promise(Object):

logout

(
  • accessTokenID
)
Promise

Logout a user with the given accessToken id.

Parameters:

  • accessTokenID String

Returns:

Promise:

resetPassword

(
  • email
)
Promise

Create a short lived acess token for temporary login. Allows users to change passwords if forgotten.

Parameters:

  • email String

Returns:

Promise: