# How to add step-up authentication to your Next.js app with WorkOS AuthKit

DevFeed: [How to add step-up authentication to your Next.js app with WorkOS AuthKit](<https://devfeed.tech/articles/how-to-add-step-up-authentication-to-your-next-js-app-with-workos-authkit-16065.md>)

Original publisher: [Read original article](<https://workos.com/blog/step-up-authentication-nextjs-workos-authkit>)

Author: WorkOS

Published: 2026-08-10T00:00:00Z

Content type: tutorial

Language: en

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

Topics: [Next.js](<https://devfeed.tech/topics/next-js.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [OpenID connect (OIDC)](<https://devfeed.tech/topics/oidc.md>), [MFA](<https://devfeed.tech/topics/mfa.md>), [ui](<https://devfeed.tech/topics/ui.md>)

Tags: [auth](<https://devfeed.tech/tags/auth.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [build](<https://devfeed.tech/tags/build.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>), [oidc](<https://devfeed.tech/tags/oidc.md>), [sign-in](<https://devfeed.tech/tags/sign-in.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

This tutorial shows how to add step-up authentication to a Next.js application using WorkOS AuthKit. It gates a destructive action, revoking all API keys, behind recent interactive re-authentication using auth_time and max_age, while preserving the user's session and location in the interface.

## Source excerpt

Build a Next.js app with AuthKit sign-in, then gate a destructive action behind a fresh re-authentication using auth_time and max_age.