Socket
Socket
Sign inDemoInstall

fp-lua-sessions

Package Overview
Dependencies
21
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fp-lua-sessions

This module is an express middleware and should resolve a session stored in a JWT and store the results in res.locals.session.


Version published
Weekly downloads
4
Maintainers
1
Created
Weekly downloads
 

Readme

Source

FP LUA Sessions

Creates a res.locals.session object or calls next(err) if no session is there.

Usage:

import { resolveSession } from "fp-lua-sessions";

app.get("/some_endpoint", resolveSession, (req, res, next) =>  {
    console.log(res.locals.session)
    res.send("OK")
}

or

import { resolveSession } from "fp-lua-sessions";

app.use(resolveSession);

FAQs

Last updated on 17 Jun 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc