fix: allow spotify OAuth routes without auth cookie
All checks were successful
Deploy / deploy (push) Successful in 1m35s
All checks were successful
Deploy / deploy (push) Successful in 1m35s
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user