1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-15 11:50:34 +01:00

Revert "fix: set max age of access token cookie to 15 minutes"

This reverts commit 2dac38560b.
This commit is contained in:
Elias Schneider 2024-07-27 17:15:20 +02:00
parent 27ee9fb6cb
commit 14c2185e6f
No known key found for this signature in database
GPG Key ID: 07E623B294202B6C

View File

@ -251,7 +251,7 @@ export class AuthService {
if (accessToken) if (accessToken)
response.cookie("access_token", accessToken, { response.cookie("access_token", accessToken, {
sameSite: "lax", sameSite: "lax",
maxAge: 1000 * 60 * 15, // 15 minutes maxAge: 1000 * 60 * 60 * 24 * 30 * 3, // 3 months
}); });
if (refreshToken) if (refreshToken)
response.cookie("refresh_token", refreshToken, { response.cookie("refresh_token", refreshToken, {