1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-05 07:20:13 +01: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 };
}