chore(web): mock user session cookie during development (#997)

* chore(web): mock user session cookie during development

* refactor(scripts): change default mock session name to mock-user-session

* tmp: log cookies in production

* refactor(api): add dev fixture for a mock user session

* fix(web): only mock session cookie during development

* fix(web): type coercion of MOCK_USER_SESSION env flag
This commit is contained in:
Pujit Mehrotra
2025-01-08 14:15:46 -05:00
committed by GitHub
parent f45719fa6b
commit 4404208deb
8 changed files with 19 additions and 4 deletions
+2
View File
@@ -10,3 +10,5 @@ VITE_ALLOW_CONSOLE_LOGS=true
# For an Unraid Webgui deployment, set this to 10.
VITE_TAILWIND_BASE_FONT_SIZE=16
VITE_WEBGUI=http://localhost:3001
# Flag for mocking a user session during development via an unsecure cookie
VITE_MOCK_USER_SESSION=true