Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 683 Bytes

File metadata and controls

19 lines (15 loc) · 683 Bytes

bedrock-authn-token-http

HTTP API for bedrock-authn-token

Usage

This module requires the use of Express sessions. There are two requirements for properly implementing sessions in a Bedrock application.

First, Express sessions must be enabled via the Bedrock config.

import bedrock from 'bedrock';
import 'bedrock-express';

bedrock.config.express.useSession = true;

Second, an Express session store must be integrated into the Bedrock application. bedrock-session-mongod is commonly used for this purpose. Without a proper session store, the in-memory store included with Express will cause memory leaks.