Adding login to your Convex app keeps user data safe. This guide helps you set up authentication with different providers. You can use Clerk, Auth0, WorkOS, or Convex's own system.
You will learn to protect your functions so only logged-in users can access them. You can also store user information in your database. The steps include installing packages, setting environment variables, and configuring the auth file.
Choose the provider that fits your app best. The guide includes official documentation and local reference files for each option. Follow the steps carefully to avoid common mistakes.
Global
mkdir -p ~/.claude/skills/convex-setup-authProject
mkdir -p .claude/skills/convex-setup-authSource Repository
Entra App Registrationmicrosoft/azure-skills
Register apps in Entra ID for secure authentication and API access with OAuth 2.0
Entra Agent Idmicrosoft/azure-skills
Create unique OAuth identities for each AI agent instance using Microsoft Graph
Firebase Auth Basicsfirebase/agent-skills
Add secure user sign-in to your app with Firebase Authentication in minutes
Better Auth Best Practicesbetter-auth/skills
Add secure login to your app with email, OAuth, and plugins
Create Auth Skillbetter-auth/skills
Set up login and sign-up in your app with Better Auth easily
Email And Password Best Practicesbetter-auth/skills
Set up email verification, password reset, and secure login with Better Auth
Clerk Setupclerk/skills
Quickly add Clerk authentication to any project using the CLI tool
Clerk Custom Uiclerk/skills
Customize authentication UI and flows for a branded login experience