Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Enable JWT expiration by default (#9483)
Marcin Gębalae44fbedf5a38
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 83e3cb789a..73ac4a6773 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,13 +7,13 @@ All notable, unreleased changes to this project will be documented in this file.### Breaking changes- Convert IDs from DB to Graphql format in all notification payloads (email plugins and webhook.NOTIFY)- #9388 by @L3str4nge-- Migrate order id from int to UUID - #9324 by @IKarbowiak- Changed the order `id` changed from `int` to `UUID`, the old ids still can be usedfor old orders.- Deprecated the `order.token` field, the `order.id` should be used instead.- Deprecated the `token` field in order payload, the `id` field should be usedinstead.+- Enable JWT expiration by default - #9483 by @maarcingebala### Other changes- Fix failing `checkoutCustomerAttach` mutation - #9401 by @IKarbowiakdiff --git a/saleor/settings.py b/saleor/settings.pyindex 7c970ba890..d44a2debc6 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -674,8 +674,7 @@ if REDIS_URL:CACHES = {"default": django_cache_url.config()}CACHES["default"]["TIMEOUT"] = parse(os.environ.get("CACHE_TIMEOUT", "7 days"))-# Default False because storefront and dashboard don't support expiration of token-JWT_EXPIRE = get_bool_from_env("JWT_EXPIRE", False)+JWT_EXPIRE = TrueJWT_TTL_ACCESS = timedelta(seconds=parse(os.environ.get("JWT_TTL_ACCESS", "5 minutes")))JWT_TTL_APP_ACCESS = timedelta(seconds=parse(os.environ.get("JWT_TTL_APP_ACCESS", "5 minutes"))