Skip to content

Instantly share code, notes, and snippets.

@andyyou
Last active October 28, 2020 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyyou/e7420365c2ef90a6d78008ae66eb585d to your computer and use it in GitHub Desktop.
Save andyyou/e7420365c2ef90a6d78008ae66eb585d to your computer and use it in GitHub Desktop.
Markdium-Laravel 8 - Integrate Jetstream + Socialite in 30 mins
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Auth\LoginController;
// ...
Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function () {
return Inertia\Inertia::render('Dashboard');
})->name('dashboard');
Route::get('/login/{provider}', [LoginController::class, 'redirectToProvider'])
->name('social.login');
Route::get('/login/{provider}/callback', [LoginController::class, 'handleProviderCallback'])
->name('social.callback');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment