Back to Browse

Connect Google Provider to Database - Next Auth

14.5K views
Jun 28, 2023
39:59

My fav place to learn to code is Scrimba Get 20% off a subscription with my link πŸ‘‡ https://scrimba.com/?via=brettwestwood #NextAuth #nextjs #mongodb In this video, I go over how you can utilize the Google Provider from Next Auth and then being able to send that user's information (profile) to your MongoDB database. This will allow you to keep a database full of users even if they log in with a OAuth Provider like Google. If you enjoy content like this. Hit that like button and also subscribe to stay up-to-date. Private 1 on 1 Help πŸ‘‡ https://calendly.com/dabrettwestwood/30min Join my FREE Discord to talk and network about web development! πŸ‘‡ https://discord.gg/rKXNDnE32N Time Stamps 0:00 Intro 0:12 Set up Environment 0:43 Create MongoDB Database 3:54 Adding Connection String/MONGO URI 4:56 Install necessary packages 5:44 Connect MongoDB Database with Mongoose 11:22 Start Setting up Next Auth 14:00 Get The Google Provider Keys 18:01 Continue Setting up Next Auth 25:52 User Schema Setup 28:54 Next Auth Connecting to Database 39:24 Outro

Download

0 formats

No download links available.

Connect Google Provider to Database - Next Auth | NatokHD