#2 - authentication via google #16
Reference in New Issue
Block a user
Delete Branch "#2-auth-via-google"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It should close #2
@@ -0,0 +26,4 @@$user = User::query()->where("email", $socialUser->getEmail())->firstOrFail();} catch (ModelNotFoundException) {Is this try-catch really refers to entire block of code? And maybe this failed redirect could be move to the exception?
@@ -0,0 +12,4 @@{public function __invoke(Request $request): RedirectResponse{Auth::logout();Could it be null with
route()?It doesn't work.
@@ -0,0 +26,4 @@$user = User::query()->where("email", $socialUser->getEmail())->firstOrFail();} catch (ModelNotFoundException) {I would like to keep it simple for now. I'll refactor it when error handling and notifications/alerts will work.