---
title: "Discussion on \"NextAuth the easiest authentication for Next.js\" | Hashnode"
description: "Discussion on \"NextAuth the easiest authentication for Next.js\". Adding authentication to any application can be a bit of a mission.\nHowever, with NextAuth, it's a breeze for Next.js applications.\nIn this article, we'll explore a social login, using Twitter as our authentication layer.\nWe'll build this whole app f..."
url: "https://hashnode.com/posts/nextauth-the-easiest-authentication-for-nextjs/6170fe2b0f452c1cd94f5d48"
---

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

Discussion

# [NextAuth the easiest authentication for Next.js](https://h.daily-dev-tips.com/nextauth-the-easiest-authentication-for-nextjs?utm_source=hashnode&utm_medium=feed)

Adding authentication to any application can be a bit of a mission. However, with NextAuth, it's a breeze for Next.js applications. In this article, we'll explore a social login, using Twitter as our authentication layer. We'll build this whole app f...

Oct 21, 2021 · 3 min read · h.daily-dev-tips.com  
Read the article

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

## Written by

[Chris Bongers](https://hashnode.com/@dailydevtips)

@dailydevtips · Cape Town, SA

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

Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.

## Responses 3

Markdown supported · ⌘↵ to post

[Tapas Adhikary](https://hashnode.com/@atapas)

[Oct 22, 2021](https://hashnode.com/posts/nextauth-the-easiest-authentication-for-nextjs/6170fe2b0f452c1cd94f5d48/comment/6172708f0f452c1cd94f7db9)

Great, I think I have use case to use it for my website. Thanks for sharing.

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Oct 22, 2021](https://hashnode.com/posts/nextauth-the-easiest-authentication-for-nextjs/6170fe2b0f452c1cd94f5d48/comment/6172708f0f452c1cd94f7db9#reply-6172aeae0f452c1cd94f86cf)

Awesome!

I'm using it in a side project that I'm launching soon. I needed a specific provider and NextAuth is just great for that.

[Victoria Lo](https://hashnode.com/@victoria)

[Oct 22, 2021](https://hashnode.com/posts/nextauth-the-easiest-authentication-for-nextjs/6170fe2b0f452c1cd94f5d48/comment/61720ba00c5e175a1c6139e3)

Another interesting and awesome article [Chris Bongers](https://hashnode.com/@dailydevtips)! Thanks!

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Oct 22, 2021](https://hashnode.com/posts/nextauth-the-easiest-authentication-for-nextjs/6170fe2b0f452c1cd94f5d48/comment/61720ba00c5e175a1c6139e3#reply-6172ae930f452c1cd94f86c3)

Glad you enjoyed it Victoria!

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Oct 21, 2021](https://hashnode.com/posts/nextauth-the-easiest-authentication-for-nextjs/6170fe2b0f452c1cd94f5d48/comment/617126250c5e175a1c6124c6)

Interesting, thanks for writing this! 😊

I'd be curious how do you create protected pages and profile pages. I need to have a look and find out how to do it!

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Oct 21, 2021](https://hashnode.com/posts/nextauth-the-easiest-authentication-for-nextjs/6170fe2b0f452c1cd94f5d48/comment/617126250c5e175a1c6124c6#reply-617130730c5e175a1c612645)

Thanks Catalin!

The protected pages are actually super simple with NextAuth. See this demo on their website:

[next-auth-example.vercel.app](https://next-auth-example.vercel.app/)

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Oct 21, 2021](https://hashnode.com/posts/nextauth-the-easiest-authentication-for-nextjs/6170fe2b0f452c1cd94f5d48/comment/617126250c5e175a1c6124c6#reply-61716c440c5e175a1c612cd6)

Amazing! Thank you, [Chris Bongers](https://hashnode.com/@dailydevtips)!
