- Go to Google API Console
- Create a new project
- Click on the project name and give appropriate name and no need to select organization and then click on
Create
- select created project and go to OAuth consent screen
- Select
External
and click onCreate
- In App Information Give appropriate name and email address.
- Add same email address in
Developer contact information
- click on
Save and Continue
- Click on
save and continue
in Scopes- Click on
save and continue
in Test users- Click on
Back to Dashboard
in Summary- Click on
Credentials
in left side menu
- Click on
Create Credentials
and selectOAuth client ID
- Select
Web application
and give appropriate name- In
Authorized redirect URIs
andAuthorized JavaScript origins
addhttp://localhost:3000
and click onCreate
- Copy
Client ID
andClient secret
and paste in .env file and use it in your application