Next Auth Basics tutorial | Add Google, GitHub, Twitter, and Email authentication in Next.js project
In this blog, you will learn how to add authentication to your Nextjs project using the Next-Auth library. Next-Auth is a library that provides you with a simple way to add authentication to your Nextjs project. You can add authentication with providers like GitHub, Twitter, Google, email, etc. You can also use databases to store your user data. What you will learn? - How to add authentication with GitHub, Twitter, Google, and email? - How to use databases to store user data? - How to protect your routes and pages? Resource: Source Code: https://github.com/thatanjan/next-auth-yt Chakra-UI Crash course: https://www.youtube.com/watch?v=hJ873mLhmFQ TimeStamp 0:00 Intro 2:30 Self Intro 3:15 Setup environment 9:20 Check if session exist or not 11:50 Sign in with Github provider 17:53 Signout 24:10 Custom sign-in page 28:20 Style sign-in page 38:45 Sign in with the Twitter provider 42:10 Sign in with Google provider 45:30 Setup Database 53:05 Sign in with the Email provider 57:50 Protect Route 1:05:00 Protect page with Server side rendering 1:06:30 Protect page with Client side rendering 1:10:00 Outro About me Why do I do what I do? -- The Internet has revolutionized our life. I want to make the internet more beautiful and useful. What do I do? -- I ended up being a full-stack software engineer. What can I do? -- I can develop complex full-stack web applications like social media or e-commerce sites. What have I done? -- I have developed a social media application called Confession. This application aims to help people overcome their imposter syndrome by sharing our failure stories. I also love to share my knowledge. So, I run a youtube channel called Cules Coding where I teach people full-stack web development, data structure algorithms, and many more. So, Subscribe to Cules Coding so that you don't miss the cool stuff. Want to work with me? -- I am looking for a team where I can show my ambition and passion and produce great value for them. Contact me through my email or any social media as @thatanjan. I would be happy to have a touch with you. Contacts Email: [email protected] Linkedin: https://linkedin.com/in/thatanjan/ portfolio: https://thatanjan.me/ Github: https://github.com/thatAnjan/ Instagram personal: https://instagram.com/thatAnjan/ Twitter: https://twitter.com/thatAnjan Blogs you might want to read: Eslint, prettier setup with TypeScript and react: https://www.culescoding.space/blog/setup-eslint-prettier-with-typescript-and-react What is Client-Side Rendering?: https://www.culescoding.space/blog/what-is-client-side-rendering What is Server-Side Rendering?: https://www.culescoding.space/blog/what-is-server-side-rendering Everything you need to know about tree data structure: https://www.culescoding.space/blog/everything-you-need-to-know-about-tree-data-structure 13 reasons why you should use Nextjs: https://www.culescoding.space/blog/13-reasons-why-you-should-use-Nextjs Videos you might want to watch: Setup Eslint Prettier with Typescript and React -Nextjs, Create React App: http://youtu.be/T-n0mrssDiw Everything you need to know about CSS in JS: https://youtu.be/Be_C_Op8Tx8 Toggle Dark mode with Material-UI: https://youtu.be/ag3je1g0BN8 Build a real-time view counter: https://youtu.be/B3HX2rWyKlU Build a small search engine with MongoDB: https://youtu.be/C6VytdSDNSk Playlists you might like: Build a blog using JAMstack: https://www.youtube.com/watch?v=KYLBb1W1ZBA&list=PLEr-WXao6eSPQzQAlkYpNLfcSm6pTiTpd Material-UI basics course: https://www.youtube.com/watch?v=grjle8AcQRs&list=PLEr-WXao6eSMddsL31fYlOGdbIk5nT-Pi Quick tricks: https://www.youtube.com/watch?v=RECwLOZdiR4&list=PLEr-WXao6eSPspqYqDd0ISbLdDbBAIPNR Crash course: https://www.youtube.com/watch?v=rSa8sUC8m_4&list=PLEr-WXao6eSNuG2mQyV_48RQoj5p8WM_q How-to videos: https://www.youtube.com/watch?v=T-n0mrssDiw&list=PLEr-WXao6eSOVI5LSBn23tsqCp-pCAwiu Stay safe and good bye.
Download
0 formatsNo download links available.