What's Changed
Fixes & Improvements
- Desktop session recovery improved: Desktop users now reliably restore their previous session after signing in via cloud authentication.
- Guest recovery preserved during desktop auth: The guest recovery cookie is now retained when bootstrapping desktop authentication, ensuring smoother transitions for anonymous users moving to authenticated sessions.
Internal
- Refactored desktop session recovery and anonymous recovery logic into dedicated utility modules (
lib/auth/desktop-session-recovery.ts,lib/auth/anonymous-recovery.ts) for better maintainability and testability.