This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@forrestjs/feature-pg-session

3.19.0 • Public • Published

@forrestjs/feature-pg-session

It uses a Postgres data model to store session-related informations.

It provides ways to invalidate a session from the server, even if the cookie and JWT owned by the client are still valid.

It works as middleware integrating some getter/setter methods into the req.session namespace.

Usage

NOTE: A session must be already started.

validate()

Validates the current session against the stored data in Postgres.

write/read

Store custom data in the Postgres's session record.

Configuration

ForrestJS feature which offers a GraphQL endpoint to fetch locale translations.

Package Sidebar

Install

npm i @forrestjs/feature-pg-session

Weekly Downloads

0

Version

3.19.0

License

MIT

Unpacked Size

26.3 kB

Total Files

10

Last publish

Collaborators

  • marcopeg