to setup google login system in the script you have to create google console api credential first. follow below step to get those credentials
Step 01:
go to https://console.cloud.google.com site and login to your gmail account go get access to the google cloud console.
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-22-20-27-1024x356.png)
Step 02:
now create a new project.
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-22-21-14-1024x452.png)
Step 03:
give all the details required for create a project
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-22-22-21-1024x354.png)
Step 04:
now click on select project and select your newly created project
Step 05:
now go to api overview from your project dashboard
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-22-27-14-1024x314.png)
Step 06:
click on credential then select oAuth client ID
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-22-31-54-1024x373.png)
Step 07:
if you dod not have o auth consent screen setup you have to setup it first, then you can create a credentials
![](https://xgenious.com/wp-content/uploads/2021/07/image-1.png)
![](https://xgenious.com/wp-content/uploads/2021/07/image-2.png)
Step 08:
now we need to create credentials, give name and and add your domain, in authorized redirect url add yourdomain.com/google/callback, do not get to replace yourdomain.com with your actual domain.
![](https://xgenious.com/wp-content/uploads/2021/07/image-3.png)
Step 09:
now go to your website admin dashboard for add google oAuth client id and client secret, go to “General settings > third Party script” if you see google login disable then enable it and add google oauth crendetials.
![](https://xgenious.com/wp-content/uploads/2021/07/image-4-1024x490.png)
![](https://xgenious.com/wp-content/uploads/2021/07/image-5-1024x230.png)
that’s all for setup google login in xgenoius cms