Spaces:
Sleeping
Sleeping
Commit History
-
fix: Add UTF-8 charset and extend popup close delay to 10 seconds
- Add meta charset=UTF-8 to fix Korean text encoding - Change popup auto-close from 2s to 10s for better debugging - Add viewport meta tag for responsive display 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>d4e5018 -
fix: Remove duplicate HTML code causing TypeScript compilation error
- Remove 170+ lines of duplicated success HTML code - Use generateSuccessHtml() function instead - Fix 'Cannot find name session' TypeScript error 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>03b9f75 -
fix: Handle popup callback without code parameter for existing sessions
- Check for existing session when popup=true but code is missing - Extract success HTML generation into reusable function - Resolve issue where logged-in users see redirect instead of success page 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>445b6f4 -
debug: Add detailed logging to track popup callback flow
- Add isPopup and isFromIframe to debug output - Log popup mode detection and branch selection - Help diagnose why popup redirects to home 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>ab80268 -
fix: Resolve iframe window.open quirks causing multiple windows
- Prevent redirect response creation before popup mode check - Store cookies separately and apply only when redirect is needed - Ensure popup mode returns HTML response without redirect - Fix popup navigation to home page issue 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>5a06854
-
fix: Resolve TypeScript errors in AuthButton component
- Add proper interface for AuthSuccessData type - Convert getUser to useCallback for proper dependency tracking - Add getUser to useEffect dependency array - Remove eslint no-explicit-any error 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>46ffe06 -
feat: Enhance HuggingFace iframe authentication with multi-channel communication
- Implement BroadcastChannel API for reliable popup-iframe communication - Add comprehensive retry logic with 3 communication methods - Enhance callback route with real-time debugging and session transfer - Improve origin verification for security in iframe contexts - Add fallback localStorage mechanism for robust authentication flow 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>7c751a6
-
fix: Resolve iframe window.open quirks causing multiple windows
- Use unique window name to avoid iframe window.open reference issues - Remove else block to prevent alert + duplicate new tab opening - Always set up postMessage listener (iframe window.open returns current window) - Improve popup detection to require both auth fragment and referrer/opener - Based on research: iframe window.open() often returns current window reference 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>1bdbef7 -
fix: Restore async handleSignIn and improve popup detection with auth fragment
- Restore async function to fix TypeScript compilation error - Add OAuth token fragment check for more accurate popup detection - Combine referrer, new window, and auth token presence for popup identification - Maintain support for both iframe popup and direct OAuth flows 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>7e6167c -
fix: Improve popup detection by checking OAuth token fragment
- Add hasAuthFragment check to better identify OAuth popup windows - Only treat windows as popups if they have OAuth tokens in URL fragment - Prevents false positive popup detection on regular navigation - Ensures PopupHandler only activates for actual OAuth completion 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>e9b40c5 -
fix: Resolve storage partitioning issue with Storage Access API
- Add Storage Access API requests in both iframe and popup contexts - Transfer complete session object via postMessage to bypass partitioning - Use setSession() in iframe to establish auth state from popup tokens - Fixes third-party iframe context session isolation in modern browsers 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>223a935 -
fix: Remove fallback redirect that was causing iframe navigation
- Remove window.location.href fallback when popup blocked - Prevent iframe from navigating to OAuth when popup opens - Only use popup OAuth without affecting iframe content - Fixes issue where both popup and iframe navigate to OAuth 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>818b2e7 -
force rebuild: trigger Hugging Face Spaces rebuild
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>9e60dcd -
fix: Improve popup detection for iframe environments
- Add multiple popup detection methods (opener, referrer, history) - Handle cases where window.opener is not set in iframe contexts - Add comprehensive logging for popup detection debugging - Support iframe popup OAuth where opener relationship is blocked 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>b110353 -
feat: Enhance PopupHandler with session-based auth detection
- Check Supabase session status before sending postMessage - Implement proper OAuth popup flow as per IETF standards - Add session validation and delayed retry for auth state detection - Verified approach matches OAuth 2.0 Web Message Response Mode best practices 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>53607d4 -
feat: Add global PopupHandler to detect OAuth popup completion
- Create PopupHandler component to detect window.opener on all pages - Add postMessage communication and auto-close for OAuth popups - Mount PopupHandler in root layout for global popup detection - Handles cases where popup redirects to home instead of callback 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>856822e -
fix: Move getUser function to component level to fix TypeScript error
- Extract getUser from useEffect to make it accessible in event handlers - Fixes 'Cannot find name getUser' compilation error - Maintains same functionality with proper scoping 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>6c54c74 -
feat: Implement popup OAuth with postMessage for external iframe embedding
- Add popup OAuth flow for iframe environments - Implement postMessage communication from popup to iframe - Support external website iframe embedding with working OAuth - Allow users to continue using app within iframe after login - Add clear user guidance for iframe popup workflow 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>5f1dc0f -
refactor: Simplify OAuth by removing complex iframe popup logic
- Remove new window opening and cross-frame communication - Try direct OAuth in iframe first (much simpler approach) - Eliminate complex postMessage and localStorage event handling - If iframe OAuth fails, can add fallback guidance later 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>91bc1c3 -
feat: Add clear user guidance for iframe OAuth workflow
- Add helpful tip box explaining OAuth workflow for iframe users - Instruct users to close popup and refresh page after login - Improve button styling with full width and centered layout - Based on research: cross-domain session sharing has browser limitations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>a27d477 -
fix: Use localStorage for iframe session persistence to prevent logout on refresh
- Detect iframe environment and use localStorage instead of cookies - Implement custom storage interface for Supabase client in iframe - Use separate storage key 'supabase.auth.token.iframe' for isolation - Fixes logout issue when refreshing page in iframe context 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>428f952 -
fix: Implement actual token transfer for iframe session synchronization
- Store access_token and refresh_token in localStorage from popup - Use stored tokens to set session in iframe via setSession() - Clean up tokens after successful session establishment - Fixes real browser environment where sessions aren't automatically shared 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>f9d5ec0 -
feat: Improve OAuth popup UX with manual controls and clear guidance
- Add manual 'close window and return' button for iframe context - Add 'go to original tab' button as fallback option - Show clear instructions to user about next steps - Handle window.close() failures with user guidance - Focus opener window before closing popup 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>ea7d803 -
feat: Implement iframe session synchronization with popup OAuth
- Add postMessage communication between popup and iframe - Use localStorage events to detect OAuth success across windows - Auto-refresh iframe session when popup login completes - Ensure session state propagates from popup to original iframe context 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>fdf516d -
feat: Add auto-redirect after OAuth success to improve UX
- Auto-redirect to home after 2 seconds for direct access - Auto-close popup after 1 second for iframe context - Add clear waiting messages to inform users - Remove need for manual 'go home' button clicks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>d37d131 -
fix: Handle URL fragment tokens in auth error page for iframe OAuth
- Process access_token from URL fragment (implicit OAuth flow) - Use Supabase setSession to establish authentication - Auto-close popup window after successful login - Attempt to refresh parent iframe when opened from popup - Add proper loading, success, and error states with visual feedback 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>26dfdc9 -
feat: Fix iframe OAuth session sharing with storage event detection
- Add localStorage event listener to detect login success in iframe - Create iframe-specific callback with success page and auto-close - Automatically refresh iframe when login is detected - Show clear success message to user with window close functionality 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>248d72c -
feat: Implement iframe-compatible OAuth with new window approach
- Open OAuth in new tab when in iframe (following HF best practices) - Change button text to '새 창에서 Google 로그인' in iframe context - Follows OAuth spec and HF official recommendations for iframe authentication - Resolves fundamental iframe OAuth restrictions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>4e9f7e0 -
fix: Simplify iframe OAuth by using normal flow within iframe
- Remove complex popup and parent window redirect logic - Let OAuth proceed normally within iframe context - Rely on Supabase's built-in iframe handling 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>7bae283 -
fix: Use popup window for OAuth in iframe to avoid security restrictions
- Change from parent window redirect to popup window approach - Try parent window.open first, fallback to current window - Handle security errors gracefully with fallback to current window redirect 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>2ea2006 -
feat: Add iframe OAuth support by redirecting to parent window
- Detect if running in iframe environment - Redirect parent window to OAuth URL when in iframe - Maintain normal OAuth flow for direct access - Add comprehensive debugging logs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>c50e808 -
fix: Remove explicit redirectTo to let Supabase auto-detect callback URL
- Remove hardcoded redirectTo option that caused domain mismatch - Add debug logging for OAuth flow troubleshooting - Let Supabase automatically determine correct callback URL 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>5eac99e -
fix: Change supabaseResponse from let to const to fix ESLint error
- Fix prefer-const ESLint rule violation - No functional changes, just code style improvement 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>4b32a9f -
fix: Handle cookies directly in callback to resolve PKCE code verifier issue
- Extract cookies from request headers for Supabase client - Use createServerClient directly with proper cookie handling - Add cookie debugging to troubleshoot PKCE validation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>654af93 -
fix: Reconstruct callback URL with correct origin to fix PKCE validation
- Build corrected URL using host headers instead of localhost URL - Fixes 'both auth code and code verifier should be non-empty' error - Ensures Supabase receives proper callback URL for PKCE flow 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>aa9ec68 -
fix: Resolve OAuth callback redirect using host headers instead of URL origin
- Use host and x-forwarded-proto headers to construct correct origin - Prevents localhost redirect issue in containerized environments - Add detailed debug logging for troubleshooting 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>b04e517
-
debug: Add logging to OAuth callback route to diagnose localhost redirect
- Add comprehensive debug logging for request URL, origin, headers - Log success and error redirect URLs - Will help identify why callback redirects to localhost:7860 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>82d4e2c -
fix: Simplify OAuth callback redirect to always use origin URL
- Remove complex x-forwarded-host logic that was causing localhost redirects - Always use origin URL for redirects in both dev and production - Fixes persistent localhost:7860 redirect issue in Hugging Face Spaces 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>0c5b104 -
fix: Use server-side SITE_URL for runtime OAuth redirect configuration
- Switch from NEXT_PUBLIC_SITE_URL to SITE_URL for runtime configuration - NEXT_PUBLIC_ vars are build-time only and can't be changed at runtime - Add server-side SITE_URL environment variable support - Fixes OAuth redirect to localhost issue in production 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>9e52d76 -
feat: Add NEXT_PUBLIC_SITE_URL environment variable support to Dockerfile
- Add secrets mounting for NEXT_PUBLIC_SITE_URL during build - Add runtime environment variable handling for site URL - Required for proper OAuth callback redirect in production 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>1960891 -
fix: Resolve Google OAuth redirect issue in Hugging Face Spaces
- Add NEXT_PUBLIC_SITE_URL environment variable support - Prevent localhost redirect when x-forwarded-host contains localhost - Ensure proper redirect to production domain after OAuth callback 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>e09a506 -
security: Remove hardcoded Supabase credentials from Dockerfile
- Replace hardcoded Supabase URL and anon key with placeholder values - Add placeholder detection logic to prevent usage of invalid credentials - Update error messages to guide proper configuration in HF Spaces - Middleware skips auth when using placeholder values 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>f3ce2f3 -
feat: Implement Hugging Face Spaces secrets mounting for build-time env vars
- Use Docker secrets mounting with --mount=type=secret for build-time access - Fallback to hardcoded values if secrets are not available during build - Clean up placeholder detection logic in client, server, and middleware - Enable proper Supabase configuration during Next.js build process 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>cae669d -
fix: Resolve middleware Turbopack error with placeholder Supabase values
- Update middleware.ts to handle placeholder environment variables properly - Add fallback logic for build-time vs runtime Supabase configuration - Prevent middleware errors when environment variables are not properly loaded 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>b7db12b -
fix: Resolve Hugging Face Spaces build-time environment variable issue
- Upgrade Node.js to version 22 to match local environment - Use placeholder values during Docker build to avoid build failures - Add runtime detection for placeholder values with fallback to actual Supabase config - Remove complex ARG/ENV handling that doesn't work in HF Spaces build process 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>1eba6bf -
fix: Resolve Supabase placeholder URL issue in production
- Add build-time environment variables to Dockerfile for proper Next.js build - Remove placeholder fallback URLs in Supabase client configuration - Add environment variable validation with clear error messages - Remove unused securecheck-pro/Dockerfile to avoid confusion - Add debug logging for environment variable troubleshooting 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>b1ec01c
-
fix: Add fallback values for Supabase environment variables
- Add placeholder values for SUPABASE_URL and SUPABASE_ANON_KEY - Allows build to complete even without environment variables set - Real values should be set in Hugging Face Spaces environment variables 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>234e255 -
fix: Resolve ESLint errors for production build
- Replace <a> with Next.js Link component in auth error page - Add ESLint disable comment for user avatar img element - Remove unused 'options' parameter in middleware 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>5727536 -
feat: Add Supabase Google OAuth authentication
- Install @supabase/supabase-js and @supabase/ssr packages - Create Supabase client utilities for browser and server - Implement Next.js middleware for authentication token management - Add OAuth callback route handler and error page - Create Google login/logout button component with user profile - Integrate authentication UI into main page 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>14d12d3 -
feat: Improve mobile responsive design
- Make URL input and analyze button responsive (vertical on mobile, horizontal on desktop) - Add responsive font sizing for report title (text-xl/text-2xl/text-4xl) - Optimize layout for screens around 408px width 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>fdab3ec