diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.ts index 4ba0a5da..396a7a43 100644 --- a/src/routes/+layout.server.ts +++ b/src/routes/+layout.server.ts @@ -12,24 +12,6 @@ export const load: LayoutServerLoad = async ({ locals }) => { const currentUser = locals.session.user ?? null const isAuthenticated = locals.session.isAuthenticated - // Debug logging for auth data - if (locals.auth) { - console.log('[+layout.server] Auth data being passed to client:', { - hasToken: !!locals.auth.accessToken, - hasUser: !!locals.auth.user, - hasExpiresAt: !!locals.auth.expiresAt - }) - } - - // Debug logging for Navigation props - console.log('[+layout.server] Navigation props:', { - hasAccount: !!account, - account, - hasCurrentUser: !!currentUser, - currentUser, - isAuthenticated - }) - return { isAuthenticated, account, diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts index 80df6c7f..7c3a59fd 100644 --- a/src/routes/+layout.ts +++ b/src/routes/+layout.ts @@ -41,5 +41,9 @@ export const load: LayoutLoad = async ({ data }) => { } }) - return { queryClient } + // Pass through server data (account, currentUser, etc.) along with queryClient + return { + ...data, + queryClient + } }