Skip to content

Commit

Permalink
[6.x] fix auth pipeline when not using fortify (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbutcher authored Nov 21, 2024
1 parent 06ce94d commit 7d8a8d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Actions/AuthenticateOAuthCallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ protected function loginPipeline(Request $request, Authenticatable $user): Pipel
{
if (! class_exists(Fortify::class)) {
return (new Pipeline(app()))->send($request)->through(array_filter([
AttemptToAuthenticate::class.':'.$user->getAuthIdentifier(),
function ($request, $next) use ($user) {
app(StatefulGuard::class)->loginUsingId($user->getAuthIdentifier(), Socialstream::hasRememberSessionFeatures());

return $next($request);
},
function ($request, $next) {
if ($request->hasSession()) {
$request->session()->regenerate();
Expand Down

0 comments on commit 7d8a8d2

Please sign in to comment.