How to configure your Google API Keys
- Login to Google API Manager.
- In the left menu, select Dashboard. Now select Enable API, search for
Google+
and select it. At the top of the screen, ensure it’s enabled by clicking on Enable. - In the left menu, select Credentials. Then click Create Credentials > OAuth client ID.
- Select Web Application. Name is as you wish, but under Authorised Javascript Origins put
http://localhost:8080
, and under Authorised redirect URIs puthttp://localhost:8080/auth/google/callback
. - Click Create. You will now have a Client ID and Client Secret. In your .env file, put the Client ID as your GOOGLE_CONSUMER_KEY, and the Client Secret as your GOOGLE_CONSUMER_SECRET.