convex-auth-setup

Set up user authentication and access control in Convex applications.

1|Updated Nov 29, 2025
One-click install
npx skills add https://github.com/sheriax/drawink --skill convex-auth-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-auth-setup
Source: https://github.com/sheriax/drawink/tree/main/.agents/skills/convex-auth-setup
Command: npx skills add https://github.com/sheriax/drawink --skill convex-auth-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of setting up robust authentication and user management within a Convex application, ensuring secure access control and identity mapping.

Core Features & Use Cases

  • Authentication Flow Implementation: Guides through setting up client and backend authentication using providers like WorkOS or Auth0.
  • User Management: Provides schema definitions and helper functions for managing users, roles, and permissions.
  • Access Control: Demonstrates patterns for owner-only, resource-specific, and team-based access control.
  • Use Case: When launching a new feature that requires users to log in, use this Skill to implement the entire authentication flow, from user sign-up to role-based access to protected data.

Quick Start

Use the convex-auth-setup skill to define the users table schema and implement the storeUser mutation.

Frequently Asked Questions about convex-auth-setup

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

FAQPage Schema
How do I set up user authentication in Convex?

Setting up user authentication in Convex requires defining the users table schema, implementing core helper functions for user retrieval and authorization, and configuring mutations for user creation and updates to manage secure access control.

Can I use WorkOS for client-side authentication with Convex?

Yes, WorkOS integrates with Convex as a client-side authentication provider to enable seamless identity mapping and session management between the client application and the Convex backend framework.

What is the best way to implement access control in a Convex application?

Implementing access control in a Convex application involves using resource ownership patterns, team-based permissions, and core helper functions to enforce owner-only and resource-specific authorization rules for secure data protection.

Does Convex support role-based permissions and user management?

Yes, Convex supports role-based permissions and user management through schema definitions for users and roles, combined with mutation patterns for user creation, updates, and comprehensive access control strategies.

How do I map client identity to a Convex backend user?

Mapping client identity to a Convex backend user involves using authentication providers like WorkOS or Auth0 for client-side login, then implementing mutations to store and sync the authenticated user identity within the Convex database schema.