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 5e7e809 commit dbfc3cfCopy full SHA for dbfc3cf
src/server-actions.ts
@@ -42,10 +42,5 @@ export const signOut = async (): Promise<NextResponse> => {
42
return NextResponse.json({ message: "Invalid session" }, { status: 401 });
43
}
44
45
- const response = NextResponse.json(
46
- { message: "Signed out successfully" },
47
- { status: 200 }
48
- );
49
- response.cookies.delete("AUTH_SESSION");
50
- return response;
+ cookieStore.delete("AUTH_SESSION");
51
};
0 commit comments