@@ -80,6 +80,7 @@ export function setupAuthHandlers(app: Application): void {
8080
8181 res . setHeader ( 'Content-Type' , 'application/json' ) ;
8282 res . status ( 200 ) . json ( metadata ) ;
83+ return ;
8384 }
8485 ) ;
8586
@@ -91,6 +92,7 @@ export function setupAuthHandlers(app: Application): void {
9192
9293 res . setHeader ( 'Content-Type' , 'application/json' ) ;
9394 res . status ( 200 ) . json ( metadata ) ;
95+ return ;
9496 }
9597 ) ;
9698
@@ -100,6 +102,7 @@ export function setupAuthHandlers(app: Application): void {
100102
101103 res . setHeader ( 'Content-Type' , 'application/json' ) ;
102104 res . status ( 200 ) . json ( response ) ;
105+ return ;
103106 } ) ;
104107
105108 app . get ( '/oauth/authorize' , async ( req : Request , res : Response ) => {
@@ -108,6 +111,7 @@ export function setupAuthHandlers(app: Application): void {
108111 const response = await oauthService . handleAuthorization ( request ) ;
109112
110113 res . redirect ( response . redirectUrl ) ;
114+ return ;
111115 } ) ;
112116
113117 app . post ( '/oauth/token' , async ( req : Request , res : Response ) => {
@@ -116,6 +120,7 @@ export function setupAuthHandlers(app: Application): void {
116120
117121 res . setHeader ( 'Content-Type' , 'application/json' ) ;
118122 res . status ( 200 ) . json ( response ) ;
123+ return ;
119124 } ) ;
120125
121126 app . post ( '/oauth/revoke' , async ( req : Request , res : Response ) => {
@@ -124,12 +129,14 @@ export function setupAuthHandlers(app: Application): void {
124129
125130 res . setHeader ( 'Content-Type' , 'application/json' ) ;
126131 res . status ( 200 ) . json ( response ) ;
132+ return ;
127133 } ) ;
128134
129135 app . get ( '/oauth/stats' , async ( _req : Request , res : Response ) => {
130136 const response = await oauthService . getStats ( ) ;
131137 res . setHeader ( 'Content-Type' , 'application/json' ) ;
132138 res . status ( 200 ) . json ( response ) ;
139+ return ;
133140 } ) ;
134141
135142 oauthService . setupHandlers ( app ) ;
0 commit comments