fix: allow spotify OAuth routes without auth cookie
All checks were successful
Deploy / deploy (push) Successful in 1m35s

This commit is contained in:
Cosmo
2026-05-01 11:13:04 +00:00
parent c43bad1fc3
commit 2143ccadab

View File

@@ -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()
}