This commit is contained in:
Manish Verma
2016-12-13 18:18:25 +05:30
parent fc98add11c
commit 2d8e640e9b
2314 changed files with 97798 additions and 75664 deletions

View File

@@ -13,8 +13,6 @@ 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)
@@ -113,15 +111,6 @@ 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:
@@ -145,11 +134,3 @@ $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);
```