bitsy-ai / printnanny-os

Image repository, change logs, and issue tracking for PrintNanny OS
GNU Affero General Public License v3.0
23 stars 2 forks source link

PrintNanny OS Dashboard should set an authentication cookie (not session storage) #134

Closed leigh-johnson closed 1 year ago

leigh-johnson commented 1 year ago

Describe the bug

The PrintNanny OS dashboard currently uses sessionStorage to store the user's authenticated session.

We should use a cookie instead. sessionStorage is cleared when the browser closes (forcing you to do the 2FA dance again), and is not shared between tabs. https://github.com/bitsy-ai/printnanny-dash/blob/main/ui/src/stores/cloud.ts#L15

leigh-johnson commented 1 year ago

:tada: Done - this fix will be available in v0.4.3