We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d22f1d commit b2afa16Copy full SHA for b2afa16
src/middleware.ts
@@ -24,7 +24,11 @@ export async function middleware(request: NextRequest) {
24
}
25
return response;
26
} else {
27
- return NextResponse.redirect(new URL("/auth/signin", request.url));
+ const response = NextResponse.redirect(
28
+ new URL("/auth/signin", request.url),
29
+ );
30
+ response.cookies.delete("refresh_token");
31
+ return response;
32
33
34
0 commit comments