Product Release November 19, 2026

Convex Auth v2.1.0

@convex-dev/auth v2.1.0
Nicolas Ettlin

Nicolas Ettlin

Published on November 19, 2026

Overview

New

  • Two new sign-in methods: magic link (one form to sign in or sign up with a link sent by email), and Discord.
  • The OAuth components now expose a deleteUser function, similar to other auth components. It erases the data stored in the component for a single user. This method is useful when implementing user deletion flow.
  • The password component can now verify "scrypt" hashes. This is helpful when migrating from systems that use scrypt, like legacy convex-auth.
  • The Google profile has hostedDomain, from the hd claim of the ID token, so that the user callbacks can restrict sign-in to a Google Workspace domain.

Improvements

  • The passkey component now tolerates a trailing slash in the origin configuration setting.
  • The challenge.custom.start function of the email component now sends the email to the address as its owner verified it (the spelling stored in verifiedEmails).

Included Features (1)

#440
Discord sign-in for Convex Auth v2

Convex Auth v2 ships with Google, Apple and GitHub sign-in, but not Discord. Apps can't add it themselves yet, because the generic OAuth component and setupOauth aren't exported. v1 had Discord through the Auth.js providers, so apps that use it can't move to v2. Could v2 get a built-in Discord provider, like the GitHub one? I opened a PR that adds it: https://github.com/convex/convex-auth/pull/914. It adds an authDiscord component and a discord sign-in method that mirror GitHub's, plus docs and an example app. I tested it with a real sign-in against Discord. If you'd rather ship the custom OAuth provider API instead, that would solve this too.

815 (4)
Completed