Skip to content

Commit

Permalink
fix: access token refreshes even it is still valid
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith404 committed Jan 6, 2023
1 parent 72c8081 commit c8ad222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class AuthController {
const accessToken = await this.authService.refreshAccessToken(
request.cookies.refresh_token
);
response.cookie("access_token", accessToken, { httpOnly: true });
response.cookie("access_token", accessToken);
return { accessToken };
}

Expand Down

0 comments on commit c8ad222

Please sign in to comment.