Configure Features

You configure authentication providers and feature flags in src/convex/auth.constants.ts. Start with a minimal setup and add more as you go.

Quick start

Enable classic email/password sign in:

src/convex/auth.constants.ts

Optionally add links to your Terms and Privacy to show them on sign in screens:

src/convex/auth.constants.ts

Providers

Toggle the providers you want to offer. OAuth providers require you to create an app at the respective provider and configure client credentials in your environment (not covered here).

Example: enable GitHub and Google
KeyTypeDescription
keypassbooleanEnable Sign in with Passkey (WebAuthn).
passwordbooleanEnable Sign in with email/password.
emailOTPbooleanEnable Sign in with One-time code via email. Requires sendEmails: true. See Sending Emails.
magicLinkbooleanEnable Passwordless sign in via magic link email. Requires sendEmails: true. See Sending Emails.
Social Providers
githubbooleanEnable Sign in with GitHub.
googlebooleanEnable Sign in with Google.
facebookbooleanEnable Sign in with Facebook.
applebooleanEnable Sign in with Apple.
atlassianbooleanEnable Sign in with Atlassian.
discordbooleanEnable Sign in with Discord.
figmabooleanEnable Sign in with Figma.
linebooleanEnable Sign in with LINE.
huggingfacebooleanEnable Sign in with Hugging Face.
kakaobooleanEnable Sign in with Kakao.
kickbooleanEnable Sign in with Kick.
paypalbooleanEnable Sign in with PayPal.
salesforcebooleanEnable Sign in with Salesforce.
slackbooleanEnable Sign in with Slack.
notionbooleanEnable Sign in with Notion.
naverbooleanEnable Sign in with Naver.
tiktokbooleanEnable Sign in with TikTok.
twitchbooleanEnable Sign in with Twitch.
xbooleanEnable Sign in with X (formerly Twitter).
dropboxbooleanEnable Sign in with Dropbox.
linearbooleanEnable Sign in with Linear.
gitlabbooleanEnable Sign in with GitLab.
redditbooleanEnable Sign in with Reddit.
robloxbooleanEnable Sign in with Roblox.
spotifybooleanEnable Sign in with Spotify.
vkbooleanEnable Sign in with VK (VKontakte).
zoombooleanEnable Sign in with Zoom.

Feature flags

KeyTypeDescription
organizationsbooleanActivate organization features (switcher, membership, invites). Requires sendEmails: true. See Organizations.
sendEmailsbooleanActivate to send transactional emails (verification, OTP, magic links, invites). Required for emailOTP, magicLink, and organizations. See Sending Emails.
validateEmailsbooleanValidate emails on sign-up to prevent typos and bounces. See Validate Emails.
termsstringURL to your Terms of Service (e.g. /terms). Displayed on sign in.
privacystringURL to your Privacy Policy (e.g. /privacy). Displayed on sign in.
src/convex/auth.constants.ts