Skip to content

Commit 2eeb233

Browse files
committed
wip
1 parent 87d0aed commit 2eeb233

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/Http/Controllers/Auth/GitHubController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Laravel\Socialite\Facades\Socialite;
1515
use Laravel\Socialite\Two\InvalidStateException;
1616
use Laravel\Socialite\Two\User as SocialiteUser;
17+
use function Pest\Laravel\instance;
1718

1819
class GitHubController extends Controller
1920
{
@@ -38,6 +39,10 @@ public function handleProviderCallback()
3839
return redirect()->route('login');
3940
}
4041

42+
if ($socialiteUser instanceof RedirectResponse) {
43+
return $socialiteUser;
44+
}
45+
4146
try {
4247
$user = User::findByGitHubId($socialiteUser->getId());
4348
} catch (ModelNotFoundException $exception) {

0 commit comments

Comments
 (0)