@@ -43,7 +43,7 @@ authRouter.post("/login", loginRequestValidator, async (req, res) => {
4343 . cookie ( "refreshToken" , refreshToken , cookieOptions )
4444 . status ( 200 )
4545 . json ( rest ) ;
46- } catch ( error ) {
46+ } catch ( error : unknown ) {
4747 res . status ( 500 ) . json ( { error : getErrorMessage ( error ) } ) ;
4848 }
4949} ) ;
@@ -69,7 +69,7 @@ authRouter.post(
6969 . status ( 200 )
7070 . json ( rest ) ;
7171 }
72- } catch ( error ) {
72+ } catch ( error : unknown ) {
7373 if ( error instanceof NotFoundError ) {
7474 res . status ( 404 ) . send ( getErrorMessage ( error ) ) ;
7575 } else {
@@ -88,7 +88,7 @@ authRouter.post("/refresh", async (req, res) => {
8888 . cookie ( "refreshToken" , token . refreshToken , cookieOptions )
8989 . status ( 200 )
9090 . json ( { accessToken : token . accessToken } ) ;
91- } catch ( error ) {
91+ } catch ( error : unknown ) {
9292 res . status ( 500 ) . json ( { error : getErrorMessage ( error ) } ) ;
9393 }
9494} ) ;
@@ -101,7 +101,7 @@ authRouter.post(
101101 try {
102102 await authService . revokeTokens ( req . params . userId ) ;
103103 res . status ( 204 ) . send ( ) ;
104- } catch ( error ) {
104+ } catch ( error : unknown ) {
105105 res . status ( 500 ) . json ( { error : getErrorMessage ( error ) } ) ;
106106 }
107107 } ,
@@ -115,7 +115,7 @@ authRouter.post(
115115 try {
116116 await authService . resetPassword ( req . params . email ) ;
117117 res . status ( 204 ) . send ( ) ;
118- } catch ( error ) {
118+ } catch ( error : unknown ) {
119119 res . status ( 500 ) . json ( { error : getErrorMessage ( error ) } ) ;
120120 }
121121 } ,
@@ -143,7 +143,7 @@ authRouter.post(
143143 } else {
144144 res . status ( 400 ) . json ( responseSuccess ) ;
145145 }
146- } catch ( error ) {
146+ } catch ( error : unknown ) {
147147 res . status ( 500 ) . json ( { error : getErrorMessage ( error ) } ) ;
148148 }
149149 } ,
@@ -181,7 +181,7 @@ authRouter.post("/invite-user", inviteUserDtoValidator, async (req, res) => {
181181 await userService . updateUserById ( user . id , invitedUser ) ;
182182
183183 res . status ( 204 ) . send ( ) ;
184- } catch ( error ) {
184+ } catch ( error : unknown ) {
185185 if ( error instanceof NotFoundError ) {
186186 res . status ( 404 ) . send ( getErrorMessage ( error ) ) ;
187187 } else {
0 commit comments