neverovski / nodejs-rest-api

A sample NodeJs application, demonstrating how to use JWT Authentication, with access tokens and refresh tokens.
MIT License
19 stars 1 forks source link

User session table #57

Open neverovski opened 12 months ago

neverovski commented 12 months ago

Is your feature request related to a problem? Please describe. Currently, our platform lacks a dedicated mechanism for managing user sessions. This hinders our ability to track user activity, maintain session security, and implement features such as session timeout.

Describe the solution you'd like Introduce a "User Session Table" to the database schema. This table will store essential information related to user sessions, including session tokens, user IDs, timestamps of session creation and last activity, and any relevant metadata. The implementation should also include mechanisms to manage session timeouts and ensure secure handling of session data.