From 2143ccadab3e142dba64e0365a5c1dd00085540b Mon Sep 17 00:00:00 2001 From: Cosmo Date: Fri, 1 May 2026 11:13:04 +0000 Subject: [PATCH] fix: allow spotify OAuth routes without auth cookie --- middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware.ts b/middleware.ts index e67908a..8254d2c 100644 --- a/middleware.ts +++ b/middleware.ts @@ -10,7 +10,7 @@ export async function middleware(request: NextRequest) { pathname === '/api/voice/event' || pathname.startsWith('/api/voice/tools/') || pathname === '/api/voice/timer' - if (!pathname.startsWith('/api/') || pathname.startsWith('/api/auth') || isVoiceBearer) { + if (!pathname.startsWith('/api/') || pathname.startsWith('/api/auth') || pathname.startsWith('/api/spotify') || isVoiceBearer) { return NextResponse.next() }