API Docs for: 0.8.0
Show:

TokenService Class

A service that manages tokens for non-password authentication.

Constructor

TokenService

(
  • options
)

Parameters:

  • options Object
    • site String
      • site uid
    • user String
      • user id

Methods

generateUserToken

(
  • cb
)

Generates and saves user token

Parameters:

  • cb Function

saveToken

(
  • tokenInfo
  • cb
)

Saves token object

Parameters:

  • tokenInfo Object
    • the token object to save
  • cb Function

validateUserToken

(
  • token
  • cb
)

Loads token information by token value and marks as used if found

Parameters:

  • token String
  • cb Function