Skip to content

chore: remove dead Clerk auth code - #1925

Open
detail-app[bot] wants to merge 1 commit into
mainfrom
detail/dead-code/chore-remove-dead-clerk-auth-code-03e143
Open

chore: remove dead Clerk auth code#1925
detail-app[bot] wants to merge 1 commit into
mainfrom
detail/dead-code/chore-remove-dead-clerk-auth-code-03e143

Conversation

@detail-app

@detail-app detail-app Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Removes the unused Login, JWT, and ErrUnauthorized symbols from internal/clerk/clerk.go, along with the now-orphaned constants, response structs, JWT cache, and supporting imports.
  • These were left over after the Clerk-based auth flow was removed in commit f152d3d ("auth: remove dead code"), which deleted the only callers of clerk.Login, clerk.JWT, and clerk.ErrUnauthorized. No production callers remain.
  • SetupFlags (called from internal/cli/fncobra/main.go), State (referenced in internal/auth/userauth.go), and devClerk (read by SetupFlags) are kept as they still have live consumers.

History

Validation

  • go build ./internal/clerk/... ./internal/auth/... ./internal/cli/fncobra/...
  • go test ./internal/clerk/... ./internal/auth/... ./internal/cli/fncobra/...
  • go vet ./internal/clerk/...

Co-authored-by: Detail: Dead Code detail-dead-code@opencode.ai


Dead Code PRs can be configured here.

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.

0 participants