Skip to content

Phara0h/fastify-good-sessions

Repository files navigation

fastify-good-sessions

A good fastify sessions plugin focused on speed.

Installation

fastify-cookie is required depend

$ npm install fastify-good-sessions fastify-cookie

Quick Start (Express)

fastify.register(require('fastify-good-sessions'), {
  secret: config.cookie.session.secret,
  store: redis.sessionStore,
  cookie: {
    secure: config.https,
    httpOnly: true,
    maxAge: config.cookie.session.expiration,
    domain: config.cookie.domain
  },
  cookieName: 'sample:ssid',
  saveUninitialized: false
});

About

A good fastify sessions plugin focused on speed.

Resources

License

Stars

Watchers

Forks

Packages

No packages published