This is my first time working with Socialite and I can\'t seem to get it to work correctly.
Essentially, all I want is to return some account details of the currently au
You can check...
$request->exists('denied')
for Twitter and $request->exists('error')
for Linkedin. It working on my application in Laravel 6.0* with Socialite 4.0*.
if ($request->exists('denied') || $request->exists('error'))
{
// do something
}else{
$socialAccount = Socialite::driver($provider)->user();
}
Check this syntax
$socialAccount = Socialite::driver('twitter')->user();
If you want the account details of the currently authenticated user, use the same old
$user = Auth::user();