@@ -89,7 +89,7 @@ export class Oauth2Controller {
8989 @Get ( 'microsoft/callback' )
9090 @ApiResponse ( {
9191 description : 'Redirects to the frontend with the JWT token' ,
92- status : HttpStatus . ACCEPTED ,
92+ status : HttpStatus . FOUND ,
9393 } )
9494 @ApiNotFoundResponse ( {
9595 description : 'OAuth2 is not enabled for Microsoft' ,
@@ -123,7 +123,7 @@ export class Oauth2Controller {
123123 @Get ( 'google/callback' )
124124 @ApiResponse ( {
125125 description : 'Redirects to the frontend with the JWT token' ,
126- status : HttpStatus . ACCEPTED ,
126+ status : HttpStatus . FOUND ,
127127 } )
128128 @ApiNotFoundResponse ( {
129129 description : 'OAuth2 is not enabled for Google' ,
@@ -159,7 +159,7 @@ export class Oauth2Controller {
159159 @Get ( 'facebook/callback' )
160160 @ApiResponse ( {
161161 description : 'Redirects to the frontend with the JWT token' ,
162- status : HttpStatus . ACCEPTED ,
162+ status : HttpStatus . FOUND ,
163163 } )
164164 @ApiNotFoundResponse ( {
165165 description : 'OAuth2 is not enabled for Facebook' ,
@@ -195,7 +195,7 @@ export class Oauth2Controller {
195195 @Get ( 'github/callback' )
196196 @ApiResponse ( {
197197 description : 'Redirects to the frontend with the JWT token' ,
198- status : HttpStatus . ACCEPTED ,
198+ status : HttpStatus . FOUND ,
199199 } )
200200 @ApiNotFoundResponse ( {
201201 description : 'OAuth2 is not enabled for GitHub' ,
@@ -271,7 +271,7 @@ export class Oauth2Controller {
271271 } ) ;
272272
273273 return res
274- . status ( HttpStatus . ACCEPTED )
274+ . status ( HttpStatus . FOUND )
275275 . redirect ( `${ this . url } /auth/callback?${ urlSearchParams . toString ( ) } ` ) ;
276276 }
277277}
0 commit comments