Skip to content

_expire type as Date not string #45

@karolkt1

Description

@karolkt1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions