According to a research report, users' session is shorter on every website nowadays. In this case, you can simplify the registration and login process for your application. The socialite package is the best and primarily used package for social login. It is used to reduce the process. In this article, we implement a Bitbucket login to your application.
- Install Socialite Package Install Socialite package on laravel application. Run the following command.
composer require laravel/socialite
You need to add the below line of code inside the app.php file.
$providers= [ ...... Laravel\Socialite\SocialiteServiceProvider::class, ...... ]; $alias = [ ...... 'Socialite' => Laravel\Socialite\Facades\Socialite::class, ...... ]