Pie Logo
Exercise: Cookies and Storage
by Tomas Trescak

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!

Full Stack Development
Introduction
Generative AI
🍰 Player
💼 Editor
Setup
React Fundamentals
Next.js
Advanced React
Databases
React Hooks
Authentication and Authorisation
Cookies
Storage
Authentication Approaches
Exercise: Cookies and Storage
Github Authentication
Google Authentication
Exercise: Social Logins
Quiz: Authentication
Assignment 2.3: Blog - Backend
APIs
CI/CD and DevOps
Testing React
Advanced Topics
    Pie Logo
    Exercise: Cookies and Storage
    by Tomas Trescak

    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!

    Full Stack Development
    Introduction
    Generative AI
    🍰 Player
    💼 Editor
    Setup
    React Fundamentals
    Next.js
    Advanced React
    Databases
    React Hooks
    Authentication and Authorisation
    Cookies
    Storage
    Authentication Approaches
    Exercise: Cookies and Storage
    Github Authentication
    Google Authentication
    Exercise: Social Logins
    Quiz: Authentication
    Assignment 2.3: Blog - Backend
    APIs
    CI/CD and DevOps
    Testing React
    Advanced Topics
    Pie Logo
    Exercise: Cookies and Storage
    by Tomas Trescak
    Pie Logo
    Exercise: Cookies and Storage
    by Tomas Trescak
    Full Stack Development
    Introduction
    Generative AI
    🍰 Player
    💼 Editor
    Setup
    React Fundamentals
    Next.js
    Advanced React
    Databases
    React Hooks
    Authentication and Authorisation
    Cookies
    Storage
    Authentication Approaches
    Exercise: Cookies and Storage
    Github Authentication
    Google Authentication
    Exercise: Social Logins
    Quiz: Authentication
    Assignment 2.3: Blog - Backend
    APIs
    CI/CD and DevOps
    Testing React
    Advanced Topics
    Full Stack Development
    Introduction
    Generative AI
    🍰 Player
    💼 Editor
    Setup
    React Fundamentals
    Next.js
    Advanced React
    Databases
    React Hooks
    Authentication and Authorisation
    Cookies
    Storage
    Authentication Approaches
    Exercise: Cookies and Storage
    Github Authentication
    Google Authentication
    Exercise: Social Logins
    Quiz: Authentication
    Assignment 2.3: Blog - Backend
    APIs
    CI/CD and DevOps
    Testing React
    Advanced Topics