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

My UDEMY Courses:
https://www.udemy.com/user/ghulamabbas-3/

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/3LbihZB

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

Mouse – Logitech M330 SILENT PLUS Wireless Mouse
https://amzn.to/3mvDlzu

Keyboard – Logitech K380 Multi-Device Bluetooth Keyboard
https://amzn.to/3T7aCgS

Monitor – UltraSharp 24-Inch Screen Led-Lit Monitor (U2419H)
https://amzn.to/3FazdeK

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