diff --git a/routes/web.php b/routes/web.php index e1b1e6a..963f90f 100644 --- a/routes/web.php +++ b/routes/web.php @@ -49,7 +49,7 @@ Route::get('/auth/github/callback', function() { abort(401, $e->getMessage()); } return Redirect::intended(); -})->name('oauth-github-login'); +})->name('oauth-github-callback'); @@ -57,7 +57,7 @@ Route::get('/auth/google/authorize', function() { return SocialAuth::authorize('google'); })->name('oauth-google-authorize'); -Route::get('/auth/google/login', function() { +Route::get('/auth/google/callback', function() { try { SocialAuth::login('google'); } catch (ApplicationRejectedException $e) { @@ -66,7 +66,7 @@ Route::get('/auth/google/login', function() { abort(401); } return Redirect::intended(); -})->name('oauth-google-login'); +})->name('oauth-google-callback'); @@ -75,7 +75,7 @@ Route::get('/auth/facebook/authorize', function() { return SocialAuth::authorize('facebook'); })->name('oauth-facebook-authorize'); -Route::get('/auth/facebook/login', function() { +Route::get('/auth/facebook/callback', function() { try { SocialAuth::login('facebook'); } catch (ApplicationRejectedException $e) { @@ -84,4 +84,4 @@ Route::get('/auth/facebook/login', function() { abort(401); } return Redirect::intended(); -})->name('oauth-facebook-login'); +})->name('oauth-facebook-callback');