@@ -89,7 +89,7 @@ export class Oauth2Controller {
89
89
@Get ( 'microsoft/callback' )
90
90
@ApiResponse ( {
91
91
description : 'Redirects to the frontend with the JWT token' ,
92
- status : HttpStatus . ACCEPTED ,
92
+ status : HttpStatus . FOUND ,
93
93
} )
94
94
@ApiNotFoundResponse ( {
95
95
description : 'OAuth2 is not enabled for Microsoft' ,
@@ -123,7 +123,7 @@ export class Oauth2Controller {
123
123
@Get ( 'google/callback' )
124
124
@ApiResponse ( {
125
125
description : 'Redirects to the frontend with the JWT token' ,
126
- status : HttpStatus . ACCEPTED ,
126
+ status : HttpStatus . FOUND ,
127
127
} )
128
128
@ApiNotFoundResponse ( {
129
129
description : 'OAuth2 is not enabled for Google' ,
@@ -159,7 +159,7 @@ export class Oauth2Controller {
159
159
@Get ( 'facebook/callback' )
160
160
@ApiResponse ( {
161
161
description : 'Redirects to the frontend with the JWT token' ,
162
- status : HttpStatus . ACCEPTED ,
162
+ status : HttpStatus . FOUND ,
163
163
} )
164
164
@ApiNotFoundResponse ( {
165
165
description : 'OAuth2 is not enabled for Facebook' ,
@@ -195,7 +195,7 @@ export class Oauth2Controller {
195
195
@Get ( 'github/callback' )
196
196
@ApiResponse ( {
197
197
description : 'Redirects to the frontend with the JWT token' ,
198
- status : HttpStatus . ACCEPTED ,
198
+ status : HttpStatus . FOUND ,
199
199
} )
200
200
@ApiNotFoundResponse ( {
201
201
description : 'OAuth2 is not enabled for GitHub' ,
@@ -271,7 +271,7 @@ export class Oauth2Controller {
271
271
} ) ;
272
272
273
273
return res
274
- . status ( HttpStatus . ACCEPTED )
274
+ . status ( HttpStatus . FOUND )
275
275
. redirect ( `${ this . url } /auth/callback?${ urlSearchParams . toString ( ) } ` ) ;
276
276
}
277
277
}
0 commit comments