diff --git a/routes/socialstream-inertia.php b/routes/socialstream-inertia.php index baad6494..15a0dbba 100644 --- a/routes/socialstream-inertia.php +++ b/routes/socialstream-inertia.php @@ -10,8 +10,7 @@ Route::group(['middleware' => config('socialstream.middleware', ['web'])], function () { Route::get('/oauth/{provider}', [OAuthController::class, 'redirect'])->name('oauth.redirect'); - Route::get('/oauth/{provider}/callback', [OAuthController::class, 'callback'])->name('oauth.callback'); - Route::post('/oauth/{provider}/callback', [OAuthController::class, 'callback'])->name('oauth.callback'); + Route::match(['get', 'post'], '/oauth/{provider}/callback', [OAuthController::class, 'callback'])->name('oauth.callback'); Route::delete('/user/connected-account/{id}', [ConnectedAccountController::class, 'destroy']) ->middleware(['auth'])