@bedrock/authn-token-http

8.1.1 • Public • Published

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.

/@bedrock/authn-token-http/

    Package Sidebar

    Install

    npm i @bedrock/authn-token-http

    Weekly Downloads

    43

    Version

    8.1.1

    License

    none

    Unpacked Size

    65.5 kB

    Total Files

    18

    Last publish

    Collaborators

    • msporny
    • dlongley
    • davidlehn
    • mattcollier
    • gannan