Skip to content

Possibility to exclude certain paths from 'rolling' #204

@jaecktec

Description

@jaecktec

Prerequisites

  • I have written a descriptive issue title
  • 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'],
  }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions