convex-setup-auth

Configure authentication providers and access control for Convex applications.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/flvvius/cue --skill convex-setup-auth-flvvius
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-setup-auth
Source: https://github.com/flvvius/cue/tree/main/packages/backend/.agents/skills/convex-setup-auth
Command: npx skills add https://github.com/flvvius/cue --skill convex-setup-auth-flvvius

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps you add secure authentication to a Convex app without guessing provider-specific setup steps, missing environment variables, or wiring backend protection incorrectly.

Core Features & Use Cases

  • Provider Selection: Handles Convex Auth, Clerk, WorkOS AuthKit, Auth0, or custom JWT setups based on the repo and user intent.
  • Backend Security: Guides identity checks, protected queries and mutations, user mapping, and role-based access control in Convex functions.
  • Production-Ready Setup: Covers local and production configuration, validation steps, and framework-specific client wiring for common app stacks.
  • Use Case: A team adds login to a Convex-powered product and needs the auth provider configured, the backend protected, and the authenticated session verified end to end.

Quick Start

Ask the skill to set up authentication for your Convex app and specify the provider if you already know it.

Frequently Asked Questions about convex-setup-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up authentication in a Convex application?

To set up Convex authentication, you must select a provider like Clerk or Auth0, configure environment variables, wire client-side framework integration, and validate that Convex recognizes the authenticated session.

Can I use Clerk or Auth0 with Convex for user login and signup?

Yes, Convex supports Clerk, Auth0, and WorkOS AuthKit. This Skill wires provider-specific configuration files and environment variables to enable login, signup, and authenticated session validation across these identity providers.

How do I protect Convex queries and mutations with access control?

Protecting Convex queries and mutations requires implementing backend identity checks and role-based access control inside your Convex functions. This ensures only authenticated users with correct permissions execute protected operations.

What is the best way to configure custom JWTs for Convex auth?

Configuring custom JWTs for Convex auth involves wiring provider-specific configuration files, setting environment variables, and validating that Convex recognizes the authenticated sessions end-to-end for backend identity checks.

Does this Convex auth setup handle local and production environment configurations?

Yes, this authentication setup explicitly covers local and production configuration. It includes validation steps to verify Convex recognizes authenticated sessions and applies framework-specific client wiring across both environments.