w.location.search);
            const token = urlParams.get('token');
            const userId = urlParams.get('user_id');
            const email = urlParams.get('email');
            const name = urlParams.get('name');

            console.log('Checking OAuth callback:', { token: !!token, userId, email, name });

            if (token && userId) {
                // Clear URL parameters
                window.history.replaceState({}, document.title, window.location.pathname);
                
            