Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastify 3.17.0 fastify-session 5.2.1 #167

Open
johntom opened this issue Jun 10, 2021 · 0 comments
Open

fastify 3.17.0 fastify-session 5.2.1 #167

johntom opened this issue Jun 10, 2021 · 0 comments

Comments

@johntom
Copy link

johntom commented Jun 10, 2021

Im upgrading from factify 2.6.0 to 3.17.0 getting the same error reported #137.
2.6.0 Code

const fp = require('fastify-plugin');
const fastifySession = require('fastify-session')
const fastifyCookie = require('fastify-cookie')
module.exports = fp(async (fastify, opts) => {

fastify.register(fastifyCookie)
const sOpts = Object.assign ({}, {

    cookieName: 'sessionId',
    secret: 'a secret with minimum length of 32 characters',
    cookie: { secure: false },
    expires: 1800000
  })

  fastify.register(fastifySession, sOpts);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant