Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to exclude certain paths from 'rolling' #204

Open
2 tasks done
jaecktec opened this issue Jul 6, 2023 · 0 comments
Open
2 tasks done

Possibility to exclude certain paths from 'rolling' #204

jaecktec opened this issue Jul 6, 2023 · 0 comments

Comments

@jaecktec
Copy link

jaecktec commented Jul 6, 2023

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'],
  }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant