Exchange authorization code for access token. $request -> input ( 'code' ), 'client_id' => $request -> input ( 'clientId' ), 'client_secret' => Config :: get ( 'app.github_secret' ), 'redirect_uri' => $request -> input ( 'redirectUri' ) ] $client = new GuzzleHttp\Client () // Step 1. So how do we use Socialite to get the profile? Satellizer already has an example using Laravel but it doesn’t use Socialite, so it’s different for each provider. This is actually much easier than it looks, because Satellizer and Socialite do all the heavy lifting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |