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

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

This commit is contained in:
Elias Schneider 2024-06-30 20:10:16 +02:00
parent db2720ab7b
commit 2dac38560b
No known key found for this signature in database
GPG Key ID: 07E623B294202B6C

View File

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