cosmicds / cds-api

API for accessing the CosmicDS database
GNU General Public License v3.0
0 stars 3 forks source link

Sessions #22

Closed Carifio24 closed 2 years ago

Carifio24 commented 2 years ago

This PR sets up the machinery for storing user sessions using express-session and connect-session-sequelize. Sessions are automatically stored in a table in our AWS database. We add a /login endpoint that will allow for session-based login from the website. Currently, sessions are automatically checked every 15 minutes. A session is valid for one day.

In addition, there are some other minor improvements and formatting updates.