0

Im trying to add google authentication for my application which built with laravel 5.5 with Laravel Socialite. So for that I have created a google developer account via google developer console and enabled google+ api.

console

api enabled

console 2

So when I try to register when it redirect to call back url it gives me below error. I have gone through lot of documentations and stackoverflow questions almost. But no luck.

This is the error

GuzzleHttp \ Exception \ ClientException (403)

Client error: `GET https://www.googleapis.com/plus/v1/people/me?prettyPrint=false` resulted in a `403 Forbidden` response: { "error": { "code": 403, "message": "Legacy People API has not been used in project 

Could anyone please help me on this Thanks error

Nipun Tharuksha
  • 2,496
  • 4
  • 17
  • 40

1 Answers1

0

use Socialite::with('Google')->user();

it was help me

Arm092
  • 580
  • 7
  • 12