Skip to content

Commit

Permalink
Adjust the Passport example to not require scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-allan committed Aug 14, 2019
1 parent 37fbcd8 commit 34e7602
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion passport.md
Expand Up @@ -394,7 +394,10 @@ If the user approves the authorization request, they will be redirected back to
Route::get('/callback', function (Request $request) {
$state = $request->session()->pull('state');

throw_unless(strlen($state) > 0 && $state === $request->state, InvalidArgumentException::class);
throw_unless(
strlen($state) > 0 && $state === $request->state,
InvalidArgumentException::class
);

$http = new GuzzleHttp\Client;

Expand Down

0 comments on commit 34e7602

Please sign in to comment.