convex-setup-auth

Configure authentication providers and identity mapping in Convex backend applications.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @convex-dev/auth, @auth/core, and includes references (resource) components.

What problem does it solve?

This skill streamlines the complex process of integrating authentication into Convex applications, ensuring secure user management and robust access control without manual configuration errors.

Core Features & Use Cases

  • Provider Integration: Seamlessly configures authentication providers like Convex Auth, Clerk, WorkOS AuthKit, or Auth0.
  • Access Control: Implements server-side identity verification using ctx.auth.getUserIdentity() to protect sensitive queries and mutations.
  • Use Case: When building a new application, use this skill to quickly wire up a secure login flow and ensure that backend functions only return data to authenticated users.

Quick Start

Use the convex-setup-auth skill to configure Clerk authentication for this project and protect the user profile query.

Frequently Asked Questions about convex-setup-auth

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

FAQPage Schema
How do I implement authentication in a Convex backend application?

Implement authentication in a Convex backend by configuring secure identity providers and mapping. This integrates services like Clerk, Auth0, or WorkOS alongside native Convex Auth to manage users and verify identities server-side.

How do I protect Convex queries and mutations so they only return data to authenticated users?

Protect Convex queries and mutations by implementing server-side identity verification using ctx.auth.getUserIdentity(). This ensures robust access control by validating user identity before executing sensitive backend functions.

Can I use Clerk or Auth0 for user management with Convex Auth?

Yes, you can use Clerk or Auth0 for user management with Convex. The configuration supports integrating these third-party services alongside native Convex Auth to streamline login flows and secure user management.

What is the best way to configure role-based authorization logic in Convex?

The best way to configure role-based authorization logic in Convex is by implementing server-side identity verification. This ensures robust access control by mapping third-party provider identities to specific roles within your backend functions.

Does @convex-dev/auth work with @auth/core for secure login flows?

Yes, @convex-dev/auth works with @auth/core to establish secure login flows. This combination allows you to seamlessly configure authentication providers and securely map identities within your Convex application backend.