2024-CMPU9010-GROUP-3 / magpie

Group 3 project for the TU Dublin ASD/DS masters course
GNU Affero General Public License v3.0
5 stars 0 forks source link

Frontend/session cookie not set #415

Closed ankraus closed 1 week ago

ankraus commented 1 week ago

Description

This PR fixes a bug where the session cookies were not getting set correctly and the redirect was not working after login. The problem was fixed by moving the cookie logic from the server to the client and handling cookies locally. This removed unnecessary requests to the frontend server and prevented a plethora of race conditions with useEffect hooks.

Fixes #406

Type of change

Please select the option that best describes the changes made:

Changes