lebuhorskiy/socialiteproviders-epicgames

Epic Games OAuth2 Provider for Laravel Socialite

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 3

pkg:composer/lebuhorskiy/socialiteproviders-epicgames

1.0.1 2025-04-07 22:44 UTC

This package is not auto-updated.

Last update: 2025-10-07 23:06:19 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();