Skip to content

Commit

Permalink
Use facade
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Apr 5, 2024
1 parent ce30f4f commit 2a76684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/UserProviderRedirector.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Illuminate\Http\RedirectResponse;
use Illuminate\Routing\Redirector;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Session;
use Laravel\Socialite\Two\User as SocialiteUser;

class UserProviderRedirector implements ProviderRedirector
Expand Down Expand Up @@ -59,7 +60,7 @@ public function userAuthenticated(Authenticatable $user, SocialiteUser $socialit
{
Auth::login($user);

session()->regenerate();
Session::regenerate();

return redirect('dashboard');
}
Expand Down

0 comments on commit 2a76684

Please sign in to comment.