🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

fp-lua-sessions

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

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.

1.4.3
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 17 Jun 2021

Did you know?

Socket

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