From the course: Learning Next.js

Unlock the full course today

Join today to access over 24,600 courses taught by industry experts.

Adding the Google credentials provider

Adding the Google credentials provider

From the course: Learning Next.js

Adding the Google credentials provider

Now, the interesting part is to add Google as an option to sign in. So we're going to add this. So we're going to be able to authenticate to our next project. The blog post projects by using our Gmail accounts. So we're going to look at the documentation that's going to be available on the developer's guide from Google. And we're going to need to access also the Google Console to create a client ID and a client secret and also add authorized redirect URIs. Because basically you're going to be redirected to the Google app to sign in with your Gmail account, and then you're going to be then redirected back to your application once you are signed in. And after that so in our project, we're going to update with the List of Provider Options to add Google. So you're going to provide with the client ID and the client secret. And of course because it needs to remain secret, you're going to set it up as an environment variable. So I'm going to show you how. First let's go find the…

Contents