Closed jlaksana closed 1 year ago
will not implement refresh tokens since I chose 8h expiration times. on the frontend, put an axios interceptor that redirects to the login https://www.thedutchlab.com/insights/using-axios-interceptors-for-refreshing-your-api-token
Description Currently, all diagrams are public and editable by anyone. This is bad and users cannot be trusted not to edit other diagrams. So, we need to protect diagrams with a password. We will continue to not have user accounts in the app. We will have passwords for each diagram.
Acceptance Criteria When creating a new diagram, have the user set a password. Make this a new form after clicking "Create New". Implement hashing the password with a salt. Add this to the diagram schema. Implement cookies that stores a session token and protect all endpoints except for creating and getting diagrams. Modify diagram login to also take a password.
Additional Information