0
Fork 0
mirror of https://github.com/stonith404/pingvin-share.git synced 2025-01-29 01:28:59 -05:00

fix: access token refreshes even it is still valid

This commit is contained in:
Elias Schneider 2023-01-06 16:07:07 +01:00
parent 72c8081e7c
commit c8ad2225e3

View file

@ -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 };
}