convex-setup-auth

Automate Convex authentication setup with identity mapping and access controls.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables secure, end-to-end authentication in Convex apps by configuring identity mapping, user storage, and access controls, so teams can reliably gate data and operations.

Core Features & Use Cases

  • Provider-agnostic: supports Convex Auth, Clerk, WorkOS AuthKit, Auth0, or custom JWT providers
  • Identity management: creates or maps a users resource and enables identity-based lookups
  • Access control: provides scaffolding for role-based access and protected backend functions
  • Quick-start guidance: offers a practical, end-to-end setup path for common Convex auth needs

Quick Start

Choose an auth provider, install the required packages, run the Convex auth initializer, and wire the provider into your app.

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 app?

Setting up authentication in a Convex app involves wiring the provider into convex/auth.config.ts, creating a users table for identity storage, and implementing role-based access controls to gate data and operations.

Does Convex authentication work with Clerk, WorkOS, and Auth0?

Convex authentication supports Clerk, WorkOS AuthKit, Auth0, Convex Auth, or custom JWT providers, allowing you to map identities, store users, and gate backend queries and mutations reliably.

How do I protect backend queries and mutations in Convex?

Protect backend queries and mutations in Convex by implementing role-based access control alongside identity mapping, adding proper error handling to ensure only authorized identities can execute protected backend functions.

Do I need to manually create a users table for Convex Auth?

A users table is created or mapped for identity-based lookups during setup, or alternatively a storeUser flow is utilized, ensuring user storage is properly configured for the chosen authentication provider.

What's the best way to add login and signup features to a Convex app?

The best way to add login and signup features is choosing an auth provider, installing required packages, running the Convex auth initializer, and wiring the provider into your app for end-to-end identity management.

Can I implement role-based access control (RBAC) with custom JWTs in Convex?

Implementing RBAC with custom JWTs in Convex is supported by configuring identity mapping, applying access control scaffolding, and adding proper error handling to gate backend queries and mutations based on user roles.