auth-setup

Set up authentication and authorization for Convex applications with OAuth providers.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/sadroad/.dotfiles --skill auth-setup-sadroad
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-setup
Source: https://github.com/sadroad/.dotfiles/tree/main/modules/home-manager/opencode/skills/auth-setup
Command: npx skills add https://github.com/sadroad/.dotfiles --skill auth-setup-sadroad

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive framework for implementing secure user authentication and authorization within a Convex application, ensuring proper user management, identity mapping, and access control.

Core Features & Use Cases

  • User Management: Define and manage user data, including profile information and roles.
  • Authentication Flows: Implement secure sign-in and sign-out processes using various providers.
  • Access Control: Enforce granular permissions for different user roles and resource ownership.
  • Use Case: Setting up authentication for a new SaaS product, ensuring only authorized users can access specific features and data.

Quick Start

Use the auth-setup skill to configure Convex authentication with WorkOS.

Frequently Asked Questions about auth-setup

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 authentication in a Convex application, you can use this framework to define schemas, manage user identities, and implement mutation logic for secure user creation and access control.

Can I use WorkOS or Auth0 for OAuth sign-in with Convex?

Yes, you can use OAuth providers like WorkOS and Auth0 for Convex authentication. The setup integrates with these services to manage seamless user sign-in and protect data access.

How do I enforce access control and user roles in Convex?

You enforce access control and user roles in Convex by implementing helper functions for user retrieval and role enforcement, ensuring granular permissions for resource ownership and authorized data access.

What is the best way to manage user identities for a SaaS product?

Managing user identities for a SaaS product requires mapping user profiles and roles securely. This framework provides user management and authentication flows to ensure only authorized users access specific features.

Does Convex authentication support custom schema definitions for user management?

Yes, Convex authentication supports custom schema definitions for user management. You can define and manage user data, including profile information and roles, within your application's schema.

How to handle secure user creation and resource access control in Convex?

Secure user creation and resource access control in Convex is handled by implementing specific mutation logic. This ensures proper identity mapping and enforces permissions when users access protected resources.