# How to add AuthKit to a Next.js app

DevFeed: [How to add AuthKit to a Next.js app](<https://devfeed.tech/articles/how-to-add-authkit-to-a-next-js-app-15980.md>)

Original publisher: [Read original article](<https://workos.com/blog/add-authkit-to-a-nextjs-app>)

Author: WorkOS

Published: 2026-09-02T00:00:00Z

Content type: tutorial

Language: en

Sources: [WorkOS Blog](<https://devfeed.tech/sources/workos-blog.md>)

Topics: [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [Next.js](<https://devfeed.tech/topics/next-js.md>), [SDKs](<https://devfeed.tech/topics/sdks.md>)

Tags: [auth](<https://devfeed.tech/tags/auth.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [callback](<https://devfeed.tech/tags/callback.md>), [cors](<https://devfeed.tech/tags/cors.md>), [email-verification](<https://devfeed.tech/tags/email-verification.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [mfa](<https://devfeed.tech/tags/mfa.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

This tutorial explains how to add WorkOS AuthKit to a Next.js app using either an AI-powered CLI installer or a manual integration. It covers hosted sign-in, session handling, redirect configuration, and validating the build.

## Source excerpt

Go from no auth to a full hosted sign-in flow, either in one command or step by step.