Skip to content

Commit eba561d

Browse files
committed
asd
1 parent a104c1d commit eba561d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/server/auth/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ export const authRoute = new Elysia({ prefix: "/auth" })
3838
};
3939
// Set authentication cookie
4040
(await cookies()).set(cookie);
41-
42-
return "success";
4341
},
4442
{ body: authenticationSchema }, // Use authUser schema for request body validation
4543
)
@@ -65,12 +63,10 @@ export const authRoute = new Elysia({ prefix: "/auth" })
6563
};
6664
// Set authentication cookie
6765
(await cookies()).set(cookie);
68-
69-
return "success";
7066
},
7167
{ body: authenticationSchema }, // Use authUser schema for request body validation
7268
)
7369
.get("/logout", async (ctx) => {
7470
// Clear authentication cookie
75-
return !!(await cookies()).delete(serverEnv.AUTH_COOKIE);
71+
!!(await cookies()).delete(serverEnv.AUTH_COOKIE);
7672
});

0 commit comments

Comments
 (0)