Skip to the content.

Socialite

Back to README

Get Socialite Login API Keys

Add More Socialite Logins

Steps

  1. Go to https://socialiteproviders.github.io and select the provider to be added.
  2. From the projects root folder, in the terminal, run composer to get the needed package.

    • Example:
        composer require socialiteproviders/twitch
    
  3. From the projects root folder run composer update
  4. Add the service provider to /config/services.php

    • Example:
        'twitch' => [
            'client_id'   => env('TWITCH_KEY'),
            'client_secret' => env('TWITCH_SECRET'),
            'redirect'    => env('TWITCH_REDIRECT_URI'),
        ],
    
  5. Add the API credentials to /.env

    • Example:
        TWITCH_KEY=YOURKEYHERE
        TWITCH_SECRET=YOURSECRETHERE
        TWITCH_REDIRECT_URI=http://YOURWEBSITEURL.COM/social/handle/twitch
    
  6. Add the social media login link:

    • Example: In file /resources/views/auth/login.blade.php add ONE of the following:

      • Conventional HTML:
        <a href="" class="btn btn-lg btn-primary btn-block twitch">Twitch</a>
      
        {!! html()->a(route('social.redirect', ['provider' => 'twitch']), 'Twitch', array('class' => 'btn btn-lg btn-primary btn-block twitch')) !!}
      

Other API keys