---
title: "Discussion on \"[How To] Authentication with IdentityServer4 and NextAuth v4 (Next.js App Router)\" | Hashnode"
description: "Discussion on \"[How To] Authentication with IdentityServer4 and NextAuth v4 (Next.js App Router)\". Discover how to connect IdentityServer4 with Next.js App Router using next-auth v4 for strong user authentication."
url: "https://hashnode.com/posts/how-to-authentication-with-identityserver4-and-nextauth-v4-nextjs-app-router/6711489e44d2d6863122c934"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [\[How To\] Authentication with IdentityServer4 and NextAuth v4 (Next.js App Router)](https://blog.staridev.hu/how-to-authentication-with-identityserver4-and-nextauth-v4-nextjs-app-router?utm_source=hashnode&utm_medium=feed)

Discover how to connect IdentityServer4 with Next.js App Router using next-auth v4 for strong user authentication.

Oct 17, 2024 · 13 min read · blog.staridev.hu  
Updated Sep 17, 2025  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#nextauthjs](https://hashnode.com/tag/nextauthjs)
-   [#identityserver4](https://hashnode.com/tag/identityserver4)
-   [#authentication](https://hashnode.com/tag/authentication)

## Written by

[Gergo Starosta](https://hashnode.com/@StariGeri)

@StariGeri · Budapest, Hungary

  
[View profile](https://hashnode.com/@StariGeri)

Frontend Engineer | CS Student

Hey! I am Gergo, a CS Student and a Frontend Engineer from Budapest, Hungary. I am writing about everything that excites me in the world of Frontend, AI, Career and so on..

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
