Security 6,043 installs

Convex Authentication Setup

by get-convex/agent-skills

Sets up Convex auth, identity mapping, and access control. Use for login, auth providers, users tables, protected functions, or roles in a Convex app.

Skill content

Set up Convex authentication with the right provider, user management, and access control patterns.

- Supports multiple auth providers: Convex Auth, Clerk, WorkOS AuthKit, Auth0, and custom JWT, with provider detection from repo signals

- Guides you through choosing a provider, configuring client and backend wiring, environment variables, and convex/auth.config.ts setup

- Covers authentication checks in protected functions, optional app-level user storage, and authorization patterns for ownership and roles

- Includes reference files for each provider with concrete workflows, expected files, gotchas, and validation steps

Convex Authentication Setup

Implement secure authentication in Convex with user management and access
control.

When to Use

- Setting up authentication for the first time

- Implementing user management (users table, identity mapping)

- Creating authentication helper functions

- Setting up auth providers (Convex Auth, Clerk, WorkOS AuthKit, Auth0, custom
JWT)

When Not to Use