-
Notifications
You must be signed in to change notification settings - Fork 84
Closed
Labels
Description
setConfig() method doesn't works for me...
Type error: Argument 1 passed to Laravel\Socialite\SocialiteManager::formatConfig() must be of the type array, null given, called in /home/vagrant/www/SocialScud/api.socialscud.app/vendor/laravel/socialite/src/SocialiteManager.php on line 125
$clientId = env('TWITTER_KEY');
$clientSecret = env('TWITTER_SECRET');
$redirectUrl = env('TWITTER_REDIRECT_URI');
$additionalProviderConfig = [];
$config = new SocialiteConfig($clientId, $clientSecret, $redirectUrl, $additionalProviderConfig);
return Socialite::with('twitter')->stateless()->setConfig($config)->redirect();
stevesweets, isat7 and Havenstd06davidcraig and m1guelpf