Enabling Authentication
To enable authentication with GitHub and Google in your project, follow these steps to set up the necessary environment variables.
Last updated
Was this helpful?
To enable authentication with GitHub and Google in your project, follow these steps to set up the necessary environment variables.
Last updated
Was this helpful?
Create Credentials on Google Cloud Console:
Go to .
Create a new project or select an existing one.
Navigate to "APIs & Services" > "OAuth consent screen".
Configure the consent screen for your project.
Go to "Credentials" > "Create Credentials" > "OAuth 2.0 Client IDs".
Fill in the required details and create the credentials.
Obtain your GOOGLE_CLIENT_ID
and GOOGLE_CLIENT_SECRET
.
Add to .env File:
Open your .env
file and add the following:
Create a GitHub Application:
Click on "New OAuth App".
Fill in the required details and register your application.
Obtain your GITHUB_ID
and GITHUB_SECRET
.
Add to .env File:
Open your .env
file and add the following:
Here is an example of what your .env
file should look like after adding both Google and GitHub credentials:
Happy coding!
Go to .
Test Authentication: Open in your browser and test the Google and GitHub login functionalities.
If you have any feedback or run into any issues, don't hesitate to reach out at .