fix(auth): convert isLoggedIn to lazy initialization
Change isLoggedIn from eager evaluation at module load time to lazy
initialization. Authentication now only starts when isLoggedIn is
first awaited, preventing race conditions during test setup or when
the module is imported before the application is ready.
The implementation uses a thenable object for backward compatibility,
allowing existing `await isLoggedIn` patterns to continue working.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>