Fix OAuth callback: remove from middleware, fix redirect URLs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Michele
2026-01-31 19:39:52 +01:00
parent ccc509fac6
commit c561299ebd
2 changed files with 10 additions and 6 deletions

View File

@@ -38,6 +38,7 @@ export async function middleware(request: NextRequest) {
export const config = {
matcher: [
// Only run middleware on specific routes that need auth handling
// Note: /auth/callback is excluded - it handles its own auth flow
'/dashboard/:path*',
'/settings/:path*',
'/subscription/:path*',
@@ -45,6 +46,5 @@ export const config = {
'/login/',
'/register',
'/register/',
'/auth/:path*',
],
}