fastify / fastify/session

Possibility to exclude certain paths from 'rolling'

Open
#204 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

I'd like to specify paths that are ignored by the 'rolling' behaviour.

### Motivation

I want to have some endpoint in the background that is frequently checked to see if I have a session.
But since this is in the background there is no 'user interaction'. Meaning I want the session to time out eventually if the user does nothing, plus I want to show them after a time that the session has timed out (e.g. a modal) by checking the response status of the session endpoing

### Example

```
await server.register(fastifySession, {
...
rolling: {
excluded: ['/session'],
}
});
```

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.