Next.js 13 Authentication with Next Auth – Protected Routes & more

Initial Code:
https://github.com/ghulamabbas2/next-auth-13/tree/initial-code

Final Code:
https://github.com/ghulamabbas2/next-auth-13/tree/with-credentials

Checkout my In-Depth Next.js Masterclass on Udemy Courses:
https://www.udemy.com/course/nextjs-build-full-stack-apps-with-nextjs-using-redux/?couponCode=NEXT-YT-164

Next.13 Complete Overview in Depth:
https://www.youtube.com/watch?v=eiZSX1D2O28

⚙️ Gadgets I use for Recording:

💻 Laptop – Macbook PRO M1 – 16/512
https://amzn.to/4eUqrSe

🎤 MIC – Samson Technologies Q2U USB/XLR Dynamic Microphone
https://amzn.to/3W9Z4wl

🖱️Mouse – Logitech G402 Gaming Mouse Hyperion Fury USB, Black
https://amzn.to/3RY4xUy

⌨️ Keyboard – Logitech K380 Multi-Device Bluetooth Keyboard
https://amzn.to/3RY4Fn0

🖥️ Monitor – UltraSharp 24-Inch Screen Led-Lit Monitor (U2419H)
https://amzn.to/4bxidN6

In this video, we will discuss authentication in Next.js 13. We will use Next Auth for authentication. We will learn how we can use the latest version of Next which is Next.13 with one of the most popular package next-auth.

We will use Credentials to authenticate the user, maintain the session of the authenticated user, and also we will clear the user session on logout.

We will learn how we can protect the protected routes from unauthenticated users. Make sure to watch the complete video.

Do ask your question in the comments, and I do give replies to all comments.

LIKE, SUBSCRIBE, SHARE

#nextjs #nextjs13 #nextjsauthentication