New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

express-ts-session-firestore

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-ts-session-firestore

Firestore session storage class for Express TS Session

latest
Source
npmnpm
Version
0.0.1-beta.3
Version published
Maintainers
1
Created
Source

Express TS Session Firestore Store

This is an extension to the Store class in Express TS Session to manage session data in Firestore.

Installation

npm install express-ts-session-firestore

Usage

import { ExpressTSSession, Cookie } from "express-ts-sesion";
import express from 'express';
import FirestoreStore from 'express-ts-session-firestore';
import { Firestore } from '@google-cloud/firestore';

const sessionMiddleware = new ExpressTSSession({
    name: "my-app"
    secret: "mysecret",

    cookie: new Cookie({
        maxAge: 1000 * 60 * 60 * 24 * 7,
        secure: false,
        httpOnly: true,
        path: "/",
        sameSite: false,
        signed: true,
    }),

    store: new FirestoreStore({ database: new Firestore() }),
});

const app = express();

app.use(sessionMiddleware.init);

Keywords

express

FAQs

Package last updated on 21 Dec 2023

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