JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 119
  • Score
    100M100P100Q79446F

HTTP API for bedrock-authn-token

Package Exports

  • @bedrock/authn-token-http
  • @bedrock/authn-token-http/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@bedrock/authn-token-http) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.