SessionsModule

sessions. SessionsModule

Module which implements user sessions

Constructor

new SessionsModule()

Source:

Extends

  • AbstractModule

Methods

(async) clearSession(req) → {Promise}

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

(async) init()

Source:

storeAuthHeader(req, res, next)

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