File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ public async Task<IActionResult> RefreshToken()
224
224
AuthCookie authResponse = ReadCookie ( Request ) ;
225
225
if ( authResponse == null )
226
226
{
227
- return Unauthorized ( "No authentication cookie found." ) ;
227
+ return BadRequest ( "No authentication cookie found." ) ;
228
228
}
229
229
string refreshToken = authResponse . RefreshToken ;
230
230
if ( string . IsNullOrWhiteSpace ( refreshToken ) )
@@ -237,7 +237,7 @@ public async Task<IActionResult> RefreshToken()
237
237
( Token token , User user ) = await _jwtTokenService . FindUserAndTokenByRefreshTokenAsync ( refreshToken ) ;
238
238
if ( token == null )
239
239
{
240
- return Unauthorized ( "Invalid refresh token." ) ;
240
+ return BadRequest ( "Invalid refresh token." ) ;
241
241
}
242
242
243
243
var result = _jwtTokenService . CreateJwtTokens ( user ) ;
You can’t perform that action at this time.
0 commit comments