Skip to content

Commit

Permalink
fix: use maxAge instead of expires
Browse files Browse the repository at this point in the history
  • Loading branch information
Deckluhm committed Nov 6, 2024
1 parent 86e6dd4 commit 20b4b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastify-session-authentication/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function plugin (instance, options, next) {
instance.register(fastifySession, {
cookieName: 'sessionId',
secret: 'a secret with minimum length of 32 characters',
cookie: { expires: 1800000, secure: false }
cookie: { maxAge: 1800000, secure: false }
})

// add a login route that returns a login page
Expand Down

0 comments on commit 20b4b84

Please sign in to comment.