diff --git a/.env b/.env index a18d79d..211ce90 100644 --- a/.env +++ b/.env @@ -46,4 +46,6 @@ JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem JWT_PASSPHRASE=9efb9a2ec48439c723621d0c6393d04da5516c8fa00ecdba1660717b4f996867 JWT_COOKIE_SECURE=0 JWT_COOKIE_SAMESITE=lax +JWT_TOKEN_TTL=86400 +JWT_COOKIE_TTL=86400 ###< lexik/jwt-authentication-bundle ### diff --git a/config/packages/lexik_jwt_authentication.yaml b/config/packages/lexik_jwt_authentication.yaml index 4fbf9be..ade6ecd 100644 --- a/config/packages/lexik_jwt_authentication.yaml +++ b/config/packages/lexik_jwt_authentication.yaml @@ -2,6 +2,7 @@ lexik_jwt_authentication: secret_key: '%env(resolve:JWT_SECRET_KEY)%' public_key: '%env(resolve:JWT_PUBLIC_KEY)%' pass_phrase: '%env(JWT_PASSPHRASE)%' + token_ttl: '%env(int:JWT_TOKEN_TTL)%' remove_token_from_body_when_cookies_used: true token_extractors: authorization_header: @@ -13,7 +14,7 @@ lexik_jwt_authentication: enabled: false set_cookies: BEARER: - lifetime: 86400 + lifetime: '%env(int:JWT_COOKIE_TTL)%' samesite: lax path: / secure: '%env(bool:JWT_COOKIE_SECURE)%' diff --git a/frontend/components/CalendarGrid.vue b/frontend/components/CalendarGrid.vue index 64b6064..3a82993 100644 --- a/frontend/components/CalendarGrid.vue +++ b/frontend/components/CalendarGrid.vue @@ -18,8 +18,12 @@