@mashroom/mashroom-session-provider-filestore

2.6.0 • Public • Published

Mashroom Session Filestore Provider

Plugin for Mashroom Server, a Microfrontend Integration Platform.

This plugin adds a file based session store that can be used by Mashroom Session. Actually this is just a wrapper for the session-file-store package.

Usage

If node_modules/@mashroom is configured as plugin path just add @mashroom/mashroom-session-provider-filestore as dependency.

Activate this session provider in your Mashroom config file like this:

{
  "plugins": {
        "Mashroom Session Middleware": {
            "provider": "Mashroom Session Filestore Provider"
        }
    }
}

And to change the default config of this plugin add:

{
  "plugins": {
        "Mashroom Session Filestore Provider": {
            "path": "../../data/sessions"
        }
    }
}
**NOTE**: The base for relative paths is the Mashroom config file.

All config options are passed to the session-file-store. See session-file-store for available options.

/@mashroom/mashroom-session-provider-filestore/

    Package Sidebar

    Install

    npm i @mashroom/mashroom-session-provider-filestore

    Weekly Downloads

    3

    Version

    2.6.0

    License

    MIT

    Unpacked Size

    4.64 kB

    Total Files

    4

    Last publish

    Collaborators

    • jkofler