PHP code example of owenvoke / socialite-unstoppable-domains

1. Go to this page and download the library: Download owenvoke/socialite-unstoppable-domains library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

owenvoke / socialite-unstoppable-domains example snippets


'unstoppable_domains' => [    
    'client_id' => env('UNSTOPPABLE_DOMAINS_CLIENT_ID'),  
    'client_secret' => env('UNSTOPPABLE_DOMAINS_CLIENT_SECRET'),  
    'redirect' => env('UNSTOPPABLE_DOMAINS_REDIRECT_URI') 
],

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        \OwenVoke\UnstoppableDomainsSocialite\UnstoppableDomainsExtendSocialite::class,
    ],
];

return Socialite::driver('unstoppable_domains')->with(['login_hint' => $domain])->redirect();

return Socialite::driver('unstoppable_domains')
    ->scopes(['email']) // This will override the `email:optional` scope
    ->with(['login_hint' => $domain])
    ->redirect();