Skip to content

Harden Convex Clerk issuer matching#37

Merged
codybmenefee merged 1 commit intomainfrom
codex/harden-convex-auth-issuer
Feb 9, 2026
Merged

Harden Convex Clerk issuer matching#37
codybmenefee merged 1 commit intomainfrom
codex/harden-convex-auth-issuer

Conversation

@codybmenefee
Copy link
Copy Markdown
Owner

Summary

  • normalize Clerk issuer domain in convex auth config (strip trailing slash)
  • add safe fallbacks when CLERK_JWT_ISSUER_DOMAIN is unset
  • register both issuer variants (with and without trailing slash) for custom JWT provider compatibility

Why
Prod still shows intermittent Convex auth rejection: "No auth provider found matching the given token". This can happen when issuer formatting differs (trailing slash) or env is missing/mis-set.

Validation

  • cd app && npx eslint convex/auth.config.ts
  • cd app && pnpm run build

@codybmenefee codybmenefee merged commit bced074 into main Feb 9, 2026
1 check passed
@codybmenefee codybmenefee deleted the codex/harden-convex-auth-issuer branch February 9, 2026 05:45
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