File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments