I am setting up a Laravel application for authentication with Google.
I am asked to choose a Google account and allow access to my Google information, and I have everything that works with the callback function.
When my callback function works (it is called correctly), I get:
- ClientException in Middleware.php 69 line:
- Client Error: 403
The code of my AuthController, resulting in an error:
$user = \Socialite::driver('google')->user();
I would be grateful for any help. I am using Laravel 5.1 and Socialite 2.0.
source share