🖥️Google Authentication

Here's how to activate Google login.

Visit Google API Console.

Create a new project or select an existing one if you've already set one up.

Then, access the Library from the left-hand menu.

Locate the Google+ API and click on it.

Activate the Google+ API.

Now, after enabling the API, navigate to the OAuth consent screen from the left-hand menu and choose External.

Then, fill in the required information related to your domain project and click Save.

Proceed to the Credentials section from the left-hand menu, click on Create Credentials, and select OAuth client ID.

Choose Web application and input the relevant details for your project's domain.

Note Ensure that your domain matches the one specified in the OAuth consent screen. Additionally, the redirect route should match the one defined in the picture.

https://yourdomain.com/login/google/redirect

If you encounter issues with authorizing your domain, access the authorized domains list and include your domain.

Click on Create and then copy the provided credentials into the .env file.

GOOGLE_CLIENT_ID="" //Used for google login
GOOGLE_CLIENT_SECRET="" //Used for google login
GOOGLE_REDIRECT="" //Used for google login

Last updated

Was this helpful?