fastify / fastify/session

Add support for `SessionStore.touch`

Open
#310 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
130
Forks
58
PR merge metrics
No merged PRs in 30d

Description

### Prerequisites

- [x] I have written a descriptive issue title
- [x] I have searched existing issues to ensure the feature has not already been requested

### 🚀 Feature Proposal

express-session added a `SessionStore.touch` method that is used by session stores to reset session idle/last used times and avoiding having to update them at every session. Support this method the same way as supported by express-session when supported by the provided session store

### Motivation

https://www.npmjs.com/package/connect-mongo#lazy-session-update

### Example

https://www.npmjs.com/package/connect-mongo#lazy-session-update

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.