socialite

This commit is contained in:
2021-02-12 16:13:42 +09:00
parent 3d301f58c2
commit f6c93028cc

View File

@@ -87,9 +87,11 @@ class LoginController extends Controller
* Get token from callback
* Redirect to the dashboard if logging in successfully.
*/
public function handleProviderCallback() {
public function handleProviderCallback(Socialite $social) {
//Get the sso user from the socialite driver
$ssoUser = Socialite::driver('eveonline')->user();
$ssoUser = $social->driver('eveonline')->user();
dd($ssoUser);
if(Auth::check()) {
//If a refresh token is present, then we are doing a scope callback