Laraship

⌘K
  1. Home
  2. Docs
  3. Laraship
  4. User Module
  5. Social Login
  6. Google

Google

Laravel Social Login 
  • After creating your app successfully, Click credentials in left side navigation and select ‘OAuth Consent Screen’ , fill out the details there.
Laravel Social Login 
  • Now you need create credentials for your app. Click credentials in left side navigation and select ‘Credentials’. In the dropdown select ‘OAuth client ID’
Laravel Social Login
  • In the OAuth client ID screen, select the type of application, give origin and callback URLs,
Laravel Social Login
  • You also need to enable Google + Api too. Yo will see a ‘ENABLE API’ button, click it.
Laravel Social Login 
  • Select Google + in Social API’s.
Laravel Social Login 
  • Now you will get the Client ID and Client secret in the credentials page.
Laravel Social Login

– make sure to update google client id and secret inside .env file

GOOGLE_KEY=
GOOGLE_SECRET=
GOOGLE_REDIRECT_URI=/social-auth/google/callback