Skip to content

Commit

Permalink
🐛 Fix logout redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Apr 19, 2024
1 parent 3f268bb commit 6524156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/client-ts/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export async function middleware(request: NextRequest) {
}

if(request.nextUrl.pathname.startsWith('/api/logout')){
const response = NextResponse.redirect(new URL("/auth/login", request.url));
const response = NextResponse.redirect(new URL("/b2c/login", request.url));
revokeSession(request, response);
return response;
}
Expand Down

0 comments on commit 6524156

Please sign in to comment.