auth

Namespace

auth

Description:
  • Authentication
Source:

Classes

AbstractAuthModule
AuthModule
AuthToken
Authentication
Permissions

Methods

(static) exports.createEmptyStore() → {RouteStore}

Description:
  • Returns a generic empty object for mapping values to HTTP methods
Source:
Returns:
Type
RouteStore

(static) exports.initAuthData(req) → {Promise}

Description:
  • Adds auth data to the incoming request
Source:
Parameters:
Name Type Description
req external:ExpressRequest
Returns:
Type
Promise

Type Definitions

RouteStore

Description:
  • A key/value store linking API route/HTTP methods to values
Source:
Properties:
Name Type Description
post Array Data relating to the post HTTP method
get Array Data relating to the get HTTP method
put Array Data relating to the put HTTP method
patch Array Data relating to the patch HTTP method
delete Array Data relating to the delete HTTP method
A key/value store linking API route/HTTP methods to values
Type:
  • Object