lebuhorskiy / socialiteproviders-epicgames
Epic Games OAuth2 Provider for Laravel Socialite
1.0.1
2025-04-07 22:44 UTC
Requires
- php: ^8.3
- ext-json: *
- socialiteproviders/manager: ~4.0
This package is not auto-updated.
Last update: 2025-04-08 20:56:47 UTC
README
composer require voval921/socialiteproviders-epicgames
Add configuration to config/services.php
'epicgames' => [ 'client_id' => null, 'client_secret' => env('EPICGAMES_CLIENT_SECRET'), 'redirect' => env('EPICGAMES_REDIRECT_URI'), 'allowed_hosts' => [ 'example.com', ] ],
Add provider event listener
Configure the package's listener to listen for SocialiteWasCalled
events.
Add the event to your listen[]
array in app/Providers/EventServiceProvider
.
protected $listen = [ \SocialiteProviders\Manager\SocialiteWasCalled::class => [ // ... other providers \Voval\Socialite\EpicGames\EpicGamesExtendSocialite::class.'@handle', ], ];
Usage
You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):
return Socialite::driver('epicgames')->redirect();