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
-
Item Index
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