ContentDetailed description of the section content.

Instructions

  1. Fork this repository: https://github.com/WesternSydneyUniversity/comp3036-blog-storage
  2. Solve all tasks below, make sure all tests pass and push to your repo!

Tasks

  1. Cookies: Complete the /api/login/cookie route to set a secure session_id cookie if password is correct and verify it in /api/check-session/cookie.
  2. JWT: Complete the /api/login/jwt route to return a session token if password is correct and set a refresh token and verify it in /api/check-session/jwt
  3. Issue a new session token at /api/login/refresh when correct refresh token is provided
  4. Local Storage: Finish the SavePrefs component to save and display a user’s post filter preference.
  5. Session Storage: Complete the Draft component to save and retrieve a draft specific to the current tab.
  6. IndexedDB: Implement the saveDraft and loadDrafts functions in draftsDB.ts to store and display multiple drafts.

✅ Success!