Skip to content

Add convexAuthProvider() for auth.config.ts - #788

Merged
dowski merged 1 commit into
rebootfrom
dowski/convex-auth-config-func
Oct 27, 2026
Merged

dowski merged 1 commit into
rebootfrom
dowski/convex-auth-config-func

Conversation

@dowski

@dowski dowski commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

This simplifies auth.config.ts setup and also allows us to make changes to the configuration in the future that don't require applications to update their auth.config.ts.

The function takes an optional argument for the component name in case an application uses a different name for the core component.

@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
auth-v2 Ready Ready Preview Oct 26, 2026 5:20pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
convex-auth-docs Ignored Ignored Oct 26, 2026 5:20pm UTC

Request Review

dowski commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@pkg-pr-new

pkg-pr-new Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
npm i https://pkg.pr.new/@convex-dev/auth@788

commit: 6fddae2

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 13 files

Re-trigger cubic

@dowski
dowski force-pushed the dowski/deployment-issued-jwt-usage branch from c3f812a to f305c48 Compare October 23, 2026 20:39
@dowski
dowski force-pushed the dowski/convex-auth-config-func branch from 68de5d6 to 6df9112 Compare October 23, 2026 20:39
@dowski
dowski force-pushed the dowski/deployment-issued-jwt-usage branch from f305c48 to dee1479 Compare October 23, 2026 20:42
@dowski
dowski force-pushed the dowski/convex-auth-config-func branch from 6df9112 to 8e191c3 Compare October 23, 2026 20:42
@dowski
dowski requested a review from erquhart October 26, 2026 17:17
@dowski
dowski changed the base branch from dowski/deployment-issued-jwt-usage to graphite-base/788 October 26, 2026 17:18
@dowski
dowski force-pushed the graphite-base/788 branch from dee1479 to e9df54c Compare October 26, 2026 17:18
@dowski
dowski force-pushed the dowski/convex-auth-config-func branch from 8e191c3 to 7d0f53e Compare October 26, 2026 17:18
@cursor
cursor Bot changed the base branch from graphite-base/788 to reboot October 26, 2026 17:19
`convexAuthProvider()` returns the `customJwt` provider that accepts the
access tokens the auth component mints, so apps no longer spell it out in
`convex/auth.config.ts` and future changes to it don't require editing
every app's config. It reads `CONVEX_CLOUD_URL` itself and takes an
optional `componentName` for apps that mount the auth component under
another name.

The examples and the `auth.config.ts` the CLI scaffolds now use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dowski
dowski merged commit 82e0ce5 into reboot Oct 27, 2026
9 checks passed

This branch was successfully deployed

1 active deployment
Preview – auth-v2 — 6fddae29 Deployed Oct 26, 2026 by vercel[bot]
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.

2 participants