Correcion loginController v3

This commit is contained in:
Christian Dacid Sullca Puma 2022-10-20 17:51:02 -05:00
parent 3b2a798afe
commit 6ee8e49b60

View File

@ -33,7 +33,7 @@ public function handleProviderCallback($provider)
}
try {
$userProvider = Socialite::driver($provider)->user();
$userProvider = Socialite::driver($provider)->stateless()->user();
} catch (ClientException $exception) {
return response()->json(['error' => 'Credenciales de google invalidas.'], 422);
}