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
[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
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:
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my code
[X] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[X] Any dependent changes have been merged and published in downstream modules
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: