# Convex with Auth.js (NextAuth)

DevFeed: [Convex with Auth.js (NextAuth)](<https://devfeed.tech/articles/convex-with-auth-js-nextauth-81412.md>)

Original publisher: [Read original article](<https://stack.convex.dev/nextauth>)

Author: Stack

Published: 2024-05-07T14:03:00Z

Content type: tutorial

Language: en

Sources: [Stack](<https://devfeed.tech/sources/stack.md>)

Topics: [Why Rely on a Social Auth Library?](<https://devfeed.tech/topics/why-rely-on-a-social-auth-library.md>), [sessions](<https://devfeed.tech/topics/sessions.md>), [Web app](<https://devfeed.tech/topics/webapp.md>), [account](<https://devfeed.tech/topics/account.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [auth](<https://devfeed.tech/tags/auth.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [await](<https://devfeed.tech/tags/await.md>), [backend](<https://devfeed.tech/tags/backend.md>), [convex](<https://devfeed.tech/tags/convex.md>), [database](<https://devfeed.tech/tags/database.md>), [integration](<https://devfeed.tech/tags/integration.md>), [next](<https://devfeed.tech/tags/next.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [sessions](<https://devfeed.tech/tags/sessions.md>), [walkthroughs](<https://devfeed.tech/tags/walkthroughs.md>)

## AI overview

A tutorial on integrating Auth.js (formerly NextAuth) with a Next.js app and Convex backend. It covers OAuth and email magic-link providers, configuring Convex as the Auth.js database adapter, authenticating Convex functions, and handling sign-in, sign-out, redirects, and session IDs. The article cautions that developers are responsible for verifying the security of their implementation.

## Source excerpt

Learn how to use Auth.js with your Next.js server and Convex backend to build a full-featured authentication system.