Skip to content

fix(auth): OAuth callback URI and review hardening#14

Merged
MarcelRoozekrans merged 2 commits intomainfrom
fix/oauth-callback-uri
Mar 22, 2026
Merged

fix(auth): OAuth callback URI and review hardening#14
MarcelRoozekrans merged 2 commits intomainfrom
fix/oauth-callback-uri

Conversation

@MarcelRoozekrans
Copy link
Copy Markdown
Contributor

Summary

  • Fix OAuth callback URI from vscode://lucent-code/ to vscode://lucentcode.lucent-code/ (must match publisher.extensionId)
  • Add .catch() on handleOAuthCallback to prevent unhandled promise rejection
  • Use unknown type in .catch() handlers for correctness
  • Fix stale comment referencing old URI

Test plan

  • 370 unit tests pass
  • Extension builds cleanly
  • OAuth flow: authorize on OpenRouter → "Open App" → VS Code receives callback → key saved

🤖 Generated with Claude Code

MarcelRoozekrans and others added 2 commits March 22, 2026 20:10
The callback URI was vscode://lucent-code/oauth-callback but VS Code
URI handlers require the publisher.extensionId format:
vscode://lucentcode.lucent-code/oauth-callback

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Fix stale comment referencing old OAuth callback URI
- Add .catch() on handleOAuthCallback to prevent unhandled rejection
- Use 'unknown' type in .catch() handlers (not 'Error') for correctness

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
lucent-code 875aa71 Commit Preview URL

Branch Preview URL
Mar 22 2026, 07:10 PM

@MarcelRoozekrans MarcelRoozekrans merged commit a1e5f8b into main Mar 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant