@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.