convex-auth

Integrate Better Auth into Convex applications using TanStack Start.

4|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/kvnwolf/devtools --skill convex-auth-kvnwolf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-auth
Source: https://github.com/kvnwolf/devtools/tree/main/plugins/backend/skills/convex-auth
Command: npx skills add https://github.com/kvnwolf/devtools --skill convex-auth-kvnwolf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the process of integrating robust authentication and user management into your Convex applications, ensuring secure access and user data protection.

Core Features & Use Cases

  • Authentication Setup: Guides you through setting up Better Auth in new or existing TanStack Start + Convex projects.
  • Local Schema Migration: Provides a detailed flow to migrate from component-based Better Auth to a local schema for greater control.
  • Usage Patterns: Demonstrates how to get the current user and implement sign-out functionality.
  • Use Case: You're building a SaaS product on Convex and need to implement user sign-up, login, and session management. This Skill provides the step-by-step instructions to integrate Better Auth seamlessly.

Quick Start

Follow the steps in the flows/setup/FLOW.md guide to add Better Auth to your TanStack Start + Convex project.

Frequently Asked Questions about convex-auth

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

FAQPage Schema
How do I integrate Better Auth into a Convex application using TanStack Start?

Yes, this Skill provides a detailed flow to migrate from component-based Better Auth to a local schema. Migrating to a local schema gives you greater control over authentication data structures within your Convex application.

Can I use Better Auth with Convex for user sign-up, login, and session management?

Yes, Better Auth works with Convex to implement user sign-up, login, and session management. It covers configuring server components and client libraries to secure access and protect user data in SaaS products.

How do I retrieve the current user and handle sign-out with Better Auth in Convex?

You retrieve the current user and handle sign-out using common usage patterns provided by the Skill. These patterns demonstrate how to interact with the configured API routes and client-side libraries in your TanStack Start application.

Do I need specific configuration for Convex server components to set up Better Auth?

Yes, setting up Better Auth requires specific configuration of Convex server components and API routes. This ensures seamless integration between your client-side libraries and the Convex backend for secure authentication.