NextJs Authentication with Google and Github (NextAuth.js, Typescript, Mongoose) | Production Grade

Опубликовано: 13 Май 2026
на канале: Sandipan Das
967
24

🚀 Ready to take your Next.js app to the next level? In this comprehensive tutorial, we'll dive into the world of authentication with NextAuth.js, leveraging the power of Google and Github. Whether you're a beginner or an experienced developer, I'll guide you through the process step by step.

🔥 WANT ME TO HIRE FOR YOUR PROJECTS
🔥 Hire me @ - https://sandipandas.dev/hire
🔥 @Fiverr - https://sandipandas.dev/hire/fiverr
🔥 @Upwork -https://sandipandas.dev/hire/upwork

💡 WANT TO CHECK MY WORK EXAMPLES?
https://sandipandas.dev/project

📋 READ MY BLOGS:
https://sandipandas.dev/blog


💰 WANT TO SUPPORT THIS CHANNEL?
Donate here: https://paypal.me/sandipandasdev?coun...

VIEW THE FULL PLAYLIST:
   • Next JS Authentication - (NextAuth.js)  

IN THIS VIDEO:
01:26 How to get Google API (client ID and secret) for the next auth.
03:09 How to get GitHub API (client ID and secret) for the next auth.
05:42 How to generate a Cryptographically Secure Random Number Generator (CSRNG) for the next auth secret key.
06:46 .env configuration.
04:14 NextAuth configuration for the Google and Github providers.
15:16 Integrate with forms with the provider.
20:49 Server side and client side session rendering/print
32:55 Test mongoDB integration

SO MUCH MORE!


👇🏻 FOLLOW ME HERE:
Instagram:   / sandipandas.dev  
Facebook:   / sandipandas.net  
LinkedIn:   / sandipandasdev  
Twitter:   / sandipandas_net  
Github: https://github.com/sandidas

🚨 GET FAST AND BEST WEB HOSTING:
https://dronahost.com/wordpress-hosting/

🛠️ GET WORDPRESS THEMES AND PLUGINS:
Get Astra Theme: https://sandipandas.net/go/astra/
Get Divi Theme: https://sandipandas.net/go/divi
Get Generate Press/ Theme: https://sandipandas.net/go/generatepr...
Get Elementor Pro: https://sandipandas.net/go/elementor

🔴 LOOKING FOR THE CODE FROM MY BUILDS?
https://github.com/sandidas

Background Music Copyright:
Music by LiQWYD:   / liqwyd  

#NextJS #Authentication #NextAuthJS #TypeScript #Mongoose #WebDevelopment #GoogleAuth #GithubAuth #Tutorial #Programming #CodeWithMe