Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Nov 22, 2024
1 parent a104c1d commit eba561d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/server/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ export const authRoute = new Elysia({ prefix: "/auth" })
};
// Set authentication cookie
(await cookies()).set(cookie);

return "success";
},
{ body: authenticationSchema }, // Use authUser schema for request body validation
)
Expand All @@ -65,12 +63,10 @@ export const authRoute = new Elysia({ prefix: "/auth" })
};
// Set authentication cookie
(await cookies()).set(cookie);

return "success";
},
{ body: authenticationSchema }, // Use authUser schema for request body validation
)
.get("/logout", async (ctx) => {
// Clear authentication cookie
return !!(await cookies()).delete(serverEnv.AUTH_COOKIE);
!!(await cookies()).delete(serverEnv.AUTH_COOKIE);
});

0 comments on commit eba561d

Please sign in to comment.