PHPackages                             icemix/laravel-passport-social-grant - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. icemix/laravel-passport-social-grant

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

icemix/laravel-passport-social-grant
====================================

Icemix Social Grant for Laravel Passport

1.0(6y ago)1134MITPHPPHP &gt;=7.1

Since Nov 2Pushed 6y agoCompare

[ Source](https://github.com/ettaegbe/laravel-passport-social-grant)[ Packagist](https://packagist.org/packages/icemix/laravel-passport-social-grant)[ RSS](/packages/icemix-laravel-passport-social-grant/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Laravel Passport Social Grant
=============================

[](#laravel-passport-social-grant)

This package adds a social grant for your OAuth2 server. It can be useful if have an API and want to provide the ability for your users to login/register through social networks.

As a result you will be able to exchange `access_token`, issued by the OAuth2 server of any social provider, to `access_token` and `refresh_token` issued by your own OAuth2 server. You will receive this `access_token` and return the user instance that corresponds to it on your own.

Installation
------------

[](#installation)

You can install this package via composer using this command:

```
composer require icemix/laravel-passport-social-grant
```

The package will automatically register itself.

Configuring
-----------

[](#configuring)

As the first step, you need to implement `SocialUserResolverInterface`:

```
