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 20736bc commit 119e4d6Copy full SHA for 119e4d6
examples/app-router/app/methods/post/cookies/route.ts
@@ -4,8 +4,8 @@ export async function POST(request: Request) {
4
const formData = await request.formData();
5
const username = formData.get("username");
6
const password = formData.get("password");
7
- (await cookies()).set("auth_session", "SUPER_SECRET_SESSION_ID_1234");
8
if (username === "hakuna" && password === "matata") {
+ (await cookies()).set("auth_session", "SUPER_SECRET_SESSION_ID_1234");
9
return Response.json(
10
{
11
message: "ok",
0 commit comments