Skip to content

Commit

Permalink
Merge pull request #30 from Deckluhm/master
Browse files Browse the repository at this point in the history
fix: use `maxAge` instead of `expires`
  • Loading branch information
jsumners authored Nov 7, 2024
2 parents 86e6dd4 + 20b4b84 commit 286ce76
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 286ce76

Please sign in to comment.