SessionsModule

sessions. SessionsModule

Module which implements user sessions

Constructor

new SessionsModule()

Source:

Extends

  • AbstractModule

Methods

(async) clearSession(req) → {Promise}

Description:
  • Handles clearing of the current request session
Source:
Parameters:
Name Type Description
req external:ExpressRequest
Returns:
Resolves when the session has been cleared
Type
Promise

(async) init()

Source:

storeAuthHeader(req, res, next)

Description:
  • Stores the session token as an auth header if none present
Source:
Parameters:
Name Type Description
req external:ExpressRequest
res external:ExpressResponse
next function