diff --git a/routes/socialstream.php b/routes/socialstream.php index bc7d4042..6d333f89 100644 --- a/routes/socialstream.php +++ b/routes/socialstream.php @@ -10,8 +10,7 @@ Route::group(['middleware' => config('socialstream.middleware', ['web'])], function () { Route::get('/oauth/{provider}', [OAuthController::class, 'redirectToProvider'])->name('oauth.redirect'); - Route::get('/oauth/{provider}/callback', [OAuthController::class, 'handleProviderCallback'])->name('oauth.callback'); - Route::post('/oauth/{provider}/callback', [OAuthController::class, 'handleProviderCallback'])->name('oauth.callback'); + Route::any('/oauth/{provider}/callback', [OAuthController::class, 'handleProviderCallback'])->name('oauth.callback'); if (config('jetstream.stack') === 'inertia') { Route::delete('/user/connected-account/{id}', [RemoveConnectedAccountsController::class, 'destroy'])