When a user is not logged in, the "guest" token will be sent with every HTTP request. Consequently, when the guest token expires (in 30 days), the user cannot log in again without manually deleting the guestToken from the browser cache.
Short-term fix: do not send guest tokens for user signup/logins
Long-term: the guest system has many flaws, e.g., repos not merged after registration. We need a better way to handle guests, preferably local-only with IndexedDB & Yjs.
When a user is not logged in, the "guest" token will be sent with every HTTP request. Consequently, when the guest token expires (in 30 days), the user cannot log in again without manually deleting the guestToken from the browser cache.
https://github.com/codepod-io/codepod/blob/705940f67d5d6da5dbbea0fa636cc9d3c401c081/ui/src/lib/auth.tsx#L36-L40
Correct behavior: