Skip to content

Phara0h/fastify-good-sessions

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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