fix: invalidate layout data after token exchange (#508)
after exchanging the OAuth token for a session cookie, the root
layout's load function still has stale data (isAuthenticated: false)
from before the cookie was set.
this caused navigation to /library immediately after login to redirect
to / because the layout data said the user wasn't authenticated.
the fix: call invalidateAll() after successful token exchange so
SvelteKit reruns all load functions with the new session cookie.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>
authored by
zzstoatzz.io