Skip to content

Fix Convex auth provider mismatch for Clerk tokens#36

Merged
codybmenefee merged 1 commit intomainfrom
codex/fix-convex-auth-provider
Feb 9, 2026
Merged

Fix Convex auth provider mismatch for Clerk tokens#36
codybmenefee merged 1 commit intomainfrom
codex/fix-convex-auth-provider

Conversation

@codybmenefee
Copy link
Copy Markdown
Owner

Summary

  • add missing convex/auth.config.ts with Clerk provider configuration
  • configure a preferred OIDC provider for aud=convex tokens
  • include a compatibility custom JWT provider for Clerk-issued tokens during migration
  • document CLERK_JWT_ISSUER_DOMAIN env requirement in app env docs

Why
Prod logs show Convex rejecting authenticated websocket sessions with:
No auth provider found matching the given token
That means Convex had no matching auth provider configuration for Clerk JWTs.

Validation

  • cd app && npx eslint src/main.tsx convex/auth.config.ts convex/lib/agentAccess.ts convex/agentAdmin.ts convex/users.ts
  • cd app && pnpm run build

@codybmenefee codybmenefee merged commit 1d0bccc into main Feb 9, 2026
1 check passed
@codybmenefee codybmenefee deleted the codex/fix-convex-auth-provider branch February 9, 2026 05:37
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