composer-update-patch
This commit is contained in:
19
vendor/laravel/socialite/readme.md
vendored
19
vendor/laravel/socialite/readme.md
vendored
@@ -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);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user