composer-update-patch

This commit is contained in:
Manish Verma
2016-11-03 05:44:29 +05:30
parent 2dca47f5a4
commit 5d49d384a0
5118 changed files with 51603 additions and 122575 deletions

View File

@@ -13,6 +13,8 @@ Laravel Socialite provides an expressive, fluent interface to OAuth authenticati
**We are not accepting new adapters.**
Adapters for other platforms are listed at the community driven [Socialite Providers](https://socialiteproviders.github.io/) website.
## License
Laravel Socialite is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)
@@ -111,6 +113,15 @@ return Socialite::driver('google')
When using the `with` method, be careful not to pass any reserved keywords such as `state` or `response_type`.
#### Stateless Authentication
The `stateless` method may be used to disable session state verification. This is useful when adding social authentication to an API:
```php
return Socialite::driver('google')->stateless()->user();
```
#### Retrieving User Details
Once you have a user instance, you can grab a few more details about the user:
@@ -134,3 +145,11 @@ $user->getName();
$user->getEmail();
$user->getAvatar();
```
#### Retrieving User Details From Token
If you already have a valid access token for a user, you can retrieve their details using the `userFromToken` method:
```php
$user = Socialite::driver('github')->userFromToken($token);
```