This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: clear cookies on token refresh failure

Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <aider@aider.chat>

+4
+4
src/modules/user/infrastructure/http/controllers/RefreshAccessTokenController.ts
··· 26 26 }); 27 27 28 28 if (result.isErr()) { 29 + // Clear cookies when refresh fails 30 + this.cookieService.clearTokens(res); 29 31 return this.fail(res, result.error); 30 32 } 31 33 ··· 38 40 // Also return tokens in response body for backward compatibility 39 41 return this.ok(res, result.value); 40 42 } catch (error: any) { 43 + // Clear cookies on unexpected errors too 44 + this.cookieService.clearTokens(res); 41 45 return this.fail(res, error); 42 46 } 43 47 }