Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Http/Controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function handleGoogleCallback(Request $request)
} catch (\Throwable $e) {
report($e);

return redirect()->route('login')->with('error', 'Failed to authenticate with Google. Please try again.');
return redirect()->route('login')->with('error', 'Failed to authenticate. Refresh the page & try again.');
}

$user = User::where('google_id', $googleUser->getId())
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@
$response = $this->get(route('auth.google.callback'));

$response->assertRedirect(route('login'));
$response->assertSessionHas('error', 'Failed to authenticate with Google. Please try again.');
$response->assertSessionHas('error', 'Failed to authenticate. Refresh the page & try again.');
});

test('google auth redirects to intended url if set for existing user', function () {
Expand Down
Loading