forked from cline/cline
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Problem Description
The Supabase authentication flow works correctly in VS Code but fails in Windsurf. The OAuth callback and token handling appear to complete successfully, but the extension does not properly authenticate in Windsurf.
Current Behavior
- User clicks login in Windsurf
- OAuth flow completes with GitHub
- Tokens are received by the extension
- Extension does not unlock/authenticate properly
Expected Behavior
The authentication should work identically in both VS Code and Windsurf, properly storing credentials and unlocking the extension.
Technical Details
- URI scheme detection is working (
windsurf://
vsvscode://
) - OAuth callback receives tokens correctly
- The issue appears to be in the credential storage or session handling
- Related to PR Add copy prompt to history #56 (Supabase authentication migration)
Potential Causes
- Different secret storage behavior between VS Code and Windsurf
- Extension context differences
- URI handler registration differences
- Promise rejection in extension host (as noted in logs)
Investigation Steps
- Check if
context.secrets
API works differently in Windsurf - Verify URI handler registration in Windsurf
- Debug the credential storage and retrieval process
- Check for any Windsurf-specific API differences
Related Code
/packages/cloud/src/SupabaseAuthService.ts
- Main authentication service/src/activate/handleUri.ts
- URI callback handler/packages/cloud/src/AuthService.ts
- Legacy Clerk auth service (for comparison)
Workaround
Users can currently use VS Code for authentication until this issue is resolved.
Additional Context
This issue was discovered during the implementation of PR #56 which migrates authentication from Clerk to Supabase.
dosubot
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done