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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_expire type as Date not string #45

Open
karolkt1 opened this issue Dec 19, 2024 · 0 comments
Open

_expire type as Date not string #45

karolkt1 opened this issue Dec 19, 2024 · 0 comments

Comments

@karolkt1
Copy link

Is it possible for the _expire field sent to the database (MongoDB) to be of type Date? Currently, the SessionData interface defines _expire as string | null.
However, when the _expire field is of type Date, MongoDB allows setting up a TTL index that automatically removes expired sessions.

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