Skip to content

Commit

Permalink
auth error
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinecraft committed Jul 27, 2024
1 parent d2ceea3 commit 8a1eeaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/SocialAuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public function handleCallback($provider, Request $request)
return redirect()->route('home');
}
} catch (\Exception $e) {
Log::error($e);
if ($request->wantsJson()) {
return response()->json(['message' => __('Unable to fetch user details from :provider', ['provider' => ucfirst($provider)])], 422);
}
Expand Down

0 comments on commit 8a1eeaa

Please sign in to comment.