chingu-x / chingu-dashboard

https://chingu-dashboard.vercel.app
GNU General Public License v3.0
9 stars 2 forks source link

Refactor/auth architecture pt4 #279

Closed Dan-Y-Ko closed 1 day ago

Dan-Y-Ko commented 1 week ago

Description

This pr takes care of the issue with cookies disappearing when refreshing the page. Moved the get user logic to a separate module.

You may notice I added todo comments. I will be fixing these in future prs so this one doesn't get too big

Expected behavior:

user now gets populated in redux store properly user is fetched properly when page is refreshed cookie is attached properly when page is refreshed

Issue link

Fixes # (issue)

Type of change

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chingu-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2024 6:59am