Global

Methods

ExpressMiddleware(req, res, next)

Express middleware
Parameters:
Name Type Description
req Object
res Object
next Object
Source:

Type Definitions

getUserID(user, delivery, callback, req)

Parameters:
Name Type Description
user Object Contact details provided by the user (e.g. email address)
delivery String Delivery method used (can be null)
callback function To be called in the format callback(error, user), where error is either null or an error message and user is either null if not user has been found or the user ID.
req Object Express request object
Source:

sendToken(tokenToSend, uidToSend, recipient, callback, req)

Parameters:
Name Type Description
tokenToSend String The token to send
uidToSend Object The UID that has to be part of the token URL
recipient String the target such as an email address or a phone number depending on the user input
callback function Has to be called either with no parameters or with callback({String}) in case of any issues during delivery
req Object The request object
Source: