Exercise: Cookies and Storage
by Tomas Trescak· Authentication and Authorisation

0 / 1750 XP
The external project has not been reviewed yet
Please follow instructions below to submit your project

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!

Discuss with Others
Ask questions, share your thoughts, and discuss with other learners

Join the discussion to ask questions, share your thoughts, and discuss with other learners
Setup
React Fundamentals
10 points
Next.js
10 points
Advanced React
Databases
10 points
React Hooks
Authentication and Authorisation
10 points
APIs
CI/CD and DevOps
Testing React
Advanced Topics