example of laravel socialite
Example 1: socialite laravel 7
'github' => [
'client_id' => env('GITHUB_CLIENT_ID'),
'client_secret' => env('GITHUB_CLIENT_SECRET'),
'redirect' => 'http://your-callback-url',
],
Example 2: socialite laravel 7
return Socialite::driver('github')
->setScopes(['read:user', 'public_repo'])
->redirect();
Example 3: socialite laravel 7
return Socialite::driver('google')->stateless()->user();
Example 4: socialite laravel 7
$user = Socialite::driver('twitter')->userFromTokenAndSecret($token, $secret);