betterauth-tanstack-convex

Configure Better Auth authentication for Convex and TanStack Start projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/kimmyxpow/recallable --skill betterauth-tanstack-convex-kimmyxpow
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: betterauth-tanstack-convex
Source: https://github.com/kimmyxpow/recallable/tree/main/.agents/skills/betterauth-tanstack-convex
Command: npx skills add https://github.com/kimmyxpow/recallable --skill betterauth-tanstack-convex-kimmyxpow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Integrating authentication in Convex + TanStack Start projects can be verbose and error-prone. This skill provides a structured, end-to-end guide for implementing Better Auth, covering installation, environment configuration, SSR authentication, route handlers, and the expectAuth pattern to ensure robust, secure user sessions.

Core Features & Use Cases

  • Step-by-step installation and configuration of Better Auth with Convex and TanStack Start.
  • Guidance on environment variables, SSR integration, and authenticated server functions.
  • Troubleshooting tips for common auth issues and implementing sign up, sign in, and sign out flows.
  • Clear provider setup and integration points for secure, seamless authentication across client and server.

Quick Start

Install the required packages, configure Convex Better Auth, and start the dev server to begin using the authentication workflow.

Frequently Asked Questions about betterauth-tanstack-convex

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

FAQPage Schema
How do I set up Better Auth with Convex and TanStack Start?▼

Setting up Better Auth with Convex and TanStack Start requires installing required packages, configuring environment variables, and implementing route handlers. This workflow guides you through secure sign-up, sign-in, and sign-out flows using the expectAuth pattern.

How does SSR authentication work with Better Auth in a TanStack Start application?▼

SSR authentication with Better Auth in TanStack Start works by utilizing route handlers to manage secure server-side user sessions. The expectAuth pattern ensures authenticated server interactions, maintaining robust session state across both client and server environments.

Do I need specific environment variables to configure Better Auth for Convex?▼

Yes, configuring Better Auth for Convex requires specific environment variables for provider configuration. You must define these variables to enable secure authentication flows, ensuring the server correctly validates sign-up, sign-in, and sign-out requests.

What is the best way to secure server interactions in a Convex TanStack Start project?▼

The best way to secure server interactions in a Convex TanStack Start project is using the expectAuth pattern. This approach enforces authenticated access within your server functions, preventing unauthorized requests and protecting sensitive user session data.

Why is my Better Auth sign-in flow not working with Convex?▼

Your Better Auth sign-in flow with Convex might not work due to incorrect environment variable configuration or missing route handlers. Troubleshooting these common auth issues involves verifying provider setup and ensuring proper SSR integration points.