Skip to content

Fix Clerk convex token 404 fallback#35

Merged
codybmenefee merged 1 commit intomainfrom
codex/fix-clerk-convex-token-404
Feb 9, 2026
Merged

Fix Clerk convex token 404 fallback#35
codybmenefee merged 1 commit intomainfrom
codex/fix-clerk-convex-token-404

Conversation

@codybmenefee
Copy link
Copy Markdown
Owner

Summary

  • replace strict ConvexProviderWithClerk usage with a ConvexProviderWithAuth bridge
  • request Clerk token via configured template only when VITE_CLERK_CONVEX_TEMPLATE is set
  • gracefully fall back to default Clerk session token if template token call fails (including 404)
  • document optional VITE_CLERK_CONVEX_TEMPLATE in app/.env.example

Why
Production was repeatedly hitting POST /v1/client/sessions/:id/tokens/convex with 404 when the template was not configured, which left Convex auth in a bad state and caused noisy auth churn.

Validation

  • cd app && npx eslint src/main.tsx
  • cd app && pnpm run build

@codybmenefee codybmenefee merged commit a590a3c into main Feb 9, 2026
1 check passed
@codybmenefee codybmenefee deleted the codex/fix-clerk-convex-token-404 branch February 9, 2026 05:31
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